diff options
| author | schwarze <> | 2021-10-29 14:29:24 +0000 |
|---|---|---|
| committer | schwarze <> | 2021-10-29 14:29:24 +0000 |
| commit | bb7be93a674971103621f1843eac3372b6431897 (patch) | |
| tree | e3d9371e796dd23e4f8f834a6006cbf4c81e0272 /src/lib/libc | |
| parent | 88b403ca33a326d5444686377b6ef185342d05f2 (diff) | |
| download | openbsd-bb7be93a674971103621f1843eac3372b6431897.tar.gz openbsd-bb7be93a674971103621f1843eac3372b6431897.tar.bz2 openbsd-bb7be93a674971103621f1843eac3372b6431897.zip | |
In x509/x509_purp.c rev. 1.11, tb@ fixed X509_check_purpose(3)
to fail if parsing of a certificate extension failed.
Adjust the documentation accordingly.
OK tb@
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libcrypto/man/X509_check_purpose.3 | 26 |
1 files changed, 18 insertions, 8 deletions
diff --git a/src/lib/libcrypto/man/X509_check_purpose.3 b/src/lib/libcrypto/man/X509_check_purpose.3 index fdb58d5b21..e0737251eb 100644 --- a/src/lib/libcrypto/man/X509_check_purpose.3 +++ b/src/lib/libcrypto/man/X509_check_purpose.3 | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | .\" $OpenBSD: X509_check_purpose.3,v 1.6 2021/07/27 13:27:46 schwarze Exp $ | 1 | .\" $OpenBSD: X509_check_purpose.3,v 1.7 2021/10/29 14:29:24 schwarze Exp $ |
| 2 | .\" | 2 | .\" |
| 3 | .\" Copyright (c) 2019, 2021 Ingo Schwarze <schwarze@openbsd.org> | 3 | .\" Copyright (c) 2019, 2021 Ingo Schwarze <schwarze@openbsd.org> |
| 4 | .\" | 4 | .\" |
| @@ -14,7 +14,7 @@ | |||
| 14 | .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | 14 | .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF |
| 15 | .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | 15 | .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
| 16 | .\" | 16 | .\" |
| 17 | .Dd $Mdocdate: July 27 2021 $ | 17 | .Dd $Mdocdate: October 29 2021 $ |
| 18 | .Dt X509_CHECK_PURPOSE 3 | 18 | .Dt X509_CHECK_PURPOSE 3 |
| 19 | .Os | 19 | .Os |
| 20 | .Sh NAME | 20 | .Sh NAME |
| @@ -40,6 +40,8 @@ is intended to be used for the given | |||
| 40 | which can be one of the following integer constants. | 40 | which can be one of the following integer constants. |
| 41 | The check succeeds if none of the conditions given in the list below | 41 | The check succeeds if none of the conditions given in the list below |
| 42 | are violated. | 42 | are violated. |
| 43 | It always fails if parsing fails for any extension contained in the | ||
| 44 | .Fa certificate . | ||
| 43 | .Bl -tag -width 1n | 45 | .Bl -tag -width 1n |
| 44 | .It Dv X509_PURPOSE_SSL_CLIENT | 46 | .It Dv X509_PURPOSE_SSL_CLIENT |
| 45 | .Bl -dash -width 1n -compact | 47 | .Bl -dash -width 1n -compact |
| @@ -173,10 +175,12 @@ contains a Key Usage extension, the | |||
| 173 | bit is set. | 175 | bit is set. |
| 174 | .El | 176 | .El |
| 175 | .It Dv X509_PURPOSE_ANY | 177 | .It Dv X509_PURPOSE_ANY |
| 176 | The check always succeeds. | 178 | Nothing is required except that, if any extensions are present, |
| 179 | parsing them needs to succeed. | ||
| 177 | .It Dv X509_PURPOSE_OCSP_HELPER | 180 | .It Dv X509_PURPOSE_OCSP_HELPER |
| 178 | .\" ocsp_helper, "OCSP helper" | 181 | .\" ocsp_helper, "OCSP helper" |
| 179 | The check always succeeds. | 182 | Nothing is required except that, if any extensions are present, |
| 183 | parsing them needs to succeed. | ||
| 180 | The application program is expected | 184 | The application program is expected |
| 181 | to do the actual checking by other means. | 185 | to do the actual checking by other means. |
| 182 | .It Dv X509_PURPOSE_TIMESTAMP_SIGN | 186 | .It Dv X509_PURPOSE_TIMESTAMP_SIGN |
| @@ -216,6 +220,10 @@ conditions are violated: | |||
| 216 | .It | 220 | .It |
| 217 | If the | 221 | If the |
| 218 | .Fa certificate | 222 | .Fa certificate |
| 223 | contains any extensions, parsing them succeeds. | ||
| 224 | .It | ||
| 225 | If the | ||
| 226 | .Fa certificate | ||
| 219 | contains a Key Usage extension, the | 227 | contains a Key Usage extension, the |
| 220 | .Dv keyCertSign | 228 | .Dv keyCertSign |
| 221 | bit is set. | 229 | bit is set. |
| @@ -320,13 +328,15 @@ or | |||
| 320 | bits set. | 328 | bits set. |
| 321 | .El | 329 | .El |
| 322 | .It Dv X509_PURPOSE_ANY | 330 | .It Dv X509_PURPOSE_ANY |
| 323 | The check always succeeds, even if the three common conditions | 331 | Nothing is required except that, if any extensions are present, |
| 332 | parsing them needs to succeed. | ||
| 333 | The check even succeeds if the three other common conditions | ||
| 324 | cited above this list are violated. | 334 | cited above this list are violated. |
| 325 | .El | 335 | .El |
| 326 | .Pp | 336 | .Pp |
| 327 | If the | 337 | If parsing of any extensions that are present succeeds and the |
| 328 | .Fa purpose | 338 | .Fa purpose |
| 329 | is -1, | 339 | argument is \-1, |
| 330 | .Fn X509_check_purpose | 340 | .Fn X509_check_purpose |
| 331 | always succeeds, no matter whether or not the | 341 | always succeeds, no matter whether or not the |
| 332 | .Fa ca | 342 | .Fa ca |
| @@ -345,7 +355,7 @@ identifiers not listed above. | |||
| 345 | .Fn X509_check_purpose | 355 | .Fn X509_check_purpose |
| 346 | returns the following values: | 356 | returns the following values: |
| 347 | .Bl -column -1 Failure -compact | 357 | .Bl -column -1 Failure -compact |
| 348 | .It -1 Ta Error Ta The | 358 | .It \-1 Ta Error Ta Parsing of certificate extensions failed or the |
| 349 | .Fa purpose | 359 | .Fa purpose |
| 350 | is invalid. | 360 | is invalid. |
| 351 | .It 0 Ta Failure Ta The | 361 | .It 0 Ta Failure Ta The |
