summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2011-05-07 18:44:21 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2011-05-07 18:46:23 +0200
commit91e62ff65030af57bed038decfa3aac392f75cac (patch)
treef8dce850ce9d99d07d9245c3f4893f29284edccb /tests
parent50c4bb2247957f852dfc52de2e9ca39e09bd3de0 (diff)
downloadgnutls-91e62ff65030af57bed038decfa3aac392f75cac.tar.gz
Added gnutls_x509_crq_verify().
Diffstat (limited to 'tests')
-rw-r--r--tests/crq_key_id.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/crq_key_id.c b/tests/crq_key_id.c
index fff9f8f4ad..74d5dc6b60 100644
--- a/tests/crq_key_id.c
+++ b/tests/crq_key_id.c
@@ -137,11 +137,17 @@ doit (void)
}
ret = gnutls_x509_crq_privkey_sign (crq, abs_pkey, GNUTLS_DIG_SHA1, 0);
- if (ret)
+ if (ret < 0)
{
fail ("gnutls_x509_crq_sign: %d\n", ret);
}
+ ret = gnutls_x509_crq_verify (crq, 0);
+ if (ret < 0)
+ {
+ fail ("gnutls_x509_crq_verify: %d\n", ret);
+ }
+
crq_key_id_len = 0;
ret = gnutls_x509_crq_get_key_id (crq, 0, crq_key_id, &crq_key_id_len);
if (ret != GNUTLS_E_SHORT_MEMORY_BUFFER)