OLD | NEW |
---|---|
(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 | |
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. | |
palmer
2016/05/23 19:54:25
Extremely Minor Nit: You could slightly simplify t
dwaxweiler
2016/05/27 23:13:00
Acknowledged.
| |
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_ | |
OLD | NEW |