Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(903)

Side by Side Diff: net/android/keystore_openssl.h

Issue 1921563003: Renaming _openssl files to _impl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix nits. Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « crypto/ec_signature_creator_openssl.cc ('k') | net/android/keystore_openssl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NET_ANDROID_KEYSTORE_OPENSSL_H 5 #ifndef NET_ANDROID_KEYSTORE_OPENSSL_H
6 #define NET_ANDROID_KEYSTORE_OPENSSL_H 6 #define NET_ANDROID_KEYSTORE_OPENSSL_H
7 7
8 #include <jni.h> 8 #include <jni.h>
9 #include <openssl/evp.h> 9 #include <openssl/evp.h>
10 10
11 #include "crypto/scoped_openssl_types.h" 11 #include "crypto/scoped_openssl_types.h"
12 #include "net/base/net_export.h" 12 #include "net/base/net_export.h"
13 13
14 // OpenSSL-specific functions to use the Android platform keystore. 14 // The features provided here are highly implementation specific and are
15 // The features provided here are highly specific to OpenSSL and are
16 // segregated from net/android/keystore.h because the latter only provides 15 // segregated from net/android/keystore.h because the latter only provides
17 // simply JNI stubs to call Java code which only uses platform APIs. 16 // simply JNI stubs to call Java code which only uses platform APIs.
18 17
19 namespace net { 18 namespace net {
20 namespace android { 19 namespace android {
21 20
22 // Create a custom OpenSSL EVP_PKEY instance that wraps a platform 21 // Create a custom OpenSSL EVP_PKEY instance that wraps a platform
23 // java.security.PrivateKey object, and will call the platform APIs 22 // java.security.PrivateKey object, and will call the platform APIs
24 // through JNI to implement signing (and only signing). 23 // through JNI to implement signing (and only signing).
25 // 24 //
(...skipping 15 matching lines...) Expand all
41 // *sign* the digest that is part of the "Verify Certificate" message 40 // *sign* the digest that is part of the "Verify Certificate" message
42 // during the OpenSSL handshake. Anything else will result in undefined 41 // during the OpenSSL handshake. Anything else will result in undefined
43 // behaviour. 42 // behaviour.
44 NET_EXPORT crypto::ScopedEVP_PKEY GetOpenSSLPrivateKeyWrapper( 43 NET_EXPORT crypto::ScopedEVP_PKEY GetOpenSSLPrivateKeyWrapper(
45 jobject private_key); 44 jobject private_key);
46 45
47 } // namespace android 46 } // namespace android
48 } // namespace net 47 } // namespace net
49 48
50 #endif // NET_ANDROID_KEYSTORE_OPENSSL_H 49 #endif // NET_ANDROID_KEYSTORE_OPENSSL_H
OLDNEW
« no previous file with comments | « crypto/ec_signature_creator_openssl.cc ('k') | net/android/keystore_openssl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698