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

Unified Diff: net/ssl/ssl_info.h

Issue 2272603003: Route key_exchange_group over to DevTools. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix test maybe Created 4 years, 4 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
Index: net/ssl/ssl_info.h
diff --git a/net/ssl/ssl_info.h b/net/ssl/ssl_info.h
index 8e46c251bebc72ddda63e6415cccfc0c2548239b..6015c24e87295343943208c4408362e8669f6ed6 100644
--- a/net/ssl/ssl_info.h
+++ b/net/ssl/ssl_info.h
@@ -5,6 +5,8 @@
#ifndef NET_SSL_SSL_INFO_H_
#define NET_SSL_SSL_INFO_H_
+#include <stdint.h>
+
#include <vector>
#include "base/memory/ref_counted.h"
@@ -49,6 +51,10 @@ class NET_EXPORT SSLInfo {
bool is_valid() const { return cert.get() != NULL; }
+ // Returns the ID of the (EC)DH group used by the key exchange or zero if
+ // unknown (older cache entries may not store the value) or not applicable.
+ uint16_t GetKeyExchangeGroup() const;
+
// Adds the specified |error| to the cert status.
void SetCertError(int error);
@@ -84,6 +90,9 @@ class NET_EXPORT SSLInfo {
// The meaning depends on the cipher used, see BoringSSL's |SSL_SESSION|'s
// key_exchange_info for more information.
// A zero indicates that the value is unknown.
+ //
+ // This field is deprecated. Use GetKeyExchangeGroup instead. See
+ // https://crbug.com/639421.
int key_exchange_info;
// Information about the SSL connection itself. See

Powered by Google App Engine
This is Rietveld 408576698