xref: /freebsd/crypto/openssl/doc/man3/ASN1_ITEM_lookup.pod (revision 405c3050f102b8c74782f0366c8ead927bd07b68)
1=pod
2
3=head1 NAME
4
5ASN1_ITEM_lookup, ASN1_ITEM_get - lookup ASN.1 structures
6
7=head1 SYNOPSIS
8
9 #include <openssl/asn1.h>
10
11 const ASN1_ITEM *ASN1_ITEM_lookup(const char *name);
12 const ASN1_ITEM *ASN1_ITEM_get(size_t i);
13
14=head1 DESCRIPTION
15
16ASN1_ITEM_lookup() returns the B<ASN1_ITEM name>.
17
18ASN1_ITEM_get() returns the B<ASN1_ITEM> with index B<i>. This function
19returns B<NULL> if the index B<i> is out of range.
20
21=head1 RETURN VALUES
22
23ASN1_ITEM_lookup() and ASN1_ITEM_get() return a valid B<ASN1_ITEM> structure
24or B<NULL> if an error occurred.
25
26=head1 SEE ALSO
27
28L<ERR_get_error(3)>
29
30=head1 COPYRIGHT
31
32Copyright 2016 The OpenSSL Project Authors. All Rights Reserved.
33
34Licensed under the OpenSSL license (the "License").  You may not use
35this file except in compliance with the License.  You can obtain a copy
36in the file LICENSE in the source distribution or at
37L<https://www.openssl.org/source/license.html>.
38
39=cut
40