diff options
| -rw-r--r-- | src/lib/libcrypto/x509/x509_purp.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/lib/libcrypto/x509/x509_purp.c b/src/lib/libcrypto/x509/x509_purp.c index 36dfe6abee..ff6d272d39 100644 --- a/src/lib/libcrypto/x509/x509_purp.c +++ b/src/lib/libcrypto/x509/x509_purp.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: x509_purp.c,v 1.44 2025/05/10 05:54:39 tb Exp $ */ | 1 | /* $OpenBSD: x509_purp.c,v 1.45 2026/05/08 04:28:28 tb Exp $ */ |
| 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
| 3 | * project 2001. | 3 | * project 2001. |
| 4 | */ | 4 | */ |
| @@ -580,13 +580,17 @@ x509v3_cache_extensions(X509 *x) | |||
| 580 | return (x->ex_flags & EXFLAG_INVALID) == 0; | 580 | return (x->ex_flags & EXFLAG_INVALID) == 0; |
| 581 | } | 581 | } |
| 582 | 582 | ||
| 583 | /* CA checks common to all purposes | 583 | /* |
| 584 | * CA checks common to all purposes | ||
| 584 | * return codes: | 585 | * return codes: |
| 585 | * 0 not a CA | 586 | * 0 not a CA |
| 586 | * 1 is a CA | 587 | * 1 is a CA per RFC 5280. |
| 587 | * 2 basicConstraints absent so "maybe" a CA | 588 | * 2 basicConstraints absent so "maybe" a CA |
| 589 | * "I don't know..." fallback removed in 2004 (OpenSSL commit 8f284faa) | ||
| 588 | * 3 basicConstraints absent but self signed V1. | 590 | * 3 basicConstraints absent but self signed V1. |
| 589 | * 4 basicConstraints absent but keyUsage present and keyCertSign asserted. | 591 | * 4 basicConstraints absent but keyUsage present and keyCertSign asserted. |
| 592 | * 5 basicConstraints absent but outdated Netscape Certificate Type extension | ||
| 593 | * indicates that it is a CA certificate | ||
| 590 | */ | 594 | */ |
| 591 | 595 | ||
| 592 | static int | 596 | static int |
