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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: net/socket/openssl_util.h
diff --git a/net/socket/openssl_util.h b/net/socket/openssl_util.h
new file mode 100644
index 0000000000000000000000000000000000000000..493b983f97e89e54cab306b1b52c072ce5ed68e8
--- /dev/null
+++ b/net/socket/openssl_util.h
@@ -0,0 +1,31 @@
+// Copyright (c) 2014 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.
+
+// This file is only included in ssl_client_socket_openssl.cc and
+// 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
+
+#ifndef NET_SOCKET_OPENSSL_UTIL_H_
+#define NET_SOCKET_OPENSSL_UTIL_H_
+
+namespace crypto {
+class OpenSSLErrStackTracer;
+}
+
+namespace net {
+
+// Utility to construct the appropriate set & clear masks for use the OpenSSL
+// options and mode configuration functions. (SSL_set_options etc)
+struct SslSetClearMask {
+ SslSetClearMask();
+ void ConfigureFlag(long flag, bool state);
+
+ long set_mask;
+ long clear_mask;
+};
+
+int MapOpenSSLError(int err, const crypto::OpenSSLErrStackTracer& tracer);
+
+} // namespace net
+
+#endif // NET_SOCKET_OPENSSL_UTIL_H_

Powered by Google App Engine
This is Rietveld 408576698