Fix some man page typos
authorMatt Caswell <matt@openssl.org>
Thu, 18 Jun 2020 08:09:04 +0000 (09:09 +0100)
committerDmitry Belyavskiy <beldmit@gmail.com>
Wed, 24 Jun 2020 15:55:09 +0000 (18:55 +0300)
A few miscellaneous man page typos reported by Hal Murray on
openssl-users.

Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/12185)

doc/man3/EVP_MAC.pod
doc/man3/EVP_PKEY_CTX_new.pod
doc/man3/X509V3_get_d2i.pod
doc/man3/X509_NAME_add_entry_by_txt.pod

index 14645154598a2ba50a409925f62ade822b87571d..b8fa1ce630896c1829f79af82267dd07981ea26c 100644 (file)
@@ -317,12 +317,12 @@ EVP_MAC_do_all_provided() returns nothing at all.
 
       if (cipher != NULL)
           params[params_n++] =
-              OSSL_PARAM_construct_utf8_string("cipher", cipher, 0, NULL);
+              OSSL_PARAM_construct_utf8_string("cipher", cipher, 0;
       if (digest != NULL)
           params[params_n++] =
-              OSSL_PARAM_construct_utf8_string("digest", digest, 0, NULL);
+              OSSL_PARAM_construct_utf8_string("digest", digest, 0);
       params[params_n++] =
-          OSSL_PARAM_construct_octet_string("key", key, strlen(key), NULL);
+          OSSL_PARAM_construct_octet_string("key", key, strlen(key));
       params[params_n] = OSSL_PARAM_construct_end();
 
       if (mac == NULL
index 4430967d19dab39cf5a25675c64bef9e137d238d..c3fc4c55ca62a4d46d10fd2e25b6d35f1d3f7886 100644 (file)
@@ -97,7 +97,7 @@ documentation for more information.
 =head1 RETURN VALUES
 
 EVP_PKEY_CTX_new(), EVP_PKEY_CTX_new_id(), EVP_PKEY_CTX_dup() returns either
-the newly allocated B<EVP_PKEY_CTX> structure of B<NULL> if an error occurred.
+the newly allocated B<EVP_PKEY_CTX> structure or B<NULL> if an error occurred.
 
 EVP_PKEY_CTX_free() does not return a value.
 
index fcaace82b5a1247e7ce97973469d780a55ae00b7..062b10e0b60696f4752dec6fa322a17885bc9289 100644 (file)
@@ -196,7 +196,7 @@ The following extensions are used by certificate transparency, RFC6962
 =head1 RETURN VALUES
 
 X509V3_EXT_d2i() and *X509V3_get_d2i() return a pointer to an extension
-specific structure of B<NULL> if an error occurs.
+specific structure or B<NULL> if an error occurs.
 
 X509V3_EXT_i2d() returns a pointer to an B<X509_EXTENSION> structure
 or B<NULL> if an error occurs.
index 7f5296612165cdbbe8c0003461b3fe9a8d934f4c..1988a6ae2b54760328e2aaf9a05fdcf27fdb6993 100644 (file)
@@ -81,7 +81,7 @@ X509_NAME_add_entry_by_NID() and X509_NAME_add_entry() return 1 for
 success of 0 if an error occurred.
 
 X509_NAME_delete_entry() returns either the deleted B<X509_NAME_ENTRY>
-structure of B<NULL> if an error occurred.
+structure or B<NULL> if an error occurred.
 
 =head1 EXAMPLES