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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_SCOPED_OPENSSL_TYPES_H_ 5 #ifndef NET_SSL_SCOPED_OPENSSL_TYPES_H_
6 #define NET_SSL_SCOPED_OPENSSL_TYPES_H_ 6 #define NET_SSL_SCOPED_OPENSSL_TYPES_H_
7 7
8 #include <openssl/ssl.h> 8 #include <openssl/ssl.h>
9 #include <openssl/x509.h> 9 #include <openssl/x509.h>
10 10
11 #include "crypto/scoped_openssl_types.h" 11 #include "crypto/scoped_openssl_types.h"
12 12
13 namespace net { 13 namespace net {
14 14
15 void FreeX509Stack(STACK_OF(X509)* ptr);
16 void FreeX509NameStack(STACK_OF(X509_NAME)* ptr);
17
15 using ScopedPKCS8_PRIV_KEY_INFO = 18 using ScopedPKCS8_PRIV_KEY_INFO =
16 crypto::ScopedOpenSSL<PKCS8_PRIV_KEY_INFO, PKCS8_PRIV_KEY_INFO_free>; 19 crypto::ScopedOpenSSL<PKCS8_PRIV_KEY_INFO, PKCS8_PRIV_KEY_INFO_free>;
17 using ScopedSSL = crypto::ScopedOpenSSL<SSL, SSL_free>; 20 using ScopedSSL = crypto::ScopedOpenSSL<SSL, SSL_free>;
18 using ScopedSSL_CTX = crypto::ScopedOpenSSL<SSL_CTX, SSL_CTX_free>; 21 using ScopedSSL_CTX = crypto::ScopedOpenSSL<SSL_CTX, SSL_CTX_free>;
19 using ScopedSSL_SESSION = crypto::ScopedOpenSSL<SSL_SESSION, SSL_SESSION_free>; 22 using ScopedSSL_SESSION = crypto::ScopedOpenSSL<SSL_SESSION, SSL_SESSION_free>;
20 using ScopedX509 = crypto::ScopedOpenSSL<X509, X509_free>; 23 using ScopedX509 = crypto::ScopedOpenSSL<X509, X509_free>;
24 using ScopedX509_NAME = crypto::ScopedOpenSSL<X509_NAME, X509_NAME_free>;
25 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.
26 using ScopedX509_NAME_STACK =
27 crypto::ScopedOpenSSL<STACK_OF(X509_NAME), FreeX509NameStack>;
21 28
22 } // namespace net 29 } // namespace net
23 30
24 #endif // NET_SSL_SCOPED_OPENSSL_TYPES_H_ 31 #endif // NET_SSL_SCOPED_OPENSSL_TYPES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698