| 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..4b88e773b7ea8bd1585b3e3a65f4cb7cdf1677e9
|
| --- /dev/null
|
| +++ b/net/cert/ct_sct_to_string.h
|
| @@ -0,0 +1,41 @@
|
| +// 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 "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 {
|
| +
|
| +// Converts a numeric |hash_algorithm| to its textual representation.
|
| +NET_EXPORT const std::string HashAlgorithmToString(
|
| + net::ct::DigitallySigned::HashAlgorithm hashAlgorithm);
|
| +
|
| +// Converts a numeric |origin| to its textual representation.
|
| +NET_EXPORT const std::string OriginToString(
|
| + net::ct::SignedCertificateTimestamp::Origin origin);
|
| +
|
| +// Converts a numeric |signatureAlgorithm| to its textual representation.
|
| +NET_EXPORT const std::string SignatureAlgorithmToString(
|
| + net::ct::DigitallySigned::SignatureAlgorithm signatureAlgorithm);
|
| +
|
| +// Converts a numeric |status| to its textual representation.
|
| +NET_EXPORT const std::string StatusToString(net::ct::SCTVerifyStatus status);
|
| +
|
| +// Converts a numeric |version| to its textual representation.
|
| +NET_EXPORT const std::string VersionToString(
|
| + net::ct::SignedCertificateTimestamp::Version version);
|
| +
|
| +} // namespace ct
|
| +
|
| +} // namespace net
|
| +
|
| +#endif // NET_CERT_CT_SCT_TO_STRING_H_
|
|
|