X509_cmp.pod: Point out that the X509_NAME_cmp() arguments may be NULL
authorDr. David von Oheimb <David.von.Oheimb@siemens.com>
Mon, 12 Jul 2021 13:32:49 +0000 (15:32 +0200)
committerDr. David von Oheimb <dev@ddvo.net>
Tue, 4 Jan 2022 16:04:44 +0000 (17:04 +0100)
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/16050)

doc/man3/X509_cmp.pod

index 272a9d259e70e967bdce632203b86d9e9237f9f5..6294314abb4ac6794332a4a79a82f5cddd1c80ce 100644 (file)
@@ -29,7 +29,8 @@ I<a> and I<b>. The comparison is based on the B<memcmp> result of the hash
 values of two B<X509> objects and the canonical (DER) encoding values.
 
 The X509_NAME_cmp() function compares two B<X509_NAME> objects indicated by
-parameters I<a> and I<b>. The comparison is based on the B<memcmp> result of the
+parameters I<a> and I<b>, any of which may be NULL.
+The comparison is based on the B<memcmp> result of the
 canonical (DER) encoding values of the two objects using L<i2d_X509_NAME(3)>.
 This procedure adheres to the matching rules for Distinguished Names (DN)
 given in RFC 4517 section 4.2.15 and RFC 5280 section 7.1.