diff options
| author | tb <> | 2024-03-26 22:45:38 +0000 |
|---|---|---|
| committer | tb <> | 2024-03-26 22:45:38 +0000 |
| commit | c17347558c725bc8ce214dd6a590b5e84cbf3e2f (patch) | |
| tree | 696d7934d04c838fa484d60d93df144e8ee38550 /src | |
| parent | 8f862d221d8ed5b937f6c2a1ceafca0d3bf4ec7c (diff) | |
| download | openbsd-c17347558c725bc8ce214dd6a590b5e84cbf3e2f.tar.gz openbsd-c17347558c725bc8ce214dd6a590b5e84cbf3e2f.tar.bz2 openbsd-c17347558c725bc8ce214dd6a590b5e84cbf3e2f.zip | |
Tweak versions comment for CRLs
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/libcrypto/x509/x509cset.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/libcrypto/x509/x509cset.c b/src/lib/libcrypto/x509/x509cset.c index a80d5f21d3..859c9724b5 100644 --- a/src/lib/libcrypto/x509/x509cset.c +++ b/src/lib/libcrypto/x509/x509cset.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: x509cset.c,v 1.20 2024/03/26 11:09:37 tb Exp $ */ | 1 | /* $OpenBSD: x509cset.c,v 1.21 2024/03/26 22:45:38 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 | */ |
| @@ -81,6 +81,7 @@ X509_CRL_set_version(X509_CRL *x, long version) | |||
| 81 | /* | 81 | /* |
| 82 | * RFC 5280, 4.1: versions 1 - 3 are specified as follows. | 82 | * RFC 5280, 4.1: versions 1 - 3 are specified as follows. |
| 83 | * Version ::= INTEGER { v1(0), v2(1), v3(2) } | 83 | * Version ::= INTEGER { v1(0), v2(1), v3(2) } |
| 84 | * The only specified versions for CRLs are 1 and 2. | ||
| 84 | */ | 85 | */ |
| 85 | if (version < 0 || version > 1) | 86 | if (version < 0 || version > 1) |
| 86 | return (0); | 87 | return (0); |
