openssl/apps
David Benjamin cdf63a3736 Add X509 version constants.
The X509 version APIs return the numerical values of the version
numbers, which are one off from the names. This is a bit confusing.
Where they don't get it wrong (accidentally making an "X509v4"
certificate), callers tend to try commenting every call site to explain
the mismatch, including in OpenSSL itself.

Define constants for these values, so code can be self-documenting and
callers are nudged towards the right values.

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14549)
2021-04-28 11:40:06 +02:00
..
demoSRP
include Prefer fetch over legacy get_digestby/get_cipherby 2021-04-28 09:38:31 +02:00
lib Add X509 version constants. 2021-04-28 11:40:06 +02:00
asn1pars.c
build.info Use build.info not file-wide ifndef 2021-04-21 11:06:18 +02:00
ca-cert.srl
ca-key.pem
ca-req.pem
ca.c Add X509 version constants. 2021-04-28 11:40:06 +02:00
CA.pl.in
cert.pem
ciphers.c Update copyright year 2021-02-18 15:05:17 +00:00
client.pem
cmp_mock_srv.c
cmp_mock_srv.h
cmp.c APPS: Improve diagnostics for string options and options expecting int >= 0 2021-04-24 18:54:32 +02:00
cms.c Remove an unused parameter 2021-04-22 18:11:18 +02:00
crl2p7.c Update copyright year 2021-04-22 14:38:44 +01:00
crl.c Fetch and free cipher and md's 2021-04-20 10:12:29 +02:00
ct_log_list.cnf
dgst.c Fetch and free cipher and md's 2021-04-20 10:12:29 +02:00
dhparam.c APPS: make apps strict on app_RAND_load() and app_RAND_write() failure 2021-04-14 16:48:27 +02:00
dsa512.pem
dsa1024.pem
dsa-ca.pem
dsa-pca.pem
dsa.c Fetch and free cipher and md's 2021-04-20 10:12:29 +02:00
dsap.pem
dsaparam.c APPS: make apps strict on app_RAND_load() and app_RAND_write() failure 2021-04-14 16:48:27 +02:00
ec.c Force public key to be included unless explicitly excluded with -no_public 2021-04-22 17:43:30 +02:00
ecparam.c APPS: make apps strict on app_RAND_load() and app_RAND_write() failure 2021-04-14 16:48:27 +02:00
enc.c APPS: Improve diagnostics for string options and options expecting int >= 0 2021-04-24 18:54:32 +02:00
engine.c
errstr.c
fipsinstall.c Make fipsinstall -out flag optional 2021-03-24 17:46:40 +01:00
gendsa.c Fetch and free cipher and md's 2021-04-20 10:12:29 +02:00
genpkey.c Fetch and free cipher and md's 2021-04-20 10:12:29 +02:00
genrsa.c APPS: Improve diagnostics for string options and options expecting int >= 0 2021-04-24 18:54:32 +02:00
info.c
insta.ca.crt
kdf.c Update copyright year 2021-03-11 13:27:36 +00:00
list.c Fix naming for EVP_RAND_CTX_gettable functions. 2021-04-17 18:22:13 +10:00
mac.c apps: update mac to work with additional MAC_init arguments. This doesn't include the creation of new 'key' arguments. 2021-02-28 17:25:48 +10:00
nseq.c
ocsp.c APPS: Improve diagnostics for string options and options expecting int >= 0 2021-04-24 18:54:32 +02:00
openssl-vms.cnf
openssl.c APPS: make apps strict on app_RAND_load() and app_RAND_write() failure 2021-04-14 16:48:27 +02:00
openssl.cnf
passwd.c APPS: make apps strict on app_RAND_load() and app_RAND_write() failure 2021-04-14 16:48:27 +02:00
pca-cert.srl
pca-key.pem
pca-req.pem
pkcs7.c Update copyright year 2021-02-18 15:05:17 +00:00
pkcs8.c APPS: Improve diagnostics for string options and options expecting int >= 0 2021-04-24 18:54:32 +02:00
pkcs12.c APPS: Improve diagnostics for string options and options expecting int >= 0 2021-04-24 18:54:32 +02:00
pkey.c Fetch and free cipher and md's 2021-04-20 10:12:29 +02:00
pkeyparam.c Update copyright year 2021-03-11 13:27:36 +00:00
pkeyutl.c Fetch and free cipher and md's 2021-04-20 10:12:29 +02:00
prime.c
privkey.pem
progs.pl
rand.c APPS: make apps strict on app_RAND_load() and app_RAND_write() failure 2021-04-14 16:48:27 +02:00
rehash.c
req.c Add X509 version constants. 2021-04-28 11:40:06 +02:00
req.pem
rsa8192.pem
rsa.c Fetch and free cipher and md's 2021-04-20 10:12:29 +02:00
rsautl.c APPS: make apps strict on app_RAND_load() and app_RAND_write() failure 2021-04-14 16:48:27 +02:00
s512-key.pem
s512-req.pem
s1024key.pem
s1024req.pem
s_client.c APPS: make apps strict on app_RAND_load() and app_RAND_write() failure 2021-04-14 16:48:27 +02:00
s_server.c APPS: make apps strict on app_RAND_load() and app_RAND_write() failure 2021-04-14 16:48:27 +02:00
s_time.c APPS: Improve diagnostics for string options and options expecting int >= 0 2021-04-24 18:54:32 +02:00
server2.pem
server.pem
server.srl
sess_id.c
smime.c Fetch and free cipher and md's 2021-04-20 10:12:29 +02:00
speed.c Prefer fetch over legacy get_digestby/get_cipherby 2021-04-28 09:38:31 +02:00
spkac.c
srp.c APPS: make apps strict on app_RAND_load() and app_RAND_write() failure 2021-04-14 16:48:27 +02:00
storeutl.c Fetch and free cipher and md's 2021-04-20 10:12:29 +02:00
testCA.pem
testdsa.h Replace OSSL_PARAM_BLD_free_params() with OSSL_PARAM_free(). 2021-04-12 16:55:30 +10:00
testrsa.h
timeouts.h
ts.c Fetch and free cipher and md's 2021-04-20 10:12:29 +02:00
tsget.in
verify.c Update copyright year 2021-04-08 13:04:41 +01:00
version.c
vms_decc_init.c
x509.c Fetch and free cipher and md's 2021-04-20 10:12:29 +02:00