SCT_PRINT(3ossl)
π SCT_PRINT(3ossl) β bestie edition, brought to you by OpenSSL β¨
Okay so this is the SCT_PRINT(3ossl) page from OpenSSL, and it's all about printing signed certificate timestamps in a way that actual humans can read. No cap, it's giving "make the crypto legible" and I'm obsessed. π
πΈ NAME πΈ
SCT_print, SCT_LIST_print, SCT_validation_status_string β literally just prints Signed Certificate Timestamps in a human-readable way. That's the whole vibe. π¦
β¨ SYNOPSIS β¨
#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 π
So SCT_print() prints one single Signed Certificate Timestamp (SCT) to a BIO, in a human-readable format. Your eyes will thank you. π
SCT_LIST_print() does the same thing but for a whole entire list of SCTs β like, the whole squad at once, not just one bestie. And you can pass a separator to delimit each SCT in the output, so they don't just mush together. π«Ά
The output can be indented by however many spaces you specify. Cute, right? And if you provide a CTLOG_STORE, it gets used to print the description of the CT log that issued each SCT β but only if that log is actually in the CTLOG_STORE. Alternatively, you can pass NULL as the CTLOG_STORE parameter to disable this feature entirely. Your call, bestie. π
Now, SCT_validation_status_string() returns the validation status of an SCT as a human-readable string. But listen β you gotta call SCT_validate() or SCT_LIST_validate() beforehand in order to set the validation status of an SCT first. Like, the status doesn't just manifest out of nowhere, okay? Set it up first, then ask for the string. π₯
π 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 those too, iykyk. π
π HISTORY π
These functions were added in OpenSSL 1.1.0. So they've been around a minute. β
π§ COPYRIGHT π§
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>.
Fr fr, read the license before you go touching the file. It's not optional, bestie. π
And that's the page! π This little number is from version 3.5.6, dated 2026-04-07, and it lives at SCT_PRINT(3ossl) β mwah, slay, periodt. πβ¨
π¦ where this page comes from
- freebsd 15.1: base 15.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms