From 6d6ca56e4e571ce494cf1b048c84ad0dc25a65a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moise=CC=81s=20Guimara=CC=83es?= Date: Mon, 16 Nov 2015 15:31:50 -0300 Subject: [PATCH] fixes SendCertificateStatus() loading the CA in the server side to build the OCSP request properly. --- examples/server/server.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/server/server.c b/examples/server/server.c index 9e7dd230a..56a0c680d 100644 --- a/examples/server/server.c +++ b/examples/server/server.c @@ -726,7 +726,10 @@ THREAD_RETURN CYASSL_THREAD server_test(void* args) } #endif #if defined(HAVE_CERTIFICATE_STATUS_REQUEST) - wolfSSL_CTX_EnableOCSPStapling(ctx); + if (wolfSSL_CTX_EnableOCSPStapling(ctx) != SSL_SUCCESS) + err_sys("can't enable OCSP Stapling Certificate Manager"); + if (SSL_CTX_load_verify_locations(ctx, caCert, 0) != SSL_SUCCESS) + err_sys("can't load ca file, Please run from wolfSSL home dir"); #endif #ifdef HAVE_PK_CALLBACKS if (pkCallbacks)