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
apps.c
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
ca-req.pem
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
client.pem
cms.c Fix engine key support in cms and req utilities. 2016-02-11 16:03:52 +00:00
crl2p7.c
crl.c
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 Import of old SSLeay release: SSLeay 0.8.1b 1998-12-21 10:52:47 +00:00
dsa-ca.pem Fix verify(1) to report failure when verification fails 2016-01-13 17:55:17 -05:00
dsa-pca.pem
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
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
ocsp.c
openssl-vms.cnf
openssl.c Remove TLS heartbeat, disable DTLS heartbeat 2016-02-11 12:57:26 -05:00
openssl.cnf
opt.c Deprecate the -issuer_checks debugging option 2016-02-10 12:34:06 -05:00
passwd.c
pca-cert.srl
pca-key.pem
pca-req.pem
pkcs7.c
pkcs8.c
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
pkeyutl.c more doc fixes 2016-02-07 23:14:12 -05:00
prime.c
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
rehash.c
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
server2.pem
server.pem
server.srl
sess_id.c
smime.c
speed.c
spkac.c
srp.c Use NON_EMPTY_TRANSLATION_UNIT, consistently. 2016-02-09 20:13:29 -05:00
testCA.pem
testdsa.h
testrsa.h
timeouts.h
ts.c
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
winrand.c
x509.c Fix engine key support in utilities. 2016-02-08 15:11:08 +00:00