diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2015-04-21 10:07:30 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2015-04-21 10:31:06 +0200 |
commit | a6121185b91fb609cdd5af9e61d8a32716b6bdf8 (patch) | |
tree | 17dcca680fd070dc28af1d06b1455a79a9f20f62 /tests/mini-x509.c | |
parent | 49f956ec0771f29e0d33430045df3ebbb973d17e (diff) | |
download | gnutls-a6121185b91fb609cdd5af9e61d8a32716b6bdf8.tar.gz |
tests: verify the return value of gnutls_certificate_get_ours when no cert is sent
Diffstat (limited to 'tests/mini-x509.c')
-rw-r--r-- | tests/mini-x509.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/mini-x509.c b/tests/mini-x509.c index 610da49620..6ec431f25b 100644 --- a/tests/mini-x509.c +++ b/tests/mini-x509.c @@ -204,6 +204,17 @@ void doit(void) HANDSHAKE(client, server); + /* check gnutls_certificate_get_ours() - client side */ + { + const gnutls_datum_t *mcert; + + mcert = gnutls_certificate_get_ours(client); + if (mcert != NULL) { + fail("gnutls_certificate_get_ours(): failed\n"); + exit(1); + } + } + /* check the number of certificates received */ { unsigned cert_list_size = 0; |