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

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

Issue 274783002: Implement SSL server socket over OpenSSL. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix for some comments. 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
« no previous file with comments | « net/net.gypi ('k') | net/socket/openssl_ssl_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef NET_SOCKET_OPENSSL_SSL_UTIL_H_
6 #define NET_SOCKET_OPENSSL_SSL_UTIL_H_
7
8 namespace crypto {
9 class OpenSSLErrStackTracer;
10 }
11
12 namespace net {
13
14 // Utility to construct the appropriate set & clear masks for use the OpenSSL
15 // options and mode configuration functions. (SSL_set_options etc)
16 struct SslSetClearMask {
17 SslSetClearMask();
18 void ConfigureFlag(long flag, bool state);
19
20 long set_mask;
21 long clear_mask;
22 };
23
24 // Converts an OpenSSL error code into a net error code, walking the OpenSSL
25 // error stack if needed. Note that |tracer| is not currently used in the
26 // implementation, but is passed in anyway as this ensures the caller will clear
27 // any residual codes left on the error stack.
28 int MapOpenSSLError(int err, const crypto::OpenSSLErrStackTracer& tracer);
29
30 } // namespace net
31
32 #endif // NET_SOCKET_OPENSSL_SSL_UTIL_H_
OLDNEW
« no previous file with comments | « net/net.gypi ('k') | net/socket/openssl_ssl_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698