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

Unified Diff: net/base/ssl_info.h

Issue 6804032: Add TLS-SRP (RFC 5054) support Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: remove "httpsv" scheme, minor NSS/OpenSSL changes Created 9 years, 8 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 | « net/base/ssl_config_service.cc ('k') | net/base/ssl_info.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/ssl_info.h
diff --git a/net/base/ssl_info.h b/net/base/ssl_info.h
index 4c68f06e79300a91f6d48bf689c60e8b95f9d632..1832b8c112cb25fb0a77c3ee68c23cc8fc4e1855 100644
--- a/net/base/ssl_info.h
+++ b/net/base/ssl_info.h
@@ -6,6 +6,7 @@
#define NET_BASE_SSL_INFO_H_
#pragma once
+#include "base/string16.h"
#include "base/ref_counted.h"
namespace net {
@@ -23,7 +24,7 @@ class SSLInfo {
void Reset();
- bool is_valid() const { return cert != NULL; }
+ bool is_valid() const { return cert != NULL || !tls_username.empty(); }
// Adds the specified |error| to the cert status.
void SetCertError(int error);
@@ -31,6 +32,9 @@ class SSLInfo {
// The SSL certificate.
scoped_refptr<X509Certificate> cert;
+ // The TLS username, or the empty string "" if TLS login auth wasn't used.
+ string16 tls_username;
+
// Bitmask of status info of |cert|, representing, for example, known errors
// and extended validation (EV) status.
// See cert_status_flags.h for values.
« no previous file with comments | « net/base/ssl_config_service.cc ('k') | net/base/ssl_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698