Updates to X509_NAME_add_entry_by_txt.pod submitted by user Bernardh via the wiki
authorMatt Caswell <matt@openssl.org>
Sat, 6 Sep 2014 22:48:54 +0000 (23:48 +0100)
committerMatt Caswell <matt@openssl.org>
Thu, 27 Nov 2014 13:57:23 +0000 (13:57 +0000)
Minor changes made by Matt Caswell.

Reviewed-by: Dr. Stephen Henson <steve@openssl.org>
(cherry picked from commit f281b8df704ce0123fa2193f2890a25da1756528)

doc/crypto/X509_NAME_add_entry_by_txt.pod

index 1afd008cb372bb408e2466be683210d4aae538e6..043766cc461beead6f5e9d0d43ca56eb2c24b6f0 100644 (file)
@@ -81,14 +81,14 @@ Create an B<X509_NAME> structure:
  nm = X509_NAME_new();
  if (nm == NULL)
        /* Some error */
- if (!X509_NAME_add_entry_by_txt(nm, MBSTRING_ASC,
-                       "C", "UK", -1, -1, 0))
+ if (!X509_NAME_add_entry_by_txt(nm, "C", MBSTRING_ASC, 
+                       "UK", -1, -1, 0))
        /* Error */
- if (!X509_NAME_add_entry_by_txt(nm, MBSTRING_ASC,
-                       "O", "Disorganized Organization", -1, -1, 0))
+ if (!X509_NAME_add_entry_by_txt(nm, "O", MBSTRING_ASC,
+                       "Disorganized Organization", -1, -1, 0))
        /* Error */
- if (!X509_NAME_add_entry_by_txt(nm, MBSTRING_ASC,
-                       "CN", "Joe Bloggs", -1, -1, 0))
+ if (!X509_NAME_add_entry_by_txt(nm, "CN", MBSTRING_ASC,
+                       "Joe Bloggs", -1, -1, 0))
        /* Error */
 
 =head1 RETURN VALUES