summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2009-10-20 11:27:13 +0200
committerSimon Josefsson <simon@josefsson.org>2009-10-20 11:27:13 +0200
commit4f214970374c474692dd18032246a14b2e3686c5 (patch)
tree0eb9ba75e6928d2c441fd7ad6f236c3ac52f10fd /tests
parente900d62c839e206214d1eac01e9a78fbcf7b33bf (diff)
downloadgnutls-4f214970374c474692dd18032246a14b2e3686c5.tar.gz
Fix expired cert.
Diffstat (limited to 'tests')
-rw-r--r--tests/chainverify.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/chainverify.c b/tests/chainverify.c
index f394a2824b..19b27eb82c 100644
--- a/tests/chainverify.c
+++ b/tests/chainverify.c
@@ -701,8 +701,11 @@ static struct
{ "rsa-md5 not ok", mayfirst_chain, &mayfirst_chain[1],
GNUTLS_VERIFY_ALLOW_SIGN_RSA_MD2,
GNUTLS_CERT_INSECURE_ALGORITHM | GNUTLS_CERT_INVALID },
+ { "rsa-md5 not ok2", mayfirst_chain, &mayfirst_chain[1],
+ GNUTLS_VERIFY_ALLOW_SIGN_RSA_MD5,
+ GNUTLS_CERT_EXPIRED | GNUTLS_CERT_INVALID },
{ "rsa-md5 ok", mayfirst_chain, &mayfirst_chain[1],
- GNUTLS_VERIFY_ALLOW_SIGN_RSA_MD5, 0 },
+ GNUTLS_VERIFY_DISABLE_TIME_CHECKS | GNUTLS_VERIFY_ALLOW_SIGN_RSA_MD5, 0 },
{ "v1ca fail", v1ca, &v1ca[2],
0, GNUTLS_CERT_SIGNER_NOT_CA | GNUTLS_CERT_INVALID },
{ "v1ca expired", v1ca, &v1ca[2],