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