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

Unified Diff: net/ssl/scoped_openssl_types.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/scoped_openssl_types.h
diff --git a/net/ssl/scoped_openssl_types.h b/net/ssl/scoped_openssl_types.h
index a8c3c345975336f7781ef1222c6e6034d0319fea..7edf94a9c41348c8c75830e73b1af4b1cbaacdd7 100644
--- a/net/ssl/scoped_openssl_types.h
+++ b/net/ssl/scoped_openssl_types.h
@@ -12,12 +12,19 @@
namespace net {
+void FreeX509Stack(STACK_OF(X509)* ptr);
+void FreeX509NameStack(STACK_OF(X509_NAME)* ptr);
+
using ScopedPKCS8_PRIV_KEY_INFO =
crypto::ScopedOpenSSL<PKCS8_PRIV_KEY_INFO, PKCS8_PRIV_KEY_INFO_free>;
using ScopedSSL = crypto::ScopedOpenSSL<SSL, SSL_free>;
using ScopedSSL_CTX = crypto::ScopedOpenSSL<SSL_CTX, SSL_CTX_free>;
using ScopedSSL_SESSION = crypto::ScopedOpenSSL<SSL_SESSION, SSL_SESSION_free>;
using ScopedX509 = crypto::ScopedOpenSSL<X509, X509_free>;
+using ScopedX509_NAME = crypto::ScopedOpenSSL<X509_NAME, X509_NAME_free>;
+using ScopedX509_STACK = crypto::ScopedOpenSSL<STACK_OF(X509), FreeX509Stack>;
davidben 2016/01/25 20:56:11 #include <openssl/stack.h>
davidben 2016/01/25 20:56:11 This is confusing. The OpenSSL type is not called
ryanchung 2016/01/29 23:22:14 Done.
ryanchung 2016/01/29 23:22:14 Done.
+using ScopedX509_NAME_STACK =
+ crypto::ScopedOpenSSL<STACK_OF(X509_NAME), FreeX509NameStack>;
} // namespace net

Powered by Google App Engine
This is Rietveld 408576698