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

Unified Diff: content/child/web_url_loader_impl.cc

Issue 2272603003: Route key_exchange_group over to DevTools. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase again Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/loader/resource_loader.cc ('k') | content/common/resource_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/web_url_loader_impl.cc
diff --git a/content/child/web_url_loader_impl.cc b/content/child/web_url_loader_impl.cc
index 051b852769b06d205bb489445d66aa979a705a6d..71a7d0d120ec271bd67a1f2f1c045a1673a8f6ab 100644
--- a/content/child/web_url_loader_impl.cc
+++ b/content/child/web_url_loader_impl.cc
@@ -4,6 +4,7 @@
#include "content/child/web_url_loader_impl.h"
+#include <openssl/ssl.h>
#include <stdint.h>
#include <algorithm>
@@ -247,6 +248,16 @@ void SetSecurityStyleAndDetails(const GURL& url,
mac = "";
}
+ const char* key_exchange_group = "";
+ if (info.ssl_key_exchange_group != 0) {
+ // Historically the field was named 'curve' rather than 'group'.
+ key_exchange_group = SSL_get_curve_name(info.ssl_key_exchange_group);
+ if (!key_exchange_group) {
+ NOTREACHED();
+ key_exchange_group = "";
+ }
+ }
+
SecurityStyle security_style = GetSecurityStyleForResource(
url, true, info.cert_status);
@@ -304,6 +315,7 @@ void SetSecurityStyleAndDetails(const GURL& url,
blink::WebURLResponse::WebSecurityDetails webSecurityDetails(
WebString::fromUTF8(protocol), WebString::fromUTF8(key_exchange),
+ WebString::fromUTF8(key_exchange_group),
WebString::fromUTF8(cipher), WebString::fromUTF8(mac),
WebString::fromUTF8(subject),
web_san,
« no previous file with comments | « content/browser/loader/resource_loader.cc ('k') | content/common/resource_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698