gnutls_certificate_set_flags(xcred, GNUTLS_CERTIFICATE_API_V2);
+ /* set cert with localhost name */
certfile1 = get_tmpname(certname1);
- /* set cert with localhost name */
fp = fopen(certfile1, "wb");
if (fp == NULL)
fail("error in fopen\n");
gnutls_certificate_set_flags(xcred, GNUTLS_CERTIFICATE_API_V2);
+ /* set cert with localhost name */
certfile1 = get_tmpname(certname1);
- /* set cert with localhost name */
fp = fopen(certfile1, "wb");
if (fp == NULL)
fail("error in fopen\n");
fail("set_x509_key_file failed: %s\n", gnutls_strerror(ret));
index1 = ret;
+ /* set cert with localhost6 name */
certfile2 = get_tmpname(certname2);
fp = fopen(certfile2, "wb");
#include "utils.h"
/* Tests whether we can send and receive multiple OCSP responses
- * one for each certificate in a chain under TLS 1.3.
+ * one for each certificate in a chain under TLS 1.3, but unrelated
+ * to these certificate (using the GNUTLS_CERTIFICATE_SKIP_OCSP_RESPONSE_CHECK
+ * flag).
*/
static time_t mytime(time_t * t)
ret = gnutls_ocsp_status_request_get2(client, 2, &response);
if (ret != GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE) {
- fail("found response in index 1: %s\n", gnutls_strerror(ret));
+ fail("found response in index 2: %s\n", gnutls_strerror(ret));
}
gnutls_bye(client, GNUTLS_SHUT_WR);