ASN1_ITEM_NEW(3ossl)
okay bestie, welcome to ASN1_ITEM_NEW(3ossl) β the OpenSSL manual page for making new ASN.1 values. weβre gonna keep it cute and keep every detail, mkay? π
πΈ NAME πΈ
ASN1_item_new_ex, ASN1_item_new β create new ASN.1 values β¨
β¨ SYNOPSIS β¨
#include <openssl/asn1.h>
ASN1_VALUE *ASN1_item_new_ex(const ASN1_ITEM *it, OSSL_LIB_CTX *libctx,
const char *propq);
ASN1_VALUE *ASN1_item_new(const ASN1_ITEM *it);
π DESCRIPTION π
okay so ASN1_item_new_ex() creates a brand-new ASN1_VALUE structure based on the ASN1_ITEM template you pass in through the it parameter. If any algorithm fetches are required during the process, theyβre gonna use the OSSL_LIB_CTX provided in the libctx parameter and the property query string in propq. for the full tea on algorithm fetching, see "ALGORITHM FETCHING" in crypto(7) β yep, thatβs the section to check, iykyk π«Ά
ASN1_item_new() is literally the same as ASN1_item_new_ex() except that the default OSSL_LIB_CTX is used (i.e. NULL) and with a NULL property query string. periodt π
π RETURN VALUES π
ASN1_item_new_ex() and ASN1_item_new() return a pointer to the newly created ASN1_VALUE, or NULL on error. thatβs it, no cap β¨
π¦ HISTORY π¦
The function ASN1_item_new_ex() was added in OpenSSL 3.0. iconic behavior, honestly π
π COPYRIGHT π
Copyright 2021 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 bye bestie β this page is from source/version 3.5.0 and dated 2026-09-25. mwah πβ¨
π¦ 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