summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-07-30 21:08:11 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-07-30 21:08:11 (EDT)
commit3f3c8f65c9c6cbff1e5963554d25a50d9fce530a (patch)
treefac11f3c44fad61b301555ab5bb26012c6746ade /src
parent5db167ef486c8d49562f46d73f9eaa03f27a8b76 (diff)
s_client: Enable OCSP stapling
Diffstat (limited to 'src')
-rw-r--r--src/s_client.c11
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 ||