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

Unified Diff: net/socket/ssl_error_params.cc

Issue 3845005: Add support for restricting the cipher suites that SSLClientSocket(Mac,NSS) use (Closed)
Patch Set: Upload before commit Created 10 years, 1 month 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
« net/base/ssl_config_service.h ('K') | « net/socket/ssl_error_params.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/socket/ssl_error_params.cc
diff --git a/net/socket/ssl_error_params.cc b/net/socket/ssl_error_params.cc
new file mode 100644
index 0000000000000000000000000000000000000000..c77cbec273b3fb81197fdfd742d3d7337ddeae59
--- /dev/null
+++ b/net/socket/ssl_error_params.cc
@@ -0,0 +1,24 @@
+// Copyright (c) 2010 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.
+
+#include "net/socket/ssl_error_params.h"
+
+#include "base/values.h"
+
+namespace net {
+
+SSLErrorParams::SSLErrorParams(int net_error, int ssl_lib_error)
+ : net_error_(net_error), ssl_lib_error_(ssl_lib_error) {}
+
+SSLErrorParams::~SSLErrorParams() {}
+
+Value* SSLErrorParams::ToValue() const {
+ DictionaryValue* dict = new DictionaryValue();
+ dict->SetInteger("net_error", net_error_);
+ if (ssl_lib_error_)
+ dict->SetInteger("ssl_lib_error", ssl_lib_error_);
+ return dict;
+}
+
+} // namespace net
« net/base/ssl_config_service.h ('K') | « net/socket/ssl_error_params.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698