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

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

Issue 2824713002: Trim some dependencies on crypto/x509 headers. (Closed)
Patch Set: . Created 3 years, 8 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/openssl_ssl_util.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 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 "net/base/net_export.h" 10 #include "net/base/net_export.h"
11 #include "net/cert/x509_certificate.h" 11 #include "net/cert/x509_certificate.h"
12 #include "net/log/net_log_parameters_callback.h" 12 #include "net/log/net_log_parameters_callback.h"
13 #include "third_party/boringssl/src/include/openssl/x509.h" 13 #include "third_party/boringssl/src/include/openssl/base.h"
14 14
15 namespace crypto { 15 namespace crypto {
16 class OpenSSLErrStackTracer; 16 class OpenSSLErrStackTracer;
17 } 17 }
18 18
19 namespace tracked_objects { 19 namespace tracked_objects {
20 class Location; 20 class Location;
21 } 21 }
22 22
23 namespace net { 23 namespace net {
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 // Creates NetLog callback for an OpenSSL error. 71 // Creates NetLog callback for an OpenSSL error.
72 NetLogParametersCallback CreateNetLogOpenSSLErrorCallback( 72 NetLogParametersCallback CreateNetLogOpenSSLErrorCallback(
73 int net_error, 73 int net_error,
74 int ssl_error, 74 int ssl_error,
75 const OpenSSLErrorInfo& error_info); 75 const OpenSSLErrorInfo& error_info);
76 76
77 // Returns the net SSL version number (see ssl_connection_status_flags.h) for 77 // Returns the net SSL version number (see ssl_connection_status_flags.h) for
78 // this SSL connection. 78 // this SSL connection.
79 int GetNetSSLVersion(SSL* ssl); 79 int GetNetSSLVersion(SSL* ssl);
80 80
81 bssl::UniquePtr<X509> OSCertHandleToOpenSSL(
82 X509Certificate::OSCertHandle os_handle);
83
84 bssl::UniquePtr<STACK_OF(X509)> OSCertHandlesToOpenSSL(
85 const X509Certificate::OSCertHandles& os_handles);
86
87 } // namespace net 81 } // namespace net
88 82
89 #endif // NET_SSL_OPENSSL_SSL_UTIL_H_ 83 #endif // NET_SSL_OPENSSL_SSL_UTIL_H_
OLDNEW
« no previous file with comments | « net/socket/ssl_client_socket_impl.cc ('k') | net/ssl/openssl_ssl_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698