// 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 #include #include #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; using ScopedSSL_CTX = crypto::ScopedOpenSSL; using ScopedSSL_SESSION = crypto::ScopedOpenSSL; using ScopedX509 = crypto::ScopedOpenSSL; using ScopedX509_NAME = crypto::ScopedOpenSSL; using ScopedX509Stack = crypto::ScopedOpenSSL; using ScopedX509NameStack = crypto::ScopedOpenSSL; } // namespace net #endif // NET_SSL_SCOPED_OPENSSL_TYPES_H_