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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 NOTREACHED(); | 52 NOTREACHED(); |
53 return ""; | 53 return ""; |
54 } | 54 } |
55 } | 55 } |
56 | 56 |
57 void GetKeyExchangesList(int key_exchange, base::ListValue* values) { | 57 void GetKeyExchangesList(int key_exchange, base::ListValue* values) { |
58 if (key_exchange & BaseTestServer::SSLOptions::KEY_EXCHANGE_RSA) | 58 if (key_exchange & BaseTestServer::SSLOptions::KEY_EXCHANGE_RSA) |
59 values->Append(new base::StringValue("rsa")); | 59 values->Append(new base::StringValue("rsa")); |
60 if (key_exchange & BaseTestServer::SSLOptions::KEY_EXCHANGE_DHE_RSA) | 60 if (key_exchange & BaseTestServer::SSLOptions::KEY_EXCHANGE_DHE_RSA) |
61 values->Append(new base::StringValue("dhe_rsa")); | 61 values->Append(new base::StringValue("dhe_rsa")); |
62 if (key_exchange & BaseTestServer::SSLOptions::KEY_EXCHANGE_ECDHE_RSA) | |
63 values->Append(new base::StringValue("ecdhe_rsa")); | |
64 } | 62 } |
65 | 63 |
66 void GetCiphersList(int cipher, base::ListValue* values) { | 64 void GetCiphersList(int cipher, base::ListValue* values) { |
67 if (cipher & BaseTestServer::SSLOptions::BULK_CIPHER_RC4) | 65 if (cipher & BaseTestServer::SSLOptions::BULK_CIPHER_RC4) |
68 values->Append(new base::StringValue("rc4")); | 66 values->Append(new base::StringValue("rc4")); |
69 if (cipher & BaseTestServer::SSLOptions::BULK_CIPHER_AES128) | 67 if (cipher & BaseTestServer::SSLOptions::BULK_CIPHER_AES128) |
70 values->Append(new base::StringValue("aes128")); | 68 values->Append(new base::StringValue("aes128")); |
71 if (cipher & BaseTestServer::SSLOptions::BULK_CIPHER_AES256) | 69 if (cipher & BaseTestServer::SSLOptions::BULK_CIPHER_AES256) |
72 values->Append(new base::StringValue("aes256")); | 70 values->Append(new base::StringValue("aes256")); |
73 if (cipher & BaseTestServer::SSLOptions::BULK_CIPHER_3DES) | 71 if (cipher & BaseTestServer::SSLOptions::BULK_CIPHER_3DES) |
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
494 | 492 |
495 return GenerateAdditionalArguments(arguments); | 493 return GenerateAdditionalArguments(arguments); |
496 } | 494 } |
497 | 495 |
498 bool BaseTestServer::GenerateAdditionalArguments( | 496 bool BaseTestServer::GenerateAdditionalArguments( |
499 base::DictionaryValue* arguments) const { | 497 base::DictionaryValue* arguments) const { |
500 return true; | 498 return true; |
501 } | 499 } |
502 | 500 |
503 } // namespace net | 501 } // namespace net |
OLD | NEW |