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

Side by Side Diff: net/ssl/ssl_platform_key_android.h

Issue 2391213002: Report curve types in ECDSA SSLPrivateKeys. (Closed)
Patch Set: rebase Created 4 years, 2 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 | « net/socket/ssl_client_socket_impl.cc ('k') | net/ssl/ssl_platform_key_android.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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_SSL_SSL_PLATFORM_KEY_ANDROID_H_ 5 #ifndef NET_SSL_SSL_PLATFORM_KEY_ANDROID_H_
6 #define NET_SSL_SSL_PLATFORM_KEY_ANDROID_H_ 6 #define NET_SSL_SSL_PLATFORM_KEY_ANDROID_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 9
10 #include "base/android/scoped_java_ref.h" 10 #include "base/android/scoped_java_ref.h"
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "net/base/net_export.h" 12 #include "net/base/net_export.h"
13 13
14 namespace net { 14 namespace net {
15 15
16 class SSLPrivateKey; 16 class SSLPrivateKey;
17 class X509Certificate;
17 18
18 // Returns a new SSLPrivateKey which uses |key| for signing operations or 19 // Returns a new SSLPrivateKey for |cert| which uses |key| for signing
19 // nullptr on error. |key| must be a java.security.PrivateKey object. 20 // operations or nullptr on error. |key| must be a java.security.PrivateKey
21 // object.
20 NET_EXPORT scoped_refptr<SSLPrivateKey> WrapJavaPrivateKey( 22 NET_EXPORT scoped_refptr<SSLPrivateKey> WrapJavaPrivateKey(
23 const X509Certificate* cert,
21 const base::android::JavaRef<jobject>& key); 24 const base::android::JavaRef<jobject>& key);
22 25
23 } // namespace net 26 } // namespace net
24 27
25 #endif // NET_SSL_SSL_PLATFORM_KEY_ANDROID_H_ 28 #endif // NET_SSL_SSL_PLATFORM_KEY_ANDROID_H_
OLDNEW
« no previous file with comments | « net/socket/ssl_client_socket_impl.cc ('k') | net/ssl/ssl_platform_key_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698