Updates to X509_NAME_add_entry_by_txt.pod submitted by user Bernardh via the wiki
Minor changes made by Matt Caswell. Reviewed-by: Dr. Stephen Henson <steve@openssl.org> (cherry picked from commit f281b8df704ce0123fa2193f2890a25da1756528)
This commit is contained in:
parent
291a3e9629
commit
2cfa5edb26
@ -81,14 +81,14 @@ Create an B<X509_NAME> structure:
|
|||||||
nm = X509_NAME_new();
|
nm = X509_NAME_new();
|
||||||
if (nm == NULL)
|
if (nm == NULL)
|
||||||
/* Some error */
|
/* Some error */
|
||||||
if (!X509_NAME_add_entry_by_txt(nm, MBSTRING_ASC,
|
if (!X509_NAME_add_entry_by_txt(nm, "C", MBSTRING_ASC,
|
||||||
"C", "UK", -1, -1, 0))
|
"UK", -1, -1, 0))
|
||||||
/* Error */
|
/* Error */
|
||||||
if (!X509_NAME_add_entry_by_txt(nm, MBSTRING_ASC,
|
if (!X509_NAME_add_entry_by_txt(nm, "O", MBSTRING_ASC,
|
||||||
"O", "Disorganized Organization", -1, -1, 0))
|
"Disorganized Organization", -1, -1, 0))
|
||||||
/* Error */
|
/* Error */
|
||||||
if (!X509_NAME_add_entry_by_txt(nm, MBSTRING_ASC,
|
if (!X509_NAME_add_entry_by_txt(nm, "CN", MBSTRING_ASC,
|
||||||
"CN", "Joe Bloggs", -1, -1, 0))
|
"Joe Bloggs", -1, -1, 0))
|
||||||
/* Error */
|
/* Error */
|
||||||
|
|
||||||
=head1 RETURN VALUES
|
=head1 RETURN VALUES
|
||||||
|
Loading…
x
Reference in New Issue
Block a user