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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: net/ssl/openssl_ssl_util.h
diff --git a/net/ssl/openssl_ssl_util.h b/net/ssl/openssl_ssl_util.h
index 6c886cc1c9cf5d29325f9f62a858eeea9c8ef03e..ccbbb1e676f43fd0647c085a4f8e8362f601ec17 100644
--- a/net/ssl/openssl_ssl_util.h
+++ b/net/ssl/openssl_ssl_util.h
@@ -5,7 +5,11 @@
#ifndef NET_SSL_OPENSSL_SSL_UTIL_H_
#define NET_SSL_OPENSSL_SSL_UTIL_H_
+#include <openssl/ssl.h>
+
+#include "net/cert/x509_certificate.h"
#include "net/log/net_log.h"
+#include "net/ssl/scoped_openssl_types.h"
namespace crypto {
class OpenSSLErrStackTracer;
@@ -67,6 +71,18 @@ NetLog::ParametersCallback CreateNetLogOpenSSLErrorCallback(
int ssl_error,
const OpenSSLErrorInfo& error_info);
+void FreeX509Stack(STACK_OF(X509) * ptr);
+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.
+
+// Returns the net SSL version number (see ssl_connection_status_flags.h) for
+// this SSL connection.
+int GetNetSSLVersion(SSL* ssl);
+
+ScopedX509 OSCertHandleToOpenSSL(X509Certificate::OSCertHandle os_handle);
+
+ScopedX509_STACK OSCertHandlesToOpenSSL(
+ const X509Certificate::OSCertHandles& os_handles);
+
} // namespace net
#endif // NET_SSL_OPENSSL_SSL_UTIL_H_

Powered by Google App Engine
This is Rietveld 408576698