---
name: "ASN1_INTEGER_new"
section: "3ssl"
platform: "linux"
package: "openssl"
version: "3.6.5-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/ASN1_INTEGER_new"
---

# ASN1\_INTEGER\_new(3ssl)

ASN1\_INTEGER allocation functions

## NAME

ASN1\_INTEGER\_new, ASN1\_INTEGER\_free - ASN1\_INTEGER allocation functions

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

**ASN1\_INTEGER\_free()** frees up a single **ASN1\_INTEGER** object. If the argument is NULL, nothing is done.

**ASN1\_INTEGER** structure representing the ASN.1 INTEGER type

## RETURN VALUES

**ASN1\_INTEGER\_new()** return a valid **ASN1\_INTEGER** structure or NULL if an error occurred.

**ASN1\_INTEGER\_free()** does not return a value.

## SEE ALSO

**ERR\_get\_error**(3)

## 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\>.
