| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |