1X509_NAME_ENTRY_get_object(3) OpenSSL X509_NAME_ENTRY_get_object(3)
2
3
4
6 X509_NAME_ENTRY_get_object, X509_NAME_ENTRY_get_data,
7 X509_NAME_ENTRY_set_object, X509_NAME_ENTRY_set_data,
8 X509_NAME_ENTRY_create_by_txt, X509_NAME_ENTRY_create_by_NID,
9 X509_NAME_ENTRY_create_by_OBJ - X509_NAME_ENTRY utility functions
10
12 #include <openssl/x509.h>
13
14 ASN1_OBJECT * X509_NAME_ENTRY_get_object(X509_NAME_ENTRY *ne);
15 ASN1_STRING * X509_NAME_ENTRY_get_data(X509_NAME_ENTRY *ne);
16
17 int X509_NAME_ENTRY_set_object(X509_NAME_ENTRY *ne, ASN1_OBJECT *obj);
18 int X509_NAME_ENTRY_set_data(X509_NAME_ENTRY *ne, int type, const unsigned char *bytes, int len);
19
20 X509_NAME_ENTRY *X509_NAME_ENTRY_create_by_txt(X509_NAME_ENTRY **ne, const char *field, int type, const unsigned char *bytes, int len);
21 X509_NAME_ENTRY *X509_NAME_ENTRY_create_by_NID(X509_NAME_ENTRY **ne, int nid, int type,unsigned char *bytes, int len);
22 X509_NAME_ENTRY *X509_NAME_ENTRY_create_by_OBJ(X509_NAME_ENTRY **ne, ASN1_OBJECT *obj, int type, const unsigned char *bytes, int len);
23
25 X509_NAME_ENTRY_get_object() retrieves the field name of ne in and
26 ASN1_OBJECT structure.
27
28 X509_NAME_ENTRY_get_data() retrieves the field value of ne in and
29 ASN1_STRING structure.
30
31 X509_NAME_ENTRY_set_object() sets the field name of ne to obj.
32
33 X509_NAME_ENTRY_set_data() sets the field value of ne to string type
34 type and value determined by bytes and len.
35
36 X509_NAME_ENTRY_create_by_txt(), X509_NAME_ENTRY_create_by_NID() and
37 X509_NAME_ENTRY_create_by_OBJ() create and return an X509_NAME_ENTRY
38 structure.
39
41 X509_NAME_ENTRY_get_object() and X509_NAME_ENTRY_get_data() can be used
42 to examine an X509_NAME_ENTRY function as returned by
43 X509_NAME_get_entry() for example.
44
45 X509_NAME_ENTRY_create_by_txt(), X509_NAME_ENTRY_create_by_NID(), and
46 X509_NAME_ENTRY_create_by_OBJ() create and return an
47
48 X509_NAME_ENTRY_create_by_txt(), X509_NAME_ENTRY_create_by_OBJ(),
49 X509_NAME_ENTRY_create_by_NID() and X509_NAME_ENTRY_set_data() are
50 seldom used in practice because X509_NAME_ENTRY structures are almost
51 always part of X509_NAME structures and the corresponding X509_NAME
52 functions are typically used to create and add new entries in a single
53 operation.
54
55 The arguments of these functions support similar options to the
56 similarly named ones of the corresponding X509_NAME functions such as
57 X509_NAME_add_entry_by_txt(). So for example type can be set to
58 MBSTRING_ASC but in the case of X509_set_data() the field name must be
59 set first so the relevant field information can be looked up
60 internally.
61
64 ERR_get_error(3), d2i_X509_NAME(3), OBJ_nid2obj(3)
65
67 TBA
68
69
70
711.0.2o 2020-08-01 X509_NAME_ENTRY_get_object(3)