diff options
Diffstat (limited to 'tests/set_x509_key_file_ocsp.c')
-rw-r--r-- | tests/set_x509_key_file_ocsp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/set_x509_key_file_ocsp.c b/tests/set_x509_key_file_ocsp.c index 9aae722482..99be433b14 100644 --- a/tests/set_x509_key_file_ocsp.c +++ b/tests/set_x509_key_file_ocsp.c @@ -95,7 +95,7 @@ void doit(void) fp = fopen(certfile, "wb"); if (fp == NULL) fail("error in fopen\n"); - assert(fwrite(server_localhost_ca3_cert_pem, 1, strlen(server_localhost_ca3_cert_pem), fp)>0); + assert(fwrite(server_localhost_ca3_cert_chain_pem, 1, strlen(server_localhost_ca3_cert_chain_pem), fp)>0); assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); fclose(fp); @@ -108,7 +108,7 @@ void doit(void) fp = fopen(certfile, "wb"); if (fp == NULL) fail("error in fopen\n"); - assert(fwrite(server_localhost6_ca3_cert_pem, 1, strlen(server_localhost6_ca3_cert_pem), fp)>0); + assert(fwrite(server_localhost6_ca3_cert_chain_pem, 1, strlen(server_localhost6_ca3_cert_chain_pem), fp)>0); assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); fclose(fp); |