ASN1_NULL_NEW(3)
π ASN1_NULL_NEW(3) β Library Functions Manual π
πΈ NAME πΈ
ASN1_NULL_new, ASN1_NULL_free β the ASN.1 NULL value, bestie π
β¨ SYNOPSIS β¨
#include <openssl/asn1.h>
ASN1_NULL *
ASN1_NULL_new(void);
void
ASN1_NULL_free(ASN1_NULL *val_in);
π DESCRIPTION π
Okay so ASN1_NULL_new() is lowkey iconic: it returns a specific invalid pointer that represents the ASN.1 NULL value. That is the only possible value of the ASN.1 NULL type, periodt. That pointer is different from a NULL pointer. Dereferencing it almost certainly results in a segmentation fault β so, like, donβt do that, bestie. π This function does not allocate memory and cannot fail. Slay.
β οΈ Real talk: that invalid pointer is not a normal pointer. Dereferencing it almost certainly results in a segmentation fault.
ASN1_NULL_free() has no effect whatsoever. Like, none. In particular, it ignores the val_in argument and does not free any memory. In normal use, application programs only pass the invalid pointer obtained from ASN1_NULL_new() to this function. But even if a valid pointer is passed, that pointer does not become invalid. No cap. π¦
The ASN.1 NULL type is also represented by the V_ASN1_NULL type identifier constant.
π SEE ALSO π
β STANDARDS β
ITU-T Recommendation X.208, also known as ISO/IEC 8824-1: Specification of Abstract Syntax Notation One (ASN.1), section 19: Notation for the null type
π HISTORY π
ASN1_NULL_new() and ASN1_NULL_free() first appeared in OpenSSL 0.9.5 and have been available since OpenBSD 2.7.
Okay bye bestie π this page is from Debian, dated December 9, 2021, and the manual page is ASN1_NULL_NEW(3) β mwah π
β¨
π¦ where this page comes from
- opensuse-leap 16.0: libressl-devel-doc 4.1.0-bp160.1.1 Β· OpenSSL
- Copyright (c) 2021 Ingo Schwarze <schwarze@openbsd.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms