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 Remove unnecessary trailing whitespace 2019-02-05 16:25:11 +01:00
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 Check non-option arguments 2020-12-15 11:47:17 +01:00
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 Update copyright year 2020-04-23 13:55:52 +01:00
cert.pem
ciphers.c Update copyright year 2021-02-18 15:05:17 +00:00
client.pem
cmp_mock_srv.c Update copyright year 2021-01-28 13:54:57 +01:00
cmp_mock_srv.h Rename OPENSSL_CTX prefix to OSSL_LIB_CTX 2020-10-15 11:59:53 +01:00
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 Remove unnecessary trailing whitespace 2019-02-05 16:25:11 +01:00
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 Check non-option arguments 2020-12-15 11:47:17 +01:00
errstr.c Check non-option arguments 2020-12-15 11:47:17 +01:00
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 Check non-option arguments 2020-12-15 11:47:17 +01:00
insta.ca.crt openssl-cmp.pod.in: Update and extend example using Insta Demo CA 2020-08-04 12:11:46 +02:00
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 Check non-option arguments 2020-12-15 11:47:17 +01:00
ocsp.c APPS: Improve diagnostics for string options and options expecting int >= 0 2021-04-24 18:54:32 +02:00
openssl-vms.cnf Check the configuration file by default 2020-11-05 20:45:20 +03:00
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 Check the configuration file by default 2020-11-05 20:45:20 +03:00
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 Check non-option arguments 2020-12-15 11:47:17 +01:00
privkey.pem
progs.pl OPENSSL_NO_GOST has nothing to do with low-level algos 2020-12-15 04:39:58 +01:00
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 Update copyright year 2021-01-28 13:54:57 +01:00
req.c Add X509 version constants. 2021-04-28 11:40:06 +02:00
req.pem
rsa8192.pem Fix rsa8192.pem 2020-05-13 06:28:36 +02:00
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 Replace apps/server.pem with certificate with a sha256 signature. 2020-01-25 14:10:40 +01:00
server.srl
sess_id.c Check non-option arguments 2020-12-15 11:47:17 +01:00
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 Check non-option arguments 2020-12-15 11:47:17 +01:00
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 Following the license change, modify the boilerplates in apps/ 2018-12-06 14:15:27 +01:00
timeouts.h Fix header file include guard names 2019-09-28 20:26:36 +02:00
ts.c Fetch and free cipher and md's 2021-04-20 10:12:29 +02:00
tsget.in apps/tsget.in: use the full version in the user agent string 2018-12-10 20:09:17 +01:00
verify.c Update copyright year 2021-04-08 13:04:41 +01:00
version.c Check non-option arguments 2020-12-15 11:47:17 +01:00
vms_decc_init.c VMS: move copy_argc to its own module and make it an aux source 2019-03-05 08:51:09 +01:00
x509.c Fetch and free cipher and md's 2021-04-20 10:12:29 +02:00