CTLOG_STORE_GET0_LOG_BY_ID(3ossl)

✨ CTLOG_STORE_GET0_LOG_BY_ID ✨

okay bestie, welcome to the 3ossl girlies' corner of the manual pages πŸ’… this one is all about digging a specific Certificate Transparency log out of a store by its ID. it's short, it's sweet, it's giving utility function that just works. let's go 🫢


🌸 NAME 🌸

CTLOG_STORE_get0_log_by_id β€” get a Certificate Transparency log out of a CTLOG_STORE πŸ’–


πŸŽ€ SYNOPSIS πŸŽ€

#include <openssl/ct.h>

const CTLOG *CTLOG_STORE_get0_log_by_id(const CTLOG_STORE *store,
                                        const uint8_t *log_id,
                                        size_t log_id_len);

look at her. three args, returns a pointer, no drama. iconic behavior fr fr ✨


πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the lore πŸ“ a Signed Certificate Timestamp (SCT for short) is literally the thing that tells you which Certificate Transparency (CT) log went ahead and issued it β€” and it does that by using the log's LogID (this is all per RFC 6962, Section 3.2, in case you wanna read the source material, and honestly? valid).

so obviously it's super useful to be able to take that LogID and look up more deets about the log β€” like, say, its public key πŸ‘€

and that's exactly the moment CTLOG_STORE_get0_log_by_id() shows up, main character energy, to save the day. what it does: it finds a CTLOG inside a CTLOG_STORE that has the given LogID. that's it. that's the whole job. and she does it well πŸ’œ


🌈 RETURN VALUES 🌈

CTLOG_STORE_get0_log_by_id returns a CTLOG with the given LogID if it exists in the given CTLOG_STORE β€” slay πŸŽ‰

otherwise? it returns NULL. 😭 no log found, no log returned, we move on.


⭐ SEE ALSO ⭐

go read those too, bestie, they're part of the same little friend group 🫢


πŸ‘‘ HISTORY πŸ‘‘

the CTLOG_STORE_get0_log_by_id() function was added in OpenSSL 1.1.0. she's been here a minute. veteran queen πŸ’…


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>.


real talk: the license said what it said, and we respect it. don't use this file except in compliance with the License, periodt βœ‹

and that's the whole page, no cap 🌸 this was CTLOG_STORE_GET0_LOG_BY_ID(3ossl) from OpenSSL 3.5.9, dated 2026-09-29 β€” thank you for coming to my TED talk, mwah πŸ’‹πŸ§šβ€β™€οΈ

πŸ“¦ where this page comes from