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

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: 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 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 af8b9abb15b9f4f8b026dc6afca35c0d2285db48..f0cefb863ac3634d360a39308bd958d49fda5509 100644
--- a/net/ssl/openssl_ssl_util.h
+++ b/net/ssl/openssl_ssl_util.h
@@ -7,7 +7,11 @@
#include <stdint.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;
@@ -69,6 +73,18 @@ NetLog::ParametersCallback CreateNetLogOpenSSLErrorCallback(
int ssl_error,
const OpenSSLErrorInfo& error_info);
+void FreeX509Stack(STACK_OF(X509)* ptr);
+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.
+
+// 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