diff options
author | tb <> | 2024-08-24 19:31:09 +0000 |
---|---|---|
committer | tb <> | 2024-08-24 19:31:09 +0000 |
commit | 7f795eb7e501c90dd7e62b95d4b8288be7a73519 (patch) | |
tree | 277acae81a1ccc1807d66d3c57335c91701811d2 /src | |
parent | 5370de00d1cbbce4a065df309335d51d0ba4af05 (diff) | |
download | openbsd-7f795eb7e501c90dd7e62b95d4b8288be7a73519.tar.gz openbsd-7f795eb7e501c90dd7e62b95d4b8288be7a73519.tar.bz2 openbsd-7f795eb7e501c90dd7e62b95d4b8288be7a73519.zip |
More precision on what exactly OCSP_id_cmp and OCSP_issuer_id_cmp compare.
The existing description was lacking and incorrect, respectively.
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/libcrypto/man/OCSP_cert_to_id.3 | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/src/lib/libcrypto/man/OCSP_cert_to_id.3 b/src/lib/libcrypto/man/OCSP_cert_to_id.3 index 73a21867b9..e014a1d262 100644 --- a/src/lib/libcrypto/man/OCSP_cert_to_id.3 +++ b/src/lib/libcrypto/man/OCSP_cert_to_id.3 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: OCSP_cert_to_id.3,v 1.12 2022/03/31 17:27:17 naddy Exp $ | 1 | .\" $OpenBSD: OCSP_cert_to_id.3,v 1.13 2024/08/24 19:31:09 tb Exp $ |
2 | .\" OpenSSL b97fdb57 Nov 11 09:33:09 2016 +0100 | 2 | .\" OpenSSL b97fdb57 Nov 11 09:33:09 2016 +0100 |
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: March 31 2022 $ | 68 | .Dd $Mdocdate: August 24 2024 $ |
69 | .Dt OCSP_CERT_TO_ID 3 | 69 | .Dt OCSP_CERT_TO_ID 3 |
70 | .Os | 70 | .Os |
71 | .Sh NAME | 71 | .Sh NAME |
@@ -162,19 +162,25 @@ issuer key hash | |||
162 | and serial number | 162 | and serial number |
163 | .Fa serialNumber . | 163 | .Fa serialNumber . |
164 | .Pp | 164 | .Pp |
165 | .Fn OCSP_id_cmp | 165 | .Fn OCSP_id_issuer_cmp |
166 | compares | 166 | compares the hash algorithms, |
167 | the hashed issuer distinguished names and | ||
168 | the hashed public keys of | ||
167 | .Vt OCSP_CERTID | 169 | .Vt OCSP_CERTID |
168 | .Fa a | 170 | .Fa a |
169 | and | 171 | and |
170 | .Fa b . | 172 | .Fa b . |
171 | .Pp | 173 | .Pp |
172 | .Fn OCSP_id_issuer_cmp | 174 | .Fn OCSP_id_cmp |
173 | compares only the issuer name of | 175 | compares |
174 | .Vt OCSP_CERTID | 176 | .Vt OCSP_CERTID |
175 | .Fa a | 177 | .Fa a |
176 | and | 178 | and |
177 | .Fa b . | 179 | .Fa b |
180 | using | ||
181 | .Fn OCSP_id_issuer_cmp | ||
182 | followed by a comparison of the certificate serial numbers with | ||
183 | .Xr ASN1_INTEGER_cmp 3 . | ||
178 | .Pp | 184 | .Pp |
179 | .Fn OCSP_id_get0_info | 185 | .Fn OCSP_id_get0_info |
180 | returns the issuer name hash, hash OID, issuer key hash and serial | 186 | returns the issuer name hash, hash OID, issuer key hash and serial |
@@ -214,6 +220,7 @@ return 0 for a match or non-zero otherwise. | |||
214 | .Fn OCSP_id_get0_info | 220 | .Fn OCSP_id_get0_info |
215 | returns 1 for success or 0 for failure. | 221 | returns 1 for success or 0 for failure. |
216 | .Sh SEE ALSO | 222 | .Sh SEE ALSO |
223 | .Xr ASN1_INTEGER_cmp 3 , | ||
217 | .Xr EVP_DigestInit 3 , | 224 | .Xr EVP_DigestInit 3 , |
218 | .Xr OCSP_request_add1_nonce 3 , | 225 | .Xr OCSP_request_add1_nonce 3 , |
219 | .Xr OCSP_REQUEST_new 3 , | 226 | .Xr OCSP_REQUEST_new 3 , |