ASN1_ITEM_LOOKUP(3ossl)

πŸ“¦
version 15.1 Β· 3 versions
, in freebsd 15.1

πŸ’– 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 the ASN1_ITEM named name. You give it a name, it gives you the matching struct. no cap πŸ’–
  • ASN1_ITEM_get() β€” returns the ASN1_ITEM with index i. That’s the whole vibe. But bestie, listen: this function returns NULL if the index i is 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 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