diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2016-05-10 11:23:02 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2016-05-10 11:32:59 +0200 |
commit | e5a6b244859aa0f876e8a7be8b173999819ad8fe (patch) | |
tree | 8c00734fd40a57e1172805b2eddf59fe52184c26 /tests/set_x509_pkcs12_key.c | |
parent | 39e3da0521211badc3080672e90b7a12d76cef35 (diff) | |
download | gnutls-e5a6b244859aa0f876e8a7be8b173999819ad8fe.tar.gz |
tests: enhanced set_x509*_key to verify that connections succeed with creds
That is the tests no only verify that credentials are set as expected
but also whether sessions are established with the credentials provided.
Diffstat (limited to 'tests/set_x509_pkcs12_key.c')
-rw-r--r-- | tests/set_x509_pkcs12_key.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/set_x509_pkcs12_key.c b/tests/set_x509_pkcs12_key.c index 794d0e628d..4ef8239503 100644 --- a/tests/set_x509_pkcs12_key.c +++ b/tests/set_x509_pkcs12_key.c @@ -95,10 +95,12 @@ void doit(void) exit(1); } - compare(&tcert, server_ca3_cert_pem); + compare(&tcert, server_localhost_ca3_cert_pem); remove(certfile); + test_cli_serv(xcred, "NORMAL", &ca3_cert, "localhost"); /* the DNS name of the first cert */ + gnutls_certificate_free_credentials(xcred); gnutls_global_deinit(); } |