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

Unified Diff: remoting/host/token_validator_base.cc

Issue 2652353002: Adding logging for third party certifcate tokens (Closed)
Patch Set: Adding more information to identify which cert was used. Created 3 years, 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/token_validator_base.cc
diff --git a/remoting/host/token_validator_base.cc b/remoting/host/token_validator_base.cc
index d461b578b03bbec2e3db52df3628f0d2090dd283..42cafe195d29152d6c03e41f93d1f493650cd9de 100644
--- a/remoting/host/token_validator_base.cc
+++ b/remoting/host/token_validator_base.cc
@@ -36,6 +36,7 @@
#include "net/url_request/url_request.h"
#include "net/url_request/url_request_context.h"
#include "net/url_request/url_request_status.h"
+#include "remoting/base/logging.h"
#include "url/gurl.h"
namespace {
@@ -236,6 +237,13 @@ void TokenValidatorBase::ContinueWithCertificate(
net::X509Certificate* client_cert,
net::SSLPrivateKey* client_private_key) {
if (request_) {
+ if (client_cert) {
+ HOST_LOG << "Using certificate issued by: '"
+ << client_cert->issuer().common_name << "' with start date: '"
+ << client_cert->valid_start() << "' and expiry date: '"
+ << client_cert->valid_expiry() << "'";
+ }
+
request_->ContinueWithCertificate(client_cert, client_private_key);
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698