ASN1_ITEM_LOOKUP(3ossl)
β¨ NAME β¨
okay bestie, welcome to the ASN1_ITEM_LOOKUP(3ossl) page β it's the OpenSSL manual page all about looking up ASN.1 structures. iconic behavior, honestly π
It covers ASN1_ITEM_lookup and ASN1_ITEM_get, aka your little lookup girlies for ASN.1 stuff.
πΈ SYNOPSIS πΈ
#include <openssl/asn1.h>
const ASN1_ITEM *ASN1_ITEM_lookup(const char *name);
const ASN1_ITEM *ASN1_ITEM_get(size_t i);
like, literally copy that include and those signatures exactly, no cap π«Ά
π¦ DESCRIPTION π¦
ASN1_ITEM_lookup()β returns theASN1_ITEMnamedname. that's it, that's the vibe β¨ASN1_ITEM_get()β returns theASN1_ITEMwith indexi. and plot twist: this function returnsNULLif the indexiis out of range. π
π RETURN VALUES π
Both ASN1_ITEM_lookup() and ASN1_ITEM_get() return a valid ASN1_ITEM structure β or NULL if an error occurred. periodt. π
bestie, NULL is the βsomething went wrong / no valid item for youβ signal here, so don't ignore it. π
π SEE ALSO π
ERR_get_error(3)β go read that one too, iykyk π
π 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>.
π okay that's the whole page, bestie β this was OpenSSL 3.5.0, dated 2026-09-25, and yes, it's the ASN1_ITEM_LOOKUP(3ossl) manual page. slay, go look up your ASN.1 items responsibly. πβ¨
π¦ where this page comes from
- opensuse-leap 16.0: openssl-3-doc 3.5.0-160000.11.1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms