openssl/apps
Richard Levitte 9ba96fbb25 Perl's chop / chomp considered bad, use a regexp instead
Once upon a time, there was chop, which somply chopped off the last
character of $_ or a given variable, and it was used to take off the
EOL character (\n) of strings.

... but then, you had to check for the presence of such character.

So came chomp, the better chop which checks for \n before chopping it
off.  And this worked well, as long as Perl made internally sure that
all EOLs were converted to \n.

These days, though, there seems to be a mixture of perls, so lines
from files in the "wrong" environment might have \r\n as EOL, or just
\r (Mac OS, unless I'm misinformed).

So it's time we went for the more generic variant and use s|\R$||, the
better chomp which recognises all kinds of known EOLs and chops them
off.

A few chops were left alone, as they are use as surgical tools to
remove one last slash or one last comma.

NOTE: \R came with perl 5.10.0.  It means that from now on, our
scripts will fail with any older version.

Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-02-11 22:11:48 +01:00
..
demoCA
demoSRP
app_rand.c Add a no-egd option to disable EGD-related code 2016-01-14 13:02:51 -05:00
apps.c Fix pkeyutl/rsautl empty encrypt-input/decrypt-output handling 2016-02-02 23:24:12 -05:00
apps.h Improve recent option help string additions 2016-02-10 12:34:39 -05:00
asn1pars.c commands help cleanup 2016-02-06 14:06:52 -05:00
build.info unified build scheme: add a "unified" template for VMS descrip.mms 2016-02-10 14:36:32 +01:00
ca-cert.srl
ca-key.pem Fix verify(1) to report failure when verification fails 2016-01-13 17:55:17 -05:00
ca-req.pem Fix verify(1) to report failure when verification fails 2016-01-13 17:55:17 -05:00
ca.c Fix engine key support in utilities. 2016-02-08 15:11:08 +00:00
CA.pl.in Perl's chop / chomp considered bad, use a regexp instead 2016-02-11 22:11:48 +01:00
cert.pem
ciphers.c Support disabling any or all TLS or DTLS versions 2016-01-19 09:57:15 -05:00
client.pem
cms.c Fix engine key support in cms and req utilities. 2016-02-11 16:03:52 +00:00
crl2p7.c Fix option value parsing in crl2pkcs7 -certfile 2015-12-13 21:31:03 -05:00
crl.c New function X509_get0_pubkey 2015-12-14 23:06:14 +00:00
dgst.c Fix engine key support in utilities. 2016-02-08 15:11:08 +00:00
dh1024.pem
dh2048.pem
dh4096.pem
dhparam.c Use NON_EMPTY_TRANSLATION_UNIT, consistently. 2016-02-09 20:13:29 -05:00
dsa512.pem
dsa1024.pem
dsa-ca.pem Fix verify(1) to report failure when verification fails 2016-01-13 17:55:17 -05:00
dsa-pca.pem Fix verify(1) to report failure when verification fails 2016-01-13 17:55:17 -05:00
dsa.c Use NON_EMPTY_TRANSLATION_UNIT, consistently. 2016-02-09 20:13:29 -05:00
dsap.pem
dsaparam.c Use NON_EMPTY_TRANSLATION_UNIT, consistently. 2016-02-09 20:13:29 -05:00
ec.c Use NON_EMPTY_TRANSLATION_UNIT, consistently. 2016-02-09 20:13:29 -05:00
ecparam.c Use NON_EMPTY_TRANSLATION_UNIT, consistently. 2016-02-09 20:13:29 -05:00
enc.c Adapt all EVP_CIPHER users for it becoming opaque 2016-01-12 13:52:22 +01:00
engine.c Use NON_EMPTY_TRANSLATION_UNIT, consistently. 2016-02-09 20:13:29 -05:00
errstr.c Fix errstr error code parsing 2016-02-11 08:53:11 +00:00
gendsa.c Use NON_EMPTY_TRANSLATION_UNIT, consistently. 2016-02-09 20:13:29 -05:00
genpkey.c Continue standardisation of malloc handling in apps 2015-11-09 22:48:41 +00:00
genrsa.c Use NON_EMPTY_TRANSLATION_UNIT, consistently. 2016-02-09 20:13:29 -05:00
Makefile.in Enhance and clear the support of linker flags 2016-02-06 17:57:19 +01:00
nseq.c Continue standardisation of malloc handling in apps 2015-11-09 22:48:41 +00:00
ocsp.c Refactor apps load_certs/load_crls to work incrementally 2016-01-20 19:04:26 -05:00
openssl-vms.cnf Remove outdated legacy crypto options 2016-01-27 19:05:50 -05:00
openssl.c Remove TLS heartbeat, disable DTLS heartbeat 2016-02-11 12:57:26 -05:00
openssl.cnf Use better defaults for TSA. 2015-11-20 13:40:53 +00:00
opt.c Deprecate the -issuer_checks debugging option 2016-02-10 12:34:06 -05:00
passwd.c Rename some BUF_xxx to OPENSSL_xxx 2015-12-16 16:14:49 -05:00
pca-cert.srl
pca-key.pem Fix verify(1) to report failure when verification fails 2016-01-13 17:55:17 -05:00
pca-req.pem Fix verify(1) to report failure when verification fails 2016-01-13 17:55:17 -05:00
pkcs7.c Centralise loading default apps config file 2015-10-12 22:31:00 +01:00
pkcs8.c RT4227: Range-check in apps. 2016-01-12 01:00:31 -05:00
pkcs12.c fix various formatting issues 2016-02-08 18:43:49 +00:00
pkey.c Fix engine key support in utilities. 2016-02-08 15:11:08 +00:00
pkeyparam.c Centralise loading default apps config file 2015-10-12 22:31:00 +01:00
pkeyutl.c more doc fixes 2016-02-07 23:14:12 -05:00
prime.c Fix "primarility" typo 2015-11-21 14:37:24 +01:00
privkey.pem
progs.h more doc fixes 2016-02-07 23:14:12 -05:00
progs.pl more doc fixes 2016-02-07 23:14:12 -05:00
rand.c RT4227: Range-check in apps. 2016-01-12 01:00:31 -05:00
rehash.c Rename some BUF_xxx to OPENSSL_xxx 2015-12-16 16:14:49 -05:00
req.c Fix engine key support in cms and req utilities. 2016-02-11 16:03:52 +00:00
req.pem
rsa8192.pem
rsa.c Use NON_EMPTY_TRANSLATION_UNIT, consistently. 2016-02-09 20:13:29 -05:00
rsautl.c Use NON_EMPTY_TRANSLATION_UNIT, consistently. 2016-02-09 20:13:29 -05:00
s512-key.pem
s512-req.pem
s1024key.pem
s1024req.pem
s_apps.h Suppress DANE TLSA reflection when verification fails 2016-02-08 14:46:09 -05:00
s_cb.c Suppress DANE TLSA reflection when verification fails 2016-02-08 14:46:09 -05:00
s_client.c Auto init/deinit libcrypto 2016-02-09 15:11:38 +00:00
s_server.c GH646: Update help for s_server command. 2016-02-09 10:57:03 -05:00
s_socket.c The protocol variable has lost its use, remove it 2016-02-11 14:13:01 +01:00
s_time.c Address Windows warnings in apps/. 2015-10-05 09:25:06 +02:00
server2.pem
server.pem
server.srl
sess_id.c Fix NSS format session output 2016-01-11 10:03:27 +00:00
smime.c Refactor apps load_certs/load_crls to work incrementally 2016-01-20 19:04:26 -05:00
speed.c RT3755: Remove duplicate #include 2016-01-31 09:42:53 -05:00
spkac.c Continue standardisation of malloc handling in apps 2015-11-09 22:48:41 +00:00
srp.c Use NON_EMPTY_TRANSLATION_UNIT, consistently. 2016-02-09 20:13:29 -05:00
testCA.pem
testdsa.h Big apps cleanup (option-parsing, etc) 2015-04-24 15:26:15 -04:00
testrsa.h Remove /* foo.c */ comments 2016-01-26 16:40:43 -05:00
timeouts.h Remove /* foo.c */ comments 2016-01-26 16:40:43 -05:00
ts.c Cleanup: fix all sources that used EVP_MD_CTX_(create|init|destroy) 2015-12-07 17:40:20 +01:00
tsget
verify.c Multiple -trusted/-untrusted/-CRLfile options in verify 2016-01-20 19:04:33 -05:00
version.c typo 2016-02-10 19:04:08 +00:00
vms_decc_init.c Fix some missing or faulty header file inclusions 2015-12-30 14:54:29 +01:00
winrand.c Big apps cleanup (option-parsing, etc) 2015-04-24 15:26:15 -04:00
x509.c Fix engine key support in utilities. 2016-02-08 15:11:08 +00:00