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

Side by Side 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: fixed merging issue Created 4 years, 7 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef NET_CERT_CT_SCT_TO_STRING_H_
6 #define NET_CERT_CT_SCT_TO_STRING_H_
7
8 #include "net/cert/sct_status_flags.h"
9 #include "net/cert/signed_certificate_timestamp.h"
10
11 namespace net {
12
13 // Functions for converting non-string attributes of
estark 2016/05/20 22:36:42 I'm not sure about this file. It might make more s
14 // net::ct::SignedCertificateTimestamp and net::ct::SCTVerifyStatus values to
15 // strings.
16 namespace ct {
17
18 // Converts a numeric |hash_algorithm| to its textual representation.
19 NET_EXPORT const std::string HashAlgorithmToString(
20 net::ct::DigitallySigned::HashAlgorithm hashAlgorithm);
21
22 // Converts a numeric |origin| to its textual representation.
23 NET_EXPORT const std::string OriginToString(
24 net::ct::SignedCertificateTimestamp::Origin origin);
25
26 // Converts a numeric |signatureAlgorithm| to its textual representation.
27 NET_EXPORT const std::string SignatureAlgorithmToString(
28 net::ct::DigitallySigned::SignatureAlgorithm signatureAlgorithm);
29
30 // Converts a numeric |status| to its textual representation.
31 NET_EXPORT const std::string StatusToString(net::ct::SCTVerifyStatus status);
32
33 // Converts a numeric |version| to its textual representation.
34 NET_EXPORT const std::string VersionToString(
35 net::ct::SignedCertificateTimestamp::Version version);
36
37 } // namespace ct
38
39 } // namespace net
40
41 #endif // NET_CERT_CT_SCT_TO_STRING_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698