Chromium Code Reviews| 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 // Returns a textual representation of |hash_algorithm|. | |
| 19 NET_EXPORT const std::string HashAlgorithmToString( | |
| 20 net::ct::DigitallySigned::HashAlgorithm hashAlgorithm); | |
|
davidben
2016/06/14 15:47:37
Remove net::ct:: prefix throughout this file. (You
dwaxweiler
2016/06/14 16:57:02
Acknowledged.
| |
| 21 | |
| 22 // Returns a textual representation of |origin|. | |
| 23 NET_EXPORT const std::string OriginToString( | |
|
davidben
2016/06/14 15:47:37
#include <string>
dwaxweiler
2016/06/14 16:57:02
Acknowledged.
| |
| 24 net::ct::SignedCertificateTimestamp::Origin origin); | |
| 25 | |
| 26 // Returns a textual representation of |signatureAlgorithm|. | |
| 27 NET_EXPORT const std::string SignatureAlgorithmToString( | |
| 28 net::ct::DigitallySigned::SignatureAlgorithm signatureAlgorithm); | |
| 29 | |
| 30 // Returns a textual representation of |status|. | |
| 31 NET_EXPORT const std::string StatusToString(net::ct::SCTVerifyStatus status); | |
| 32 | |
| 33 } // namespace ct | |
| 34 | |
| 35 } // namespace net | |
| 36 | |
| 37 #endif // NET_CERT_CT_SCT_TO_STRING_H_ | |
| OLD | NEW |