ASN1_INTEGER_NEW(3SSL)
π ASN1_INTEGER_NEW π
okay bestie, welcome to the OpenSSL corner of the manual-verse, this is ASN1_INTEGER_NEW(3SSL) and it's literally just the alloc-and-free duo for ASN1_INTEGER objects π
β¨ NAME β¨
ASN1_INTEGER_new, ASN1_INTEGER_free β the ASN1_INTEGER allocation functions, aka the "make one" and "yeet one" girlies π«Ά
πΈ SYNOPSIS πΈ
#include <openssl/asn1.h>
ASN1_INTEGER *ASN1_INTEGER_new(void);
void ASN1_INTEGER_free(ASN1_INTEGER *a);
π¦ DESCRIPTION π¦
So like. ASN1_INTEGER_new() gives you back an allocated ASN1_INTEGER structure. That's it, that's the whole job. She's brand new, she's fresh out the box, main character energy π
ASN1_INTEGER_free() frees up a single ASN1_INTEGER object. Just the one, babe. And here's the cute part β if the argument is NULL, nothing is done. No crash, no drama, no vibes ruined. She simply shrugs and moves on π
And for the lore: an ASN1_INTEGER structure is the thing representing the ASN.1 INTEGER type. iykyk β¨
π RETURN VALUES π
ASN1_INTEGER_new()β returns a validASN1_INTEGERstructure, orNULLif an error occurred. So fr fr, always vibe check that pointer before you use it, bestie πASN1_INTEGER_free()β does not return a value. Nothing. Void. Silencio. She gives you nothing back and that's correct π
π SEE ALSO π
ERR_get_error(3)β for when you need to know why things went sideways, go ask her
π COPYRIGHT π
Copyright 2020-2024 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>.
real talk though: every allocation needs a matching free. not me letting a memory leak run around unsupervised, that's giving chaos π©
and that's the whole page, bestie, periodt π this was OpenSSL 4.0.3, dated 2026-09-29, for ASN1_INTEGER_NEW(3SSL) β mwah, slay, go forth and allocate responsibly ππ¦β¨
π¦ where this page comes from
- ubuntu stonking: libssl-doc 4.0.3-1ubuntu1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms