ASN1_ITEM_LOOKUP(3ossl)
π ASN1_ITEM_LOOKUP(3ossl) π β bestie, letβs look up some ASN.1 structures β¨
okay so this is the OpenSSL manual page for ASN1_ITEM_lookup and ASN1_ITEM_get β the little lookup girlies for ASN.1 structures. iykyk π§
πΈ NAME πΈ
ASN1_ITEM_lookup, ASN1_ITEM_get β lookup ASN.1 structures
π SYNOPSIS π
#include <openssl/asn1.h>
const ASN1_ITEM *ASN1_ITEM_lookup(const char *name);
const ASN1_ITEM *ASN1_ITEM_get(size_t i);
β¨ DESCRIPTION β¨
ASN1_ITEM_lookup()β returns theASN1_ITEMnamedname. You give it a name, it gives you the matching struct. no cap πASN1_ITEM_get()β returns theASN1_ITEMwith indexi. Thatβs the whole vibe. But bestie, listen: 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. Thatβs the glow-up: valid struct = slay, NULL = check your error situation. π
π¦ SEE ALSO π¦
π 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.
mwah π this page is from OpenSSL 3.5.6, dated 2026-04-07 β go off, bestie πβ
π¦ 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