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

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: Addresses reviewer comments Created 5 years 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 <openssl/ssl.h>
9
10 #include "net/cert/x509_certificate.h"
8 #include "net/log/net_log.h" 11 #include "net/log/net_log.h"
12 #include "net/ssl/scoped_openssl_types.h"
9 13
10 namespace crypto { 14 namespace crypto {
11 class OpenSSLErrStackTracer; 15 class OpenSSLErrStackTracer;
12 } 16 }
13 17
14 namespace tracked_objects { 18 namespace tracked_objects {
15 class Location; 19 class Location;
16 } 20 }
17 21
18 namespace net { 22 namespace net {
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 int MapOpenSSLErrorWithDetails(int err, 64 int MapOpenSSLErrorWithDetails(int err,
61 const crypto::OpenSSLErrStackTracer& tracer, 65 const crypto::OpenSSLErrStackTracer& tracer,
62 OpenSSLErrorInfo* out_error_info); 66 OpenSSLErrorInfo* out_error_info);
63 67
64 // Creates NetLog callback for an OpenSSL error. 68 // Creates NetLog callback for an OpenSSL error.
65 NetLog::ParametersCallback CreateNetLogOpenSSLErrorCallback( 69 NetLog::ParametersCallback CreateNetLogOpenSSLErrorCallback(
66 int net_error, 70 int net_error,
67 int ssl_error, 71 int ssl_error,
68 const OpenSSLErrorInfo& error_info); 72 const OpenSSLErrorInfo& error_info);
69 73
74 void FreeX509Stack(STACK_OF(X509) * ptr);
75 void FreeX509NameStack(STACK_OF(X509_NAME) * ptr);
Ryan Sleevi 2015/12/17 03:47:36 STACK_OF(X509)* ptr);
ryanchung 2015/12/18 00:00:56 Done.
76
77 // Returns the net SSL version number (see ssl_connection_status_flags.h) for
78 // this SSL connection.
79 int GetNetSSLVersion(SSL* ssl);
80
81 ScopedX509 OSCertHandleToOpenSSL(X509Certificate::OSCertHandle os_handle);
82
83 ScopedX509_STACK OSCertHandlesToOpenSSL(
84 const X509Certificate::OSCertHandles& os_handles);
85
70 } // namespace net 86 } // namespace net
71 87
72 #endif // NET_SSL_OPENSSL_SSL_UTIL_H_ 88 #endif // NET_SSL_OPENSSL_SSL_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698