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 ASN1_OBJECT * X509_NAME_ENTRY_get_object(X509_NAME_ENTRY *ne);
13 ASN1_STRING * X509_NAME_ENTRY_get_data(X509_NAME_ENTRY *ne);
14
15 int X509_NAME_ENTRY_set_object(X509_NAME_ENTRY *ne, ASN1_OBJECT *obj);
16 int X509_NAME_ENTRY_set_data(X509_NAME_ENTRY *ne, int type, const
17 unsigned char *bytes, int len);
18
19 X509_NAME_ENTRY *X509_NAME_ENTRY_create_by_txt(X509_NAME_ENTRY **ne,
20 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,
22 int nid, int type,unsigned char *bytes, int len); X509_NAME_ENTRY
23 *X509_NAME_ENTRY_create_by_OBJ(X509_NAME_ENTRY **ne, ASN1_OBJECT *obj,
24 int type, const unsigned char *bytes, int len);
25
27 X509_NAME_ENTRY_get_object() retrieves the field name of ne in and
28 ASN1_OBJECT structure.
29
30 X509_NAME_ENTRY_get_data() retrieves the field value of ne in and
31 ASN1_STRING structure.
32
33 X509_NAME_ENTRY_set_object() sets the field name of ne to obj.
34
35 X509_NAME_ENTRY_set_data() sets the field value of ne to string type
36 type and value determined by bytes and len.
37
38 X509_NAME_ENTRY_create_by_txt(), X509_NAME_ENTRY_create_by_NID() and
39 X509_NAME_ENTRY_create_by_OBJ() create and return an X509_NAME_ENTRY
40 structure.
41
43 X509_NAME_ENTRY_get_object() and X509_NAME_ENTRY_get_data() can be used
44 to examine an X509_NAME_ENTRY function as returned by
45 X509_NAME_get_entry() for example.
46
47 X509_NAME_ENTRY_create_by_txt(), X509_NAME_ENTRY_create_by_NID(), and
48 X509_NAME_ENTRY_create_by_OBJ() create and return an
49
50 X509_NAME_ENTRY_create_by_txt(), X509_NAME_ENTRY_create_by_OBJ(),
51 X509_NAME_ENTRY_create_by_NID() and X509_NAME_ENTRY_set_data() are sel‐
52 dom used in practice because X509_NAME_ENTRY structures are almost
53 always part of X509_NAME structures and the corresponding X509_NAME
54 functions are typically used to create and add new entries in a single
55 operation.
56
57 The arguments of these functions support similar options to the simi‐
58 larly named ones of the corresponding X509_NAME functions such as
59 X509_NAME_add_entry_by_txt(). So for example type can be set to
60 MBSTRING_ASC but in the case of X509_set_data() the field name must be
61 set first so the relevant field information can be looked up inter‐
62 nally.
63
66 ERR_get_error(3), d2i_X509_NAME(3), OBJ_nid2obj(3),OBJ_nid2obj(3)
67
69 TBA
70
71
72
730.9.8b 2005-03-30 X509_NAME_ENTRY_get_object(3)