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

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

Issue 1474983003: Support for client certs in ssl_server_socket. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase only Created 4 years, 11 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_OPENSSL_SSL_UTIL_H_ 5 #ifndef NET_SSL_OPENSSL_SSL_UTIL_H_
6 #define NET_SSL_OPENSSL_SSL_UTIL_H_ 6 #define NET_SSL_OPENSSL_SSL_UTIL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <openssl/ssl.h>
11
12 #include "net/cert/x509_certificate.h"
10 #include "net/log/net_log.h" 13 #include "net/log/net_log.h"
14 #include "net/ssl/scoped_openssl_types.h"
11 15
12 namespace crypto { 16 namespace crypto {
13 class OpenSSLErrStackTracer; 17 class OpenSSLErrStackTracer;
14 } 18 }
15 19
16 namespace tracked_objects { 20 namespace tracked_objects {
17 class Location; 21 class Location;
18 } 22 }
19 23
20 namespace net { 24 namespace net {
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 int MapOpenSSLErrorWithDetails(int err, 66 int MapOpenSSLErrorWithDetails(int err,
63 const crypto::OpenSSLErrStackTracer& tracer, 67 const crypto::OpenSSLErrStackTracer& tracer,
64 OpenSSLErrorInfo* out_error_info); 68 OpenSSLErrorInfo* out_error_info);
65 69
66 // Creates NetLog callback for an OpenSSL error. 70 // Creates NetLog callback for an OpenSSL error.
67 NetLog::ParametersCallback CreateNetLogOpenSSLErrorCallback( 71 NetLog::ParametersCallback CreateNetLogOpenSSLErrorCallback(
68 int net_error, 72 int net_error,
69 int ssl_error, 73 int ssl_error,
70 const OpenSSLErrorInfo& error_info); 74 const OpenSSLErrorInfo& error_info);
71 75
76 void FreeX509Stack(STACK_OF(X509)* ptr);
77 void FreeX509NameStack(STACK_OF(X509_NAME)* ptr);
davidben 2016/01/25 20:56:11 Why is this declared both here and in scoped_opens
ryanchung 2016/01/29 23:22:14 Hmm, I should remove it from here. scoped_openssl_
davidben 2016/02/04 00:40:11 Hrm. I'd probably either add scoped_openssl_types.
ryanchung 2016/02/05 01:56:13 Done. Inlined.
78
79 // Returns the net SSL version number (see ssl_connection_status_flags.h) for
80 // this SSL connection.
81 int GetNetSSLVersion(SSL* ssl);
82
83 ScopedX509 OSCertHandleToOpenSSL(X509Certificate::OSCertHandle os_handle);
84
85 ScopedX509_STACK OSCertHandlesToOpenSSL(
86 const X509Certificate::OSCertHandles& os_handles);
87
72 } // namespace net 88 } // namespace net
73 89
74 #endif // NET_SSL_OPENSSL_SSL_UTIL_H_ 90 #endif // NET_SSL_OPENSSL_SSL_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698