1ASN1_STRING_TABLE_ADD(3)            OpenSSL           ASN1_STRING_TABLE_ADD(3)
2
3
4

NAME

6       ASN1_STRING_TABLE, ASN1_STRING_TABLE_add, ASN1_STRING_TABLE_get,
7       ASN1_STRING_TABLE_cleanup - ASN1_STRING_TABLE manipulation functions
8

SYNOPSIS

10        #include <openssl/asn1.h>
11
12        typedef struct asn1_string_table_st ASN1_STRING_TABLE;
13
14        int ASN1_STRING_TABLE_add(int nid, long minsize, long maxsize,
15                                  unsigned long mask, unsigned long flags);
16        ASN1_STRING_TABLE * ASN1_STRING_TABLE_get(int nid);
17        void ASN1_STRING_TABLE_cleanup(void);
18

DESCRIPTION

20   Types
21       ASN1_STRING_TABLE is a table which holds string information (basically
22       minimum size, maximum size, type and etc) for a NID object.
23
24   Functions
25       ASN1_STRING_TABLE_add() adds a new ASN1_STRING_TABLE item into the
26       local ASN1 string table based on the nid along with other parameters.
27
28       If the item is already in the table, fields of ASN1_STRING_TABLE are
29       updated (depending on the values of those parameters, e.g., minsize and
30       maxsize >= 0, mask and flags != 0). If the nid is standard, a copy of
31       the standard ASN1_STRING_TABLE is created and updated with other
32       parameters.
33
34       ASN1_STRING_TABLE_get() searches for an ASN1_STRING_TABLE item based on
35       nid. It will search the local table first, then the standard one.
36
37       ASN1_STRING_TABLE_cleanup() frees all ASN1_STRING_TABLE items added by
38       ASN1_STRING_TABLE_add().
39

RETURN VALUES

41       ASN1_STRING_TABLE_add() returns 1 on success, 0 if an error occurred.
42
43       ASN1_STRING_TABLE_get() returns a valid ASN1_STRING_TABLE structure or
44       NULL if nothing is found.
45
46       ASN1_STRING_TABLE_cleanup() does not return a value.
47

SEE ALSO

49       ERR_get_error(3)
50
52       Copyright 2017 The OpenSSL Project Authors. All Rights Reserved.
53
54       Licensed under the OpenSSL license (the "License").  You may not use
55       this file except in compliance with the License.  You can obtain a copy
56       in the file LICENSE in the source distribution or at
57       <https://www.openssl.org/source/license.html>.
58
59
60
611.1.1                             2018-09-11          ASN1_STRING_TABLE_ADD(3)
Impressum