=pod =head1 NAME o2i_SCT_LIST, i2o_SCT_LIST, o2i_SCT, i2o_SCT, o2i_SCT_signature, i2o_SCT_signature - decode and encode Signed Certificate Timestamp lists in TLS wire format =head1 SYNOPSIS #include STACK_OF(SCT) *o2i_SCT_LIST(STACK_OF(SCT) **a, const unsigned char **pp, size_t len); int i2o_SCT_LIST(const STACK_OF(SCT) *a, unsigned char **pp); SCT *o2i_SCT(SCT **psct, const unsigned char **in, size_t len); int i2o_SCT(const SCT *sct, unsigned char **out); int o2i_SCT_signature(SCT *sct, const unsigned char **in, size_t len); int i2o_SCT_signature(const SCT *sct, unsigned char **out); =head1 DESCRIPTION The SCT_LIST and SCT functions are very similar to the i2d and d2i family of functions, except that they convert to and from TLS wire format, as described in RFC 6962. See L for more information about how the parameters are treated and the return values. The SCT_signature functions are less similar. They still convert to and from TLS wire format, but they require that an SCT is provided that the signature is either taken from or inserted into. =head1 NOTES If an error occurs during a call to o2i_SCT_signature, the SCT may have its signature NID updated but not the signature value. =head1 RETURN VALUES All of the functions have return values consist with those stated for L, except o2i_SCT_signature. The o2i_SCT_signature function returns the number of bytes that were parsed, or a negative integer if an error occurs. =head1 SEE ALSO L, L(d2i_SCT_LIST(3)>, L(i2d_SCT_LIST(3)> =head1 HISTORY These functions were added in OpenSSL 1.1.0. =head1 COPYRIGHT Copyright 2016 The OpenSSL Project Authors. All Rights Reserved. Licensed under the OpenSSL license (the "License"). You may not use this file except in compliance with the License. You can obtain a copy in the file LICENSE in the source distribution or at L. =cut