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

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

Issue 92443002: Extract Certificate Transparency SCTs from stapled OCSP responses (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@extract_scts
Patch Set: review comments Created 7 years 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 380 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 scoped_ptr<base::ListValue> bulk_cipher_values(new base::ListValue()); 391 scoped_ptr<base::ListValue> bulk_cipher_values(new base::ListValue());
392 GetCiphersList(ssl_options_.bulk_ciphers, bulk_cipher_values.get()); 392 GetCiphersList(ssl_options_.bulk_ciphers, bulk_cipher_values.get());
393 if (bulk_cipher_values->GetSize()) 393 if (bulk_cipher_values->GetSize())
394 arguments->Set("ssl-bulk-cipher", bulk_cipher_values.release()); 394 arguments->Set("ssl-bulk-cipher", bulk_cipher_values.release());
395 if (ssl_options_.record_resume) 395 if (ssl_options_.record_resume)
396 arguments->Set("https-record-resume", base::Value::CreateNullValue()); 396 arguments->Set("https-record-resume", base::Value::CreateNullValue());
397 if (ssl_options_.tls_intolerant != SSLOptions::TLS_INTOLERANT_NONE) { 397 if (ssl_options_.tls_intolerant != SSLOptions::TLS_INTOLERANT_NONE) {
398 arguments->Set("tls-intolerant", 398 arguments->Set("tls-intolerant",
399 new base::FundamentalValue(ssl_options_.tls_intolerant)); 399 new base::FundamentalValue(ssl_options_.tls_intolerant));
400 } 400 }
401 if (!ssl_options_.signed_cert_timestamps.empty()) { 401 if (!ssl_options_.signed_cert_timestamps_tls_ext.empty()) {
402 std::string b64_scts; 402 std::string b64_scts_tls_ext;
403 if (!base::Base64Encode(ssl_options_.signed_cert_timestamps, &b64_scts)) 403 if (!base::Base64Encode(ssl_options_.signed_cert_timestamps_tls_ext,
404 &b64_scts_tls_ext)) {
404 return false; 405 return false;
405 arguments->SetString("signed-cert-timestamps", b64_scts); 406 }
407 arguments->SetString("signed-cert-timestamps-tls-ext", b64_scts_tls_ext);
406 } 408 }
409 if (ssl_options_.staple_ocsp_response)
410 arguments->Set("staple-ocsp-response", base::Value::CreateNullValue());
407 } 411 }
408 412
409 return GenerateAdditionalArguments(arguments); 413 return GenerateAdditionalArguments(arguments);
410 } 414 }
411 415
412 bool BaseTestServer::GenerateAdditionalArguments( 416 bool BaseTestServer::GenerateAdditionalArguments(
413 base::DictionaryValue* arguments) const { 417 base::DictionaryValue* arguments) const {
414 return true; 418 return true;
415 } 419 }
416 420
417 } // namespace net 421 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698