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

Unified Diff: net/cert/internal/cert_error_id.cc

Issue 2329593002: Add optional context for certificate errors. (Closed)
Patch Set: Address Matt's comments 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 | « net/cert/internal/cert_error_id.h ('k') | net/cert/internal/cert_error_params.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/cert/internal/cert_error_id.cc
diff --git a/net/cert/internal/cert_error_id.cc b/net/cert/internal/cert_error_id.cc
new file mode 100644
index 0000000000000000000000000000000000000000..80ab4f4f214dcbbcdbe707233fc3b244dc8eadc1
--- /dev/null
+++ b/net/cert/internal/cert_error_id.cc
@@ -0,0 +1,14 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "net/cert/internal/cert_error_id.h"
+
+namespace net {
+
+const char* CertErrorIdToDebugString(CertErrorId id) {
+ // The CertErrorId is simply a pointer for a C-string literal.
+ return reinterpret_cast<const char*>(id);
+}
+
+} // namespace net
« no previous file with comments | « net/cert/internal/cert_error_id.h ('k') | net/cert/internal/cert_error_params.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698