Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 // This file is only included in ssl_client_socket_openssl.cc and | |
| 6 // ssl_server_socket_openssl.cc to share common functions of OpenSSL. | |
|
Ryan Sleevi
2014/05/12 01:35:25
This documentation is inappropriate, as it's a lay
byungchul
2014/05/12 18:25:23
Removed though nss_ssl_util.h also has this commen
| |
| 7 | |
| 8 #ifndef NET_SOCKET_OPENSSL_UTIL_H_ | |
| 9 #define NET_SOCKET_OPENSSL_UTIL_H_ | |
| 10 | |
| 11 namespace crypto { | |
| 12 class OpenSSLErrStackTracer; | |
| 13 } | |
| 14 | |
| 15 namespace net { | |
| 16 | |
| 17 // Utility to construct the appropriate set & clear masks for use the OpenSSL | |
| 18 // options and mode configuration functions. (SSL_set_options etc) | |
| 19 struct SslSetClearMask { | |
| 20 SslSetClearMask(); | |
| 21 void ConfigureFlag(long flag, bool state); | |
| 22 | |
| 23 long set_mask; | |
| 24 long clear_mask; | |
| 25 }; | |
| 26 | |
| 27 int MapOpenSSLError(int err, const crypto::OpenSSLErrStackTracer& tracer); | |
| 28 | |
| 29 } // namespace net | |
| 30 | |
| 31 #endif // NET_SOCKET_OPENSSL_UTIL_H_ | |
| OLD | NEW |