xref: /freebsd/crypto/openssl/doc/man3/SCT_print.pod (revision e71b70530d95c4f34d8bdbd78d1242df1ba4a945)
1*e71b7053SJung-uk Kim=pod
2*e71b7053SJung-uk Kim
3*e71b7053SJung-uk Kim=head1 NAME
4*e71b7053SJung-uk Kim
5*e71b7053SJung-uk KimSCT_print, SCT_LIST_print, SCT_validation_status_string -
6*e71b7053SJung-uk KimPrints Signed Certificate Timestamps in a human-readable way
7*e71b7053SJung-uk Kim
8*e71b7053SJung-uk Kim=head1 SYNOPSIS
9*e71b7053SJung-uk Kim
10*e71b7053SJung-uk Kim #include <openssl/ct.h>
11*e71b7053SJung-uk Kim
12*e71b7053SJung-uk Kim void SCT_print(const SCT *sct, BIO *out, int indent, const CTLOG_STORE *logs);
13*e71b7053SJung-uk Kim void SCT_LIST_print(const STACK_OF(SCT) *sct_list, BIO *out, int indent,
14*e71b7053SJung-uk Kim                     const char *separator, const CTLOG_STORE *logs);
15*e71b7053SJung-uk Kim const char *SCT_validation_status_string(const SCT *sct);
16*e71b7053SJung-uk Kim
17*e71b7053SJung-uk Kim=head1 DESCRIPTION
18*e71b7053SJung-uk Kim
19*e71b7053SJung-uk KimSCT_print() prints a single Signed Certificate Timestamp (SCT) to a L<bio> in
20*e71b7053SJung-uk Kima human-readable format. SCT_LIST_print() prints an entire list of SCTs in a
21*e71b7053SJung-uk Kimsimilar way. A separator can be specified to delimit each SCT in the output.
22*e71b7053SJung-uk Kim
23*e71b7053SJung-uk KimThe output can be indented by a specified number of spaces. If a B<CTLOG_STORE>
24*e71b7053SJung-uk Kimis provided, it will be used to print the description of the CT log that issued
25*e71b7053SJung-uk Kimeach SCT (if that log is in the CTLOG_STORE). Alternatively, NULL can be passed
26*e71b7053SJung-uk Kimas the CTLOG_STORE parameter to disable this feature.
27*e71b7053SJung-uk Kim
28*e71b7053SJung-uk KimSCT_validation_status_string() will return the validation status of an SCT as
29*e71b7053SJung-uk Kima human-readable string. Call SCT_validate() or SCT_LIST_validate()
30*e71b7053SJung-uk Kimbeforehand in order to set the validation status of an SCT first.
31*e71b7053SJung-uk Kim
32*e71b7053SJung-uk Kim=head1 RETURN VALUES
33*e71b7053SJung-uk Kim
34*e71b7053SJung-uk KimSCT_validation_status_string() returns a null-terminated string representing
35*e71b7053SJung-uk Kimthe validation status of an B<SCT> object.
36*e71b7053SJung-uk Kim
37*e71b7053SJung-uk Kim=head1 SEE ALSO
38*e71b7053SJung-uk Kim
39*e71b7053SJung-uk KimL<ct(7)>,
40*e71b7053SJung-uk KimL<bio(7)>,
41*e71b7053SJung-uk KimL<CTLOG_STORE_new(3)>,
42*e71b7053SJung-uk KimL<SCT_validate(3)>
43*e71b7053SJung-uk Kim
44*e71b7053SJung-uk Kim=head1 HISTORY
45*e71b7053SJung-uk Kim
46*e71b7053SJung-uk KimThese functions were added in OpenSSL 1.1.0.
47*e71b7053SJung-uk Kim
48*e71b7053SJung-uk Kim=head1 COPYRIGHT
49*e71b7053SJung-uk Kim
50*e71b7053SJung-uk KimCopyright 2016-2018 The OpenSSL Project Authors. All Rights Reserved.
51*e71b7053SJung-uk Kim
52*e71b7053SJung-uk KimLicensed under the OpenSSL license (the "License").  You may not use
53*e71b7053SJung-uk Kimthis file except in compliance with the License.  You can obtain a copy
54*e71b7053SJung-uk Kimin the file LICENSE in the source distribution or at
55*e71b7053SJung-uk KimL<https://www.openssl.org/source/license.html>.
56*e71b7053SJung-uk Kim
57*e71b7053SJung-uk Kim=cut
58