From b801b453af6de75838c3298137628f05e94ffb48 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Sun, 23 Sep 2018 22:24:02 +0000 Subject: whitespace fixes - replace tabs with spaces where possible - remove line ending spaces - remove double/triple newlines at EOF - fix a non-UTF-8 character - cleanup a few indentations/line continuations in manual examples Closes https://github.com/curl/curl/pull/3037 --- tests/certs/EdelCurlRoot-ca.prm | 1 - tests/certs/scripts/Makefile.am | 1 - tests/certs/scripts/genroot.sh | 18 ++++++++--------- tests/certs/scripts/genserv.sh | 44 ++++++++++++++++++++--------------------- 4 files changed, 30 insertions(+), 34 deletions(-) (limited to 'tests/certs') diff --git a/tests/certs/EdelCurlRoot-ca.prm b/tests/certs/EdelCurlRoot-ca.prm index d0eff4894..2e8104730 100644 --- a/tests/certs/EdelCurlRoot-ca.prm +++ b/tests/certs/EdelCurlRoot-ca.prm @@ -15,4 +15,3 @@ commonName_value = Northern Nowhere Trust Anchor basicConstraints = critical,CA:true keyUsage = critical,keyCertSign,cRLSign subjectKeyIdentifier = hash - diff --git a/tests/certs/scripts/Makefile.am b/tests/certs/scripts/Makefile.am index db4a90f54..1db622204 100644 --- a/tests/certs/scripts/Makefile.am +++ b/tests/certs/scripts/Makefile.am @@ -26,4 +26,3 @@ SCRIPTFILES = \ genserv.sh EXTRA_DIST = $(SCRIPTFILES) - diff --git a/tests/certs/scripts/genroot.sh b/tests/certs/scripts/genroot.sh index 5dd9fac95..f66fc6554 100755 --- a/tests/certs/scripts/genroot.sh +++ b/tests/certs/scripts/genroot.sh @@ -22,19 +22,19 @@ DIGESTALGO=-sha256 PREFIX=$1 if [ ".$PREFIX" = . ] ; then - echo No configuration prefix - NOTOK=1 + echo No configuration prefix + NOTOK=1 else - if [ ! -f $PREFIX-ca.prm ] ; then - echo No configuration file $PREFIX-ca.prm - NOTOK=1 - fi + if [ ! -f $PREFIX-ca.prm ] ; then + echo No configuration file $PREFIX-ca.prm + NOTOK=1 + fi fi if [ ".$NOTOK" != . ] ; then - echo "Sorry, I can't do that for you." - $USAGE - exit + echo "Sorry, I can't do that for you." + $USAGE + exit fi GETSERIAL="\$t = time ;\$d = \$t . substr(\$t+$$ ,-4,4)-1;print \$d" diff --git a/tests/certs/scripts/genserv.sh b/tests/certs/scripts/genserv.sh index 99f44ccee..f0f440320 100755 --- a/tests/certs/scripts/genserv.sh +++ b/tests/certs/scripts/genserv.sh @@ -26,39 +26,39 @@ DHP=NO PREFIX=$1 if [ ".$PREFIX" = . ] ; then - echo No configuration prefix - NOTOK=1 + echo No configuration prefix + NOTOK=1 else - if [ ! -f $PREFIX-sv.prm ] ; then - echo No configuration file $PREFIX-sv.prm - NOTOK=1 - fi + if [ ! -f $PREFIX-sv.prm ] ; then + echo No configuration file $PREFIX-sv.prm + NOTOK=1 + fi fi CAPREFIX=$2 if [ ".$CAPREFIX" = . ] ; then - echo No CA prefix - NOTOK=1 + echo No CA prefix + NOTOK=1 else - if [ ! -f $CAPREFIX-ca.cacert ] ; then - echo No CA certificate file $CAPREFIX-ca.caert - NOTOK=1 - fi - if [ ! -f $CAPREFIX-ca.key ] ; then - echo No $CAPREFIX key - NOTOK=1 - fi + if [ ! -f $CAPREFIX-ca.cacert ] ; then + echo No CA certificate file $CAPREFIX-ca.caert + NOTOK=1 + fi + if [ ! -f $CAPREFIX-ca.key ] ; then + echo No $CAPREFIX key + NOTOK=1 + fi fi if [ ".$NOTOK" != . ] ; then - echo "Sorry, I can't do that for you." - $USAGE - exit + echo "Sorry, I can't do that for you." + $USAGE + exit fi if [ ".$SERIAL" = . ] ; then - GETSERIAL="\$t = time ;\$d = \$t . substr(\$t+$$ ,-4,4)-1;print \$d" - SERIAL=`/usr/bin/env perl -e "$GETSERIAL"` + GETSERIAL="\$t = time ;\$d = \$t . substr(\$t+$$ ,-4,4)-1;print \$d" + SERIAL=`/usr/bin/env perl -e "$GETSERIAL"` fi echo SERIAL=$SERIAL PREFIX=$PREFIX CAPREFIX=$CAPREFIX DURATION=$DURATION KEYSIZE=$KEYSIZE @@ -116,5 +116,3 @@ cat $PREFIX-sv.prm $PREFIX-sv.key $PREFIX-sv.crt $PREFIX-sv.dhp >$PREFIX-sv.pem chmod o-r $PREFIX-sv.prm echo "$PREFIX-sv.pem done" - - -- cgit v1.2.3