diff options
author | Dr. David von Oheimb <David.von.Oheimb@siemens.com> | 2020-09-02 13:12:22 +0200 |
---|---|---|
committer | Dr. David von Oheimb <David.von.Oheimb@siemens.com> | 2020-09-10 12:07:33 +0200 |
commit | bc64c5a69b95d45c314ec6ac40a865228cf230cd (patch) | |
tree | adf01f017beb043cfbacde8c350be82910dcd22b /doc | |
parent | X509_NAME_oneline(): Fix output of multi-valued RDNs, escaping '/' and '+' in... (diff) | |
download | openssl-bc64c5a69b95d45c314ec6ac40a865228cf230cd.tar.xz openssl-bc64c5a69b95d45c314ec6ac40a865228cf230cd.zip |
X509_NAME_cmp: restrict normal return values to {-1,0,1} to avoid confusion with -2 for error
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/12769)
Diffstat (limited to 'doc')
-rw-r--r-- | doc/man3/X509_cmp.pod | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/doc/man3/X509_cmp.pod b/doc/man3/X509_cmp.pod index 3cb16b2a81..a4e18dfb58 100644 --- a/doc/man3/X509_cmp.pod +++ b/doc/man3/X509_cmp.pod @@ -47,9 +47,8 @@ of just the issuer name. =head1 RETURN VALUES -Like common memory comparison functions, the B<X509> comparison functions return -an integer less than, equal to, or greater than zero if object B<a> is found to -be less than, to match, or be greater than object B<b>, respectively. +The B<X509> comparison functions return B<-1>, B<0>, or B<1> if object B<a> is +found to be less than, to match, or be greater than object B<b>, respectively. X509_NAME_cmp(), X509_issuer_and_serial_cmp(), X509_issuer_name_cmp(), X509_subject_name_cmp() and X509_CRL_cmp() may return B<-2> to indicate an error. |