CTLOG_STORE_GET0_LOG_BY_ID(3SSL)

πŸ’– CTLOG_STORE_GET0_LOG_BY_ID πŸ’–

okay so bestie, welcome to the 3SSL manual page for CTLOG_STORE_get0_log_by_id β€” yes the name is a whole mouthful, we do not make the rules, but honestly? once you get it, you'll be obsessed. 🫢


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

it's giving "three args, one pointer back, no drama." πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

so a Signed Certificate Timestamp (SCT) is out here identifying the Certificate Transparency (CT) log that issued it by using that log's LogID β€” see RFC 6962, Section 3.2, if you wanna read the source material (respect, honestly).

which means... it's genuinely useful to be able to look up more info about a log (like, say, its public key πŸ‘€) using that LogID. main character lookup energy.

CTLOG_STORE_get0_log_by_id() is literally how you do that. it will find a CTLOG inside a CTLOG_STORE that has the LogID you asked for. searching, matching, slaying. πŸ”₯


πŸŽ€ RETURN VALUES πŸŽ€

CTLOG_STORE_get0_log_by_id returns a CTLOG with the given LogID if it exists in the given CTLOG_STORE β€” otherwise it returns NULL. 😭

so like, if you get NULL back it's not a you problem, it's a "that log is not in this store" problem. vibe check accordingly.


πŸ‘€ SEE ALSO πŸ‘€

go read those too, bestie, they're part of the ecosystem. 🌈


πŸ“– HISTORY πŸ“–

the CTLOG_STORE_get0_log_by_id() function was added in OpenSSL 1.1.0. so it's been around. veteran behavior. πŸ‘‘


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


lowkey important reminder: read the license fr fr, it's not decorative. πŸ™ˆ

and that's the whole page!! this was version 4.0.3, dated 2026-09-29, and it's the CTLOG_STORE_GET0_LOG_BY_ID(3SSL) manual β€” k bye, go look up a log πŸ’–βœ¨πŸ¦‹

πŸ“¦ where this page comes from