Home
last modified time | relevance | path

Searched refs:ocsp_staple (Results 1 – 4 of 4) sorted by relevance

/openbsd/src/regress/lib/libtls/keypair/
Dkeypairtest.c88 const uint8_t *cert, *key, *ocsp_staple; in do_keypair_tests() local
96 load_file(ocsp_staple_file, &ocsp_staple, &ocsp_staple_len); in do_keypair_tests()
123 if (compare_mem("ocsp staple", ocsp_staple, ocsp_staple_len, in do_keypair_tests()
124 kp->ocsp_staple, kp->ocsp_staple_len) == -1) in do_keypair_tests()
148 if (tls_keypair_set_ocsp_staple_mem(kp, &err, ocsp_staple, in do_keypair_tests()
158 if (compare_mem("ocsp staple", ocsp_staple, ocsp_staple_len, in do_keypair_tests()
159 kp->ocsp_staple, kp->ocsp_staple_len) == -1) in do_keypair_tests()
188 free((uint8_t *)ocsp_staple); in do_keypair_tests()
/openbsd/src/lib/libtls/
Dtls_ocsp.c355 unsigned char *ocsp_staple = NULL; in tls_ocsp_stapling_cb() local
361 if (ctx->keypair == NULL || ctx->keypair->ocsp_staple == NULL || in tls_ocsp_stapling_cb()
365 if ((ocsp_staple = malloc(ctx->keypair->ocsp_staple_len)) == NULL) in tls_ocsp_stapling_cb()
368 memcpy(ocsp_staple, ctx->keypair->ocsp_staple, in tls_ocsp_stapling_cb()
371 if (SSL_set_tlsext_status_ocsp_resp(ctx->ssl_conn, ocsp_staple, in tls_ocsp_stapling_cb()
378 free(ocsp_staple); in tls_ocsp_stapling_cb()
Dtls_keypair.c108 &keypair->ocsp_staple, &keypair->ocsp_staple_len); in tls_keypair_set_ocsp_staple_file()
115 return tls_set_mem(&keypair->ocsp_staple, &keypair->ocsp_staple_len, in tls_keypair_set_ocsp_staple_mem()
128 free(keypair->ocsp_staple); in tls_keypair_free()
Dtls_internal.h61 char *ocsp_staple; member