diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/libcrypto/man/X509_cmp.3 | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/lib/libcrypto/man/X509_cmp.3 b/src/lib/libcrypto/man/X509_cmp.3 index f90bc0e6d4..b1cdec1773 100644 --- a/src/lib/libcrypto/man/X509_cmp.3 +++ b/src/lib/libcrypto/man/X509_cmp.3 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: X509_cmp.3,v 1.3 2021/07/02 10:50:39 schwarze Exp $ | 1 | .\" $OpenBSD: X509_cmp.3,v 1.4 2024/06/07 14:00:09 job Exp $ |
2 | .\" full merge up to: OpenSSL ea5d4b89 Jun 6 11:42:02 2019 +0800 | 2 | .\" full merge up to: OpenSSL ea5d4b89 Jun 6 11:42:02 2019 +0800 |
3 | .\" | 3 | .\" |
4 | .\" This file is a derived work. | 4 | .\" This file is a derived work. |
@@ -65,7 +65,7 @@ | |||
65 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | 65 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED |
66 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. | 66 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. |
67 | .\" | 67 | .\" |
68 | .Dd $Mdocdate: July 2 2021 $ | 68 | .Dd $Mdocdate: June 7 2024 $ |
69 | .Dt X509_CMP 3 | 69 | .Dt X509_CMP 3 |
70 | .Os | 70 | .Os |
71 | .Sh NAME | 71 | .Sh NAME |
@@ -123,8 +123,10 @@ | |||
123 | .Fn X509_cmp | 123 | .Fn X509_cmp |
124 | compares two X.509 certificates using | 124 | compares two X.509 certificates using |
125 | .Xr memcmp 3 | 125 | .Xr memcmp 3 |
126 | on the SHA1 hashes of their canonical (DER) representations as generated with | 126 | on the hashes of their canonical (DER) representations as generated with |
127 | .Xr X509_digest 3 . | 127 | .Xr X509_digest 3 . |
128 | The digest function is implementation-specific: LibreSSL uses SHA-512, other | ||
129 | implementations use SHA-1. | ||
128 | .Pp | 130 | .Pp |
129 | .Fn X509_NAME_cmp | 131 | .Fn X509_NAME_cmp |
130 | compares two X.501 | 132 | compares two X.501 |
@@ -172,8 +174,10 @@ structures using | |||
172 | .Fn X509_CRL_match | 174 | .Fn X509_CRL_match |
173 | compares two certificate revocation lists using | 175 | compares two certificate revocation lists using |
174 | .Xr memcmp 3 | 176 | .Xr memcmp 3 |
175 | on the SHA1 hashes of their canonical (DER) representations as generated with | 177 | on the hashes of their canonical (DER) representations as generated with |
176 | .Xr X509_CRL_digest 3 . | 178 | .Xr X509_CRL_digest 3 . |
179 | The digest function is implementation-specific: LibreSSL uses SHA-512, other | ||
180 | implementations use SHA-1. | ||
177 | .Sh RETURN VALUES | 181 | .Sh RETURN VALUES |
178 | All these functions return 0 to indicate a match or a non-zero value | 182 | All these functions return 0 to indicate a match or a non-zero value |
179 | to indicate a mismatch. | 183 | to indicate a mismatch. |