diff options
author | Alon Bar-Lev <alon.barlev@gmail.com> | 2015-06-21 03:00:02 +0300 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2015-06-21 09:29:51 +0200 |
commit | 80a60c868a74841866c8d14c84fe65bfb5771215 (patch) | |
tree | a7462c5c5a4376ef6b45df953be62a7374dc3423 /tests/rsa-md5-collision | |
parent | cbfc6a1932091d706431cc8234806c7b43860fcc (diff) | |
download | gnutls-80a60c868a74841866c8d14c84fe65bfb5771215.tar.gz |
tests: misc: cleanup shell usage
Add quotes for most usages of variables.
Added ${} for variables.
Cleanup indentation to be consistent with other tests.
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Diffstat (limited to 'tests/rsa-md5-collision')
-rwxr-xr-x | tests/rsa-md5-collision/rsa-md5-collision | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/tests/rsa-md5-collision/rsa-md5-collision b/tests/rsa-md5-collision/rsa-md5-collision index 7f3361de5b..888bbed708 100755 --- a/tests/rsa-md5-collision/rsa-md5-collision +++ b/tests/rsa-md5-collision/rsa-md5-collision @@ -22,26 +22,26 @@ set -e -srcdir=${srcdir:-.} -CERTTOOL=${CERTTOOL:-../../src/certtool$EXEEXT} +srcdir="${srcdir:-.}" +CERTTOOL="${CERTTOOL:-../../src/certtool${EXEEXT}}" -$CERTTOOL --inder --certificate-info \ - --infile $srcdir/MD5CollisionCA.cer > ca.pem -$CERTTOOL --inder --certificate-info \ - --infile $srcdir/TargetCollidingCertificate1.cer > client1.pem -$CERTTOOL --inder --certificate-info \ - --infile $srcdir/TargetCollidingCertificate2.cer > client2.pem +"${CERTTOOL}" --inder --certificate-info \ + --infile "${srcdir}/MD5CollisionCA.cer" > ca.pem +"${CERTTOOL}" --inder --certificate-info \ + --infile "${srcdir}/TargetCollidingCertificate1.cer" > client1.pem +"${CERTTOOL}" --inder --certificate-info \ + --infile "${srcdir}/TargetCollidingCertificate2.cer" > client2.pem cat client1.pem ca.pem > chain1.pem cat client2.pem ca.pem > chain2.pem -$CERTTOOL --verify-chain < chain1.pem | \ - grep 'Not verified.' | grep 'insecure algorithm' >/dev/null -$CERTTOOL --verify-chain < chain2.pem | \ - grep 'Not verified.' | grep 'insecure algorithm' >/dev/null +"${CERTTOOL}" --verify-chain < chain1.pem | \ + grep 'Not verified.' | grep 'insecure algorithm' >/dev/null +"${CERTTOOL}" --verify-chain < chain2.pem | \ + grep 'Not verified.' | grep 'insecure algorithm' >/dev/null rm -f ca.pem client1.pem client2.pem \ - chain1.pem chain2.pem \ + chain1.pem chain2.pem \ # We're done. exit 0 |