OpenBSD manual page server

Manual Page Search Parameters

ASN1_STRING_TABLE_GET(3) Library Functions Manual ASN1_STRING_TABLE_GET(3)

ASN1_STRING_TABLE_getretrieve an entry from the global ASN.1 string table

#include <openssl/asn1.h>

ASN1_STRING_TABLE *
ASN1_STRING_TABLE_get(int nid);

The ASN.1 string table is a unique global object. Each entry is of the type ASN1_STRING_TABLE and contains information about one NID object. The entries are predefined according to RFC 5280 appendix A.1.

The upper bounds for the number of characters in various kinds of ASN1_STRING objects are:

object type maxsize symbolic constant
64
2
32768
32768
128
32768
64
64
128
64
128
32768

The function () retrieves the entry for nid. If the STABLE_NO_MASK flag is set, ASN1_STRING_set_by_NID(3) skips applying the global mask that can be set with ASN1_STRING_set_default_mask(3).

ASN1_STRING_TABLE_get() returns a valid ASN1_STRING_TABLE structure or NULL if nothing is found.

ASN1_OBJECT_new(3), ASN1_STRING_set_by_NID(3), OBJ_create(3), OBJ_nid2obj(3)

ASN1_STRING_TABLE_get() first appeared in OpenSSL 0.9.5 and has been available since OpenBSD 2.7.

Most aspects of the semantics considerably differ from OpenSSL.

ub_email_address, which should really be called ub_emailaddress_length, was changed in RFC 5280 from 128 to 255 to match PKCS#9 (RFC 2985).

December 21, 2023 OpenBSD-7.5