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

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: reacted to comments of Charlie and Mike Created 4 years, 5 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 <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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698