]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Avoid comparing the expiration date to prevent false positive error in 32-bit systems.
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Sun, 2 Jun 2013 10:10:06 +0000 (12:10 +0200)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Sun, 2 Jun 2013 10:10:06 +0000 (12:10 +0200)
tests/cert-tests/pem-decoding

index fe769ecf8e55e5d64ba3b676127037d48bb8b14d..f8c637275280696c775143f825ba93ddbddc674f 100755 (executable)
@@ -61,7 +61,9 @@ if test "$rc" != "0"; then
   exit $rc
 fi
 
-diff $srcdir/complex-cert.pem tmp-pem.pem
+cat $srcdir/complex-cert.pem |grep -v "Not After:" >tmp1
+cat $srcdir/tmp-pem.pem |grep -v "Not After:" >tmp2
+diff tmp1 tmp2
 rc=$?
 
 if test "$rc" != "0"; then
@@ -69,6 +71,6 @@ if test "$rc" != "0"; then
   exit $rc
 fi
 
-rm -f tmp-pem.pem
+rm -f tmp-pem.pem tmp1 tmp2
 
 exit 0