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