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

Side by Side Diff: content/child/web_url_loader_impl.cc

Issue 2395323002: Roll src/third_party/boringssl/src 0d81373f9..1991af690 (Closed)
Patch Set: roll further, fix things Created 4 years, 2 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "content/child/web_url_loader_impl.h" 5 #include "content/child/web_url_loader_impl.h"
6 6
7 #include <openssl/ssl.h> 7 #include <openssl/ssl.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 231
232 int ssl_version = 232 int ssl_version =
233 net::SSLConnectionStatusToVersion(info.ssl_connection_status); 233 net::SSLConnectionStatusToVersion(info.ssl_connection_status);
234 const char* protocol; 234 const char* protocol;
235 net::SSLVersionToString(&protocol, ssl_version); 235 net::SSLVersionToString(&protocol, ssl_version);
236 236
237 const char* key_exchange; 237 const char* key_exchange;
238 const char* cipher; 238 const char* cipher;
239 const char* mac; 239 const char* mac;
240 bool is_aead; 240 bool is_aead;
241 bool is_tls13;
241 uint16_t cipher_suite = 242 uint16_t cipher_suite =
242 net::SSLConnectionStatusToCipherSuite(info.ssl_connection_status); 243 net::SSLConnectionStatusToCipherSuite(info.ssl_connection_status);
243 net::SSLCipherSuiteToStrings(&key_exchange, &cipher, &mac, &is_aead, 244 net::SSLCipherSuiteToStrings(&key_exchange, &cipher, &mac, &is_aead,
244 cipher_suite); 245 &is_tls13, cipher_suite);
245 if (mac == NULL) { 246 if (key_exchange == nullptr) {
247 DCHECK(is_tls13);
248 key_exchange = "";
249 }
250
251 if (mac == nullptr) {
246 DCHECK(is_aead); 252 DCHECK(is_aead);
247 mac = ""; 253 mac = "";
248 } 254 }
249 255
250 const char* key_exchange_group = ""; 256 const char* key_exchange_group = "";
251 if (info.ssl_key_exchange_group != 0) { 257 if (info.ssl_key_exchange_group != 0) {
252 // Historically the field was named 'curve' rather than 'group'. 258 // Historically the field was named 'curve' rather than 'group'.
253 key_exchange_group = SSL_get_curve_name(info.ssl_key_exchange_group); 259 key_exchange_group = SSL_get_curve_name(info.ssl_key_exchange_group);
254 if (!key_exchange_group) { 260 if (!key_exchange_group) {
255 NOTREACHED(); 261 NOTREACHED();
(...skipping 993 matching lines...) Expand 10 before | Expand all | Expand 10 after
1249 response->clearHTTPHeaderField(webStringName); 1255 response->clearHTTPHeaderField(webStringName);
1250 while (response_headers->EnumerateHeader(&iterator, name, &value)) { 1256 while (response_headers->EnumerateHeader(&iterator, name, &value)) {
1251 response->addHTTPHeaderField(webStringName, 1257 response->addHTTPHeaderField(webStringName,
1252 WebString::fromLatin1(value)); 1258 WebString::fromLatin1(value));
1253 } 1259 }
1254 } 1260 }
1255 return true; 1261 return true;
1256 } 1262 }
1257 1263
1258 } // namespace content 1264 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698