SCT_PRINT(3ossl)

πŸ“¦ version 3.5.0, in opensuse-leap 16.0

πŸ’… SCT_PRINT(3ossl) β€” ok bestie, let's print some Signed Certificate Timestamps

Hiii so this is the OpenSSL manual page for SCT_PRINT, and honestly? It's giving "niche but iconic." We're talking about functions that print Signed Certificate Timestamps in a way actual humans can read. ✨


πŸŽ€ NAME

SCT_print, SCT_LIST_print, SCT_validation_status_string β€” these cuties print Signed Certificate Timestamps in a human-readable way. That's the whole vibe. 🫢


✨ SYNOPSIS

Like, here's the include and the signatures, exactly as they are, no cap:

#include <openssl/ct.h>

void SCT_print(const SCT *sct, BIO *out, int indent, const CTLOG_STORE *logs);
void SCT_LIST_print(const STACK_OF(SCT) *sct_list, BIO *out, int indent,
                    const char *separator, const CTLOG_STORE *logs);
const char *SCT_validation_status_string(const SCT *sct);

🌸 DESCRIPTION

Okay so first up: SCT_print() prints a single Signed Certificate Timestamp (SCT) to a BIO, in a human-readable format. One SCT, one glow-up, one print job. πŸ’–

SCT_LIST_print() does the same thing but for an entire list of SCTs β€” group-chat energy, everyone gets printed. And you can specify a separator to delimit each SCT in the output, so like, they don't all blur together. πŸ¦‹

Both of them let you indent the output by a specified number of spaces. Cute formatting matters, bestie. And if you hand over a CTLOG_STORE, it'll be used to print the description of the CT log that issued each SCT β€” but only if that log is actually in the CTLOG_STORE, iykyk. Alternatively, you can pass NULL as the CTLOG_STORE parameter to disable this feature entirely. Your call. πŸ’…

Then there's SCT_validation_status_string(), which returns the validation status of an SCT as a human-readable string. The way that works? You gotta call SCT_validate() or SCT_LIST_validate() beforehand in order to set the validation status of an SCT first. No setting, no status β€” periodt. ⭐


πŸ‘‘ RETURN VALUES

SCT_validation_status_string() returns a NUL-terminated string representing the validation status of an SCT object. That's it, that's the return value. 🌈


πŸ”₯ SEE ALSO

Go read these too, fr fr:


πŸ’œ HISTORY

These functions were added in OpenSSL 1.1.0. So they're not new new, but they're still serving. πŸŽ€


Copyright 2016-2018 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>.


And that's the page, bestie!! 🧚 Version 3.5.0, dated 2026-09-25, brought to you by the OpenSSL girlies β€” slay, mwah, bye! πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from