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 <string> |
| 9 |
| 10 #include "net/cert/sct_status_flags.h" |
| 11 #include "net/cert/signed_certificate_timestamp.h" |
| 12 |
| 13 namespace net { |
| 14 |
| 15 // Functions for converting non-string attributes of |
| 16 // net::ct::SignedCertificateTimestamp and net::ct::SCTVerifyStatus values to |
| 17 // strings. |
| 18 namespace ct { |
| 19 |
| 20 // Returns a textual representation of |hash_algorithm|. |
| 21 NET_EXPORT const std::string HashAlgorithmToString( |
| 22 DigitallySigned::HashAlgorithm hashAlgorithm); |
| 23 |
| 24 // Returns a textual representation of |origin|. |
| 25 NET_EXPORT const std::string OriginToString( |
| 26 SignedCertificateTimestamp::Origin origin); |
| 27 |
| 28 // Returns a textual representation of |signatureAlgorithm|. |
| 29 NET_EXPORT const std::string SignatureAlgorithmToString( |
| 30 DigitallySigned::SignatureAlgorithm signatureAlgorithm); |
| 31 |
| 32 // Returns a textual representation of |status|. |
| 33 NET_EXPORT const std::string StatusToString(SCTVerifyStatus status); |
| 34 |
| 35 } // namespace ct |
| 36 |
| 37 } // namespace net |
| 38 |
| 39 #endif // NET_CERT_CT_SCT_TO_STRING_H_ |
OLD | NEW |