---
name: "ASN1_ITEM_lookup"
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_ITEM_lookup"
---

# ASN1\_ITEM\_lookup(3ssl)

lookup ASN.1 structures

## NAME

ASN1\_ITEM\_lookup, ASN1\_ITEM\_get - lookup ASN.1 structures

## SYNOPSIS

```
 #include <openssl/asn1.h>
 const ASN1_ITEM *ASN1_ITEM_lookup(const char *name);
 const ASN1_ITEM *ASN1_ITEM_get(size_t i);
```

## DESCRIPTION

**ASN1\_ITEM\_lookup()** returns the **ASN1\_ITEM** named *name*.

**ASN1\_ITEM\_get()** returns the **ASN1\_ITEM** with index *i*. This function returns NULL if the index *i* is out of range.

## RETURN VALUES

**ASN1\_ITEM\_lookup()** and **ASN1\_ITEM\_get()** return a valid **ASN1\_ITEM** structure or NULL if an error occurred.

## SEE ALSO

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

## COPYRIGHT

Copyright 2016 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\>.
