O2I_SCT_LIST(3SSL)

πŸ’– O2I_SCT_LIST β€” the OpenSSL girlies' guide to SCT wire format πŸ’–

okay bestie, welcome to O2I_SCT_LIST(3SSL), which is the fancy way of saying "this page lives in section 3SSL of the OpenSSL manual" πŸŽ€ say it with me: section 3SSL, periodt.


✨ NAME ✨

o2i_SCT_LIST, i2o_SCT_LIST, o2i_SCT, i2o_SCT β€” the four functions that decode and encode Signed Certificate Timestamp lists in TLS wire format πŸ¦‹


🌸 SYNOPSIS 🌸

#include <openssl/ct.h>

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);

like. look at them. four little functions. iconic behavior fr fr πŸ‘‘


πŸ’… DESCRIPTION πŸ’…

so here's the tea πŸ“ β€” the SCT_LIST and SCT functions are very similar to the i2d and d2i family of functions, lowkey basically cousins. the one big difference? they convert to and from TLS wire format, as described in RFC 6962. no cap.

if you wanna know how the parameters get treated and what the return values mean, go read d2i_SCT_LIST(3) β€” that's where all the deets live. this page is just ✨the vibe✨.


🫢 RETURN VALUES 🫢

all of these functions have return values consistent with those stated for d2i_SCT_LIST(3) and i2d_SCT_LIST(3). that's it, that's the whole section, she's short and she ate πŸ’…

bestie don't skip this one. the return values are the part that tells you if things went well or if everything is on fire 😭

🌈 SEE ALSO 🌈

go read these too, iykyk πŸ’œ


πŸ¦‹ HISTORY πŸ¦‹

these functions were added in OpenSSL 1.1.0. vintage. a classic. she's been serving since 1.1.0 and she's still here ⭐


Copyright 2016 The OpenSSL Project Authors. All Rights Reserved.

Licensed under the Apache License 2.0 (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 <https://www.openssl.org/source/license.html>.

fr fr read the license bestie, don't just scroll past it πŸ™ˆ

and that's the whole page!! mwah πŸ’– this was OpenSSL 4.0.3, dated 2026-09-29, signing off from O2I_SCT_LIST(3SSL) β€” stay decoded, stay encoded, stay slaying πŸ§šβ€β™€οΈβœ¨

πŸ“¦ where this page comes from