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

Side by Side Diff: net/socket/openssl_util.h

Issue 274783002: Implement SSL server socket over OpenSSL. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 7 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
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698