diff options
Diffstat (limited to 'tests/set_x509_key_mem.c')
-rw-r--r-- | tests/set_x509_key_mem.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/set_x509_key_mem.c b/tests/set_x509_key_mem.c index e3d5e24f94..5bb1145117 100644 --- a/tests/set_x509_key_mem.c +++ b/tests/set_x509_key_mem.c @@ -89,7 +89,7 @@ void doit(void) gnutls_certificate_allocate_credentials(&x509_cred); gnutls_certificate_set_flags(x509_cred, GNUTLS_CERTIFICATE_SKIP_KEY_CERT_MATCH); - ret = gnutls_certificate_set_x509_key_mem(x509_cred, &server_ca3_localhost6_cert, + ret = gnutls_certificate_set_x509_key_mem(x509_cred, &server_ca3_localhost6_cert_chain, &server_ca3_key, GNUTLS_X509_FMT_PEM); if (ret < 0) { @@ -97,7 +97,7 @@ void doit(void) exit(1); } - ret = gnutls_certificate_set_x509_key_mem(x509_cred, &server_ca3_localhost_cert, + ret = gnutls_certificate_set_x509_key_mem(x509_cred, &server_ca3_localhost_cert_chain, &server_ca3_key, GNUTLS_X509_FMT_PEM); if (ret < 0) { |