]> git.ipfire.org Git - thirdparty/openssl.git/commit
Fixup demo exit status magic numbers
authorslontis <shane.lontis@oracle.com>
Mon, 20 Mar 2023 04:48:33 +0000 (14:48 +1000)
committerTomas Mraz <tomas@openssl.org>
Thu, 16 Nov 2023 13:46:25 +0000 (14:46 +0100)
commitd339f4070c40c30d99ba51df0231559efbb4280e
treee74b97bd3deae78310c83b62790ca3ae98adcc93
parent530672c80b4e6b29cdc34ba2b4c257b52e4de644
Fixup demo exit status magic numbers

The demo code is quite often block copied for new demos,
so this PR changes demos to use EXIT_SUCCESS & EXIT_FAILURE
instead of using 0 and 1.
Internal functions use the normal notation of 0 = error, 1 = success,
but the value returned by main() must use EXIT_SUCCESS and EXIT_FAILURE.

Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(cherry picked from commit 09ff84bd2752cac649f57cfbf95b49dbce1c69ee)

Reviewed-by: Hugo Landau <hlandau@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22728)
47 files changed:
demos/bio/client-arg.c
demos/bio/client-conf.c
demos/cipher/aesccm.c
demos/cipher/aesgcm.c
demos/cipher/aeskeywrap.c
demos/cipher/ariacbc.c
demos/cms/cms_comp.c
demos/cms/cms_ddec.c
demos/cms/cms_dec.c
demos/cms/cms_denc.c
demos/cms/cms_enc.c
demos/cms/cms_sign.c
demos/cms/cms_sign2.c
demos/cms/cms_uncomp.c
demos/cms/cms_ver.c
demos/digest/BIO_f_md.c
demos/digest/EVP_MD_demo.c
demos/digest/EVP_MD_stdin.c
demos/digest/EVP_MD_xof.c
demos/encode/ec_encode.c
demos/encode/rsa_encode.c
demos/kdf/hkdf.c
demos/kdf/pbkdf2.c
demos/kdf/scrypt.c
demos/keyexch/x25519.c
demos/mac/cmac-aes256.c
demos/mac/gmac.c
demos/mac/hmac-sha512.c
demos/mac/poly1305.c
demos/mac/siphash.c
demos/pkcs12/pkwrite.c
demos/pkey/EVP_PKEY_DSA_keygen.c
demos/pkey/EVP_PKEY_DSA_paramfromdata.c
demos/pkey/EVP_PKEY_DSA_paramgen.c
demos/pkey/EVP_PKEY_DSA_paramvalidate.c
demos/pkey/EVP_PKEY_EC_keygen.c
demos/pkey/EVP_PKEY_RSA_keygen.c
demos/signature/EVP_DSA_Signature_demo.c
demos/signature/EVP_EC_Signature_demo.c
demos/signature/rsa_pss_direct.c
demos/signature/rsa_pss_hash.c
demos/smime/smdec.c
demos/smime/smenc.c
demos/smime/smsign.c
demos/smime/smsign2.c
demos/smime/smver.c
demos/sslecho/main.c