diff options
-rw-r--r-- | src/s_client.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/s_client.c b/src/s_client.c index 2d1d28a..37d59fb 100644 --- a/src/s_client.c +++ b/src/s_client.c @@ -322,6 +322,17 @@ s_client(int argc, char **argv) (void) servername; if ( +#ifdef HAVE_CERTIFICATE_STATUS_REQUEST_V2 + wolfSSL_CTX_EnableOCSPStapling(ctx) != WOLFSSL_SUCCESS + || wolfSSL_CTX_UseOCSPStaplingV2(ctx, + WOLFSSL_CSR2_OCSP_MULTI, 0) != + WOLFSSL_SUCCESS || +#endif +#ifdef HAVE_CERTIFICATE_STATUS_REQUEST + wolfSSL_CTX_EnableOCSPStapling(ctx) != WOLFSSL_SUCCESS + || wolfSSL_CTX_UseOCSPStapling(ctx, WOLFSSL_CSR_OCSP, 0) + != WOLFSSL_SUCCESS || +#endif #ifdef HAVE_OCSP wolfSSL_CTX_EnableOCSP(ctx, WOLFSSL_OCSP_CHECKALL) != WOLFSSL_SUCCESS || |