SSL_GET0_PEER_SCTS(3SSL)
π SSL_get0_peer_scts β get SCTs received π
okay bestie, welcome to SSL_GET0_PEER_SCTS(3SSL), an OpenSSL manual page, section 3SSL, and honestly? this one is short and sweet and we're gonna devour it. no cap. π
β¨ NAME β¨
SSL_get0_peer_scts β get SCTs received π¦
πΈ SYNOPSIS πΈ
#include <openssl/ssl.h>
const STACK_OF(SCT) *SSL_get0_peer_scts(SSL *s);
like, that's it. one (1) function. she's iconic for that. π
π DESCRIPTION π
so SSL_get0_peer_scts() hands you back the signed certificate timestamps (SCTs) that have been received. that's the tea. β
here's the little detail u need to know tho: if this is the first time anyone has called this function for a given SSL instance, she's gonna go do a whole investigation β she examines the TLS extensions, the OCSP response, and the peer's certificate, hunting for SCTs. πβ¨
and after that? future calls just return the same SCTs. she remembers. main character energy, honestly β does the work once and never again. π
π RESTRICTIONS π
okay so this is the part where we have to be real with u. π
if no Certificate Transparency validation callback has been set β that's via SSL_CTX_set_ct_validation_callback or SSL_set_ct_validation_callback β then this function is not guaranteed to return all of the SCTs that the peer is capable of sending.
β οΈ bestie read that again: not guaranteed. not "might be slightly off", not "close enough". set ur CT validation callback, i'm begging. π
π RETURN VALUES π
SSL_get0_peer_scts() returns a list of SCTs found, or NULL if an error occurs. so like, either u get the goods or u get NULL, and NULL is giving "something went wrong" energy. check it fr fr. π₯
π«Ά SEE ALSO π«Ά
(go read those too, iykwyk π)
β COPYRIGHT β
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>.
like yes, legal said what it said, and we respect it. π
and that's the whole page, bestie!! this was version 4.0.3 from 2026-09-29, and ur girl is signing off β mwah, slay, go set that CT validation callback. πβ¨π
π¦ where this page comes from
- ubuntu stonking: libssl-doc 4.0.3-1ubuntu1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms