[#BN_to_ASN1_INTEGER] = BN_to_ASN1_INTEGER :mrdocs: Convert a BIGNUM to an ASN.1 INTEGER (allocating or reusing `ai).` == Synopsis Declared in `<openssl/asn1.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:ASN1_INTEGER.adoc[ASN1_INTEGER]* BN_to_ASN1_INTEGER( xref:BIGNUM.adoc[BIGNUM] const* bn, xref:ASN1_INTEGER.adoc[ASN1_INTEGER]* ai); ---- == Return Value Pointer to the INTEGER result (possibly newly allocated), or NULL on error. == Parameters [cols="1,4"] |=== | Name| Description | *bn* | Source big integer (may be negative). | *ai* | Existing ASN1_INTEGER to reuse, or NULL to allocate. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#