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

Side by Side Diff: net/test/spawned_test_server/base_test_server.cc

Issue 1133863004: Prune some remnants of DSA client certificate support. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: test server Created 5 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
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/test/spawned_test_server/base_test_server.h" 5 #include "net/test/spawned_test_server/base_test_server.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/base64.h" 10 #include "base/base64.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 } 43 }
44 44
45 // Use the 127.0.0.1 as default. 45 // Use the 127.0.0.1 as default.
46 return BaseTestServer::kLocalhost; 46 return BaseTestServer::kLocalhost;
47 } 47 }
48 48
49 std::string GetClientCertType(SSLClientCertType type) { 49 std::string GetClientCertType(SSLClientCertType type) {
50 switch (type) { 50 switch (type) {
51 case CLIENT_CERT_RSA_SIGN: 51 case CLIENT_CERT_RSA_SIGN:
52 return "rsa_sign"; 52 return "rsa_sign";
53 case CLIENT_CERT_DSS_SIGN:
54 return "dss_sign";
55 case CLIENT_CERT_ECDSA_SIGN: 53 case CLIENT_CERT_ECDSA_SIGN:
56 return "ecdsa_sign"; 54 return "ecdsa_sign";
57 default: 55 default:
58 NOTREACHED(); 56 NOTREACHED();
59 return ""; 57 return "";
60 } 58 }
61 } 59 }
62 60
63 void GetKeyExchangesList(int key_exchange, base::ListValue* values) { 61 void GetKeyExchangesList(int key_exchange, base::ListValue* values) {
64 if (key_exchange & BaseTestServer::SSLOptions::KEY_EXCHANGE_RSA) 62 if (key_exchange & BaseTestServer::SSLOptions::KEY_EXCHANGE_RSA)
(...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after
509 507
510 return GenerateAdditionalArguments(arguments); 508 return GenerateAdditionalArguments(arguments);
511 } 509 }
512 510
513 bool BaseTestServer::GenerateAdditionalArguments( 511 bool BaseTestServer::GenerateAdditionalArguments(
514 base::DictionaryValue* arguments) const { 512 base::DictionaryValue* arguments) const {
515 return true; 513 return true;
516 } 514 }
517 515
518 } // namespace net 516 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698