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

Unified Diff: net/ssl/scoped_openssl_types.h

Issue 2400033005: Use BoringSSL scopers in //net. (Closed)
Patch Set: eroman comments Created 4 years, 2 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
« no previous file with comments | « net/ssl/openssl_ssl_util.cc ('k') | net/ssl/ssl_client_session_cache.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/ssl/scoped_openssl_types.h
diff --git a/net/ssl/scoped_openssl_types.h b/net/ssl/scoped_openssl_types.h
deleted file mode 100644
index 8bee4981b24b55f2a07a018bb48b4dbe98561116..0000000000000000000000000000000000000000
--- a/net/ssl/scoped_openssl_types.h
+++ /dev/null
@@ -1,35 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef NET_SSL_SCOPED_OPENSSL_TYPES_H_
-#define NET_SSL_SCOPED_OPENSSL_TYPES_H_
-
-#include <openssl/ssl.h>
-#include <openssl/stack.h>
-#include <openssl/x509.h>
-
-#include "crypto/scoped_openssl_types.h"
-
-namespace net {
-
-inline void FreeX509Stack(STACK_OF(X509)* ptr) {
- sk_X509_pop_free(ptr, X509_free);
-}
-
-inline void FreeX509NameStack(STACK_OF(X509_NAME)* ptr) {
- sk_X509_NAME_pop_free(ptr, X509_NAME_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 ScopedX509Stack = crypto::ScopedOpenSSL<STACK_OF(X509), FreeX509Stack>;
-using ScopedX509NameStack =
- crypto::ScopedOpenSSL<STACK_OF(X509_NAME), FreeX509NameStack>;
-
-} // namespace net
-
-#endif // NET_SSL_SCOPED_OPENSSL_TYPES_H_
« no previous file with comments | « net/ssl/openssl_ssl_util.cc ('k') | net/ssl/ssl_client_session_cache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698