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

Unified Diff: net/cert/ct_sct_to_string.h

Issue 1772603002: Addition of Certificate Transparency details to Security panel of DevTools (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 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/child/web_url_loader_impl.cc ('k') | net/cert/ct_sct_to_string.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/cert/ct_sct_to_string.h
diff --git a/net/cert/ct_sct_to_string.h b/net/cert/ct_sct_to_string.h
new file mode 100644
index 0000000000000000000000000000000000000000..165dd89b89e18252316cf448cad940880c667c57
--- /dev/null
+++ b/net/cert/ct_sct_to_string.h
@@ -0,0 +1,39 @@
+// 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.
+
+#ifndef NET_CERT_CT_SCT_TO_STRING_H_
+#define NET_CERT_CT_SCT_TO_STRING_H_
+
+#include <string>
+
+#include "net/cert/sct_status_flags.h"
+#include "net/cert/signed_certificate_timestamp.h"
+
+namespace net {
+
+// Functions for converting non-string attributes of
+// net::ct::SignedCertificateTimestamp and net::ct::SCTVerifyStatus values to
+// strings.
+namespace ct {
+
+// Returns a textual representation of |hash_algorithm|.
+NET_EXPORT const std::string HashAlgorithmToString(
+ DigitallySigned::HashAlgorithm hashAlgorithm);
+
+// Returns a textual representation of |origin|.
+NET_EXPORT const std::string OriginToString(
+ SignedCertificateTimestamp::Origin origin);
+
+// Returns a textual representation of |signatureAlgorithm|.
+NET_EXPORT const std::string SignatureAlgorithmToString(
+ DigitallySigned::SignatureAlgorithm signatureAlgorithm);
+
+// Returns a textual representation of |status|.
+NET_EXPORT const std::string StatusToString(SCTVerifyStatus status);
+
+} // namespace ct
+
+} // namespace net
+
+#endif // NET_CERT_CT_SCT_TO_STRING_H_
« no previous file with comments | « content/child/web_url_loader_impl.cc ('k') | net/cert/ct_sct_to_string.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698