ASN1_INTEGER_NEW(3ossl)

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

okay bestie, welcome to the ASN1_INTEGER_NEW(3ossl) manual page from OpenSSL β€” yes, we're doing allocation functions today and it's gonna be cute. πŸŽ€

🌸 NAME 🌸

ASN1_INTEGER_new, ASN1_INTEGER_free β€” the ASN1_INTEGER allocation functions. That's the whole vibe.

✨ SYNOPSIS ✨

#include <openssl/asn1.h>

ASN1_INTEGER *ASN1_INTEGER_new(void);
void ASN1_INTEGER_free(ASN1_INTEGER *a);

πŸ’– DESCRIPTION πŸ’–

ASN1_INTEGER_new() returns an allocated ASN1_INTEGER structure. Yep, it hands you a whole structure, no cap. 🫢

ASN1_INTEGER_free() frees up a single ASN1_INTEGER object. Just one, okay? And if the argument is NULL, nothing is done β€” literally nothing, it's giving polite silence. πŸ’…

The ASN1_INTEGER structure is the one representing the ASN.1 INTEGER type. Iconic, honestly. ⭐

πŸ¦‹ RETURN VALUES πŸ¦‹

ASN1_INTEGER_new() returns a valid ASN1_INTEGER structure or NULL if an error occurred. So if you get NULL, that's your error moment β€” check it, bestie. 😭

ASN1_INTEGER_free() does not return a value. No return, no drama. πŸŽ€

πŸ”₯ SEE ALSO πŸ”₯

  • ERR_get_error(3) β€” go look at this if you need the error details, iykyk. πŸ‘‘

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>. 🌈


okay that's the whole page, bestie β€” it's from OpenSSL 3.5.6, dated 2026-04-07, and yes, it's the ASN1_INTEGER_NEW(3ossl) manual page. slay. πŸ’œ

πŸ“¦ where this page comes from