@@ -7942,9 +7942,10 @@ int wolfSSL_LoadCRLBuffer(WOLFSSL* ssl, const unsigned char* buff,
79427942int wolfSSL_EnableOCSP(WOLFSSL* ssl, int options)
79437943{
79447944 WOLFSSL_ENTER("wolfSSL_EnableOCSP");
7945- SSL_CM_WARNING (ssl);
7946- if (ssl)
7945+ if (ssl) {
7946+ SSL_CM_WARNING (ssl);
79477947 return wolfSSL_CertManagerEnableOCSP(SSL_CM(ssl), options);
7948+ }
79487949 else
79497950 return BAD_FUNC_ARG;
79507951}
@@ -7975,19 +7976,21 @@ int wolfSSL_EnableOCSPStapling(WOLFSSL* ssl)
79757976int wolfSSL_DisableOCSPStapling(WOLFSSL* ssl)
79767977{
79777978 WOLFSSL_ENTER("wolfSSL_DisableOCSPStapling");
7978- SSL_CM_WARNING (ssl);
7979- if (ssl)
7979+ if (ssl) {
7980+ SSL_CM_WARNING (ssl);
79807981 return wolfSSL_CertManagerDisableOCSPStapling(SSL_CM(ssl));
7982+ }
79817983 else
79827984 return BAD_FUNC_ARG;
79837985}
79847986
79857987int wolfSSL_SetOCSP_OverrideURL(WOLFSSL* ssl, const char* url)
79867988{
79877989 WOLFSSL_ENTER("wolfSSL_SetOCSP_OverrideURL");
7988- SSL_CM_WARNING (ssl);
7989- if (ssl)
7990+ if (ssl) {
7991+ SSL_CM_WARNING (ssl);
79907992 return wolfSSL_CertManagerSetOCSPOverrideURL(SSL_CM(ssl), url);
7993+ }
79917994 else
79927995 return BAD_FUNC_ARG;
79937996}
@@ -8601,9 +8604,10 @@ int wolfSSL_EnableCRL(WOLFSSL* ssl, int options)
86018604int wolfSSL_DisableCRL(WOLFSSL* ssl)
86028605{
86038606 WOLFSSL_ENTER("wolfSSL_DisableCRL");
8604- SSL_CM_WARNING (ssl);
8605- if (ssl)
8607+ if (ssl) {
8608+ SSL_CM_WARNING (ssl);
86068609 return wolfSSL_CertManagerDisableCRL(SSL_CM(ssl));
8610+ }
86078611 else
86088612 return BAD_FUNC_ARG;
86098613}
@@ -8612,19 +8616,21 @@ int wolfSSL_DisableCRL(WOLFSSL* ssl)
86128616int wolfSSL_LoadCRL(WOLFSSL* ssl, const char* path, int type, int monitor)
86138617{
86148618 WOLFSSL_ENTER("wolfSSL_LoadCRL");
8615- SSL_CM_WARNING (ssl);
8616- if (ssl)
8619+ if (ssl) {
8620+ SSL_CM_WARNING (ssl);
86178621 return wolfSSL_CertManagerLoadCRL(SSL_CM(ssl), path, type, monitor);
8622+ }
86188623 else
86198624 return BAD_FUNC_ARG;
86208625}
86218626
86228627int wolfSSL_LoadCRLFile(WOLFSSL* ssl, const char* file, int type)
86238628{
86248629 WOLFSSL_ENTER("wolfSSL_LoadCRLFile");
8625- SSL_CM_WARNING (ssl);
8626- if (ssl)
8630+ if (ssl) {
8631+ SSL_CM_WARNING (ssl);
86278632 return wolfSSL_CertManagerLoadCRLFile(SSL_CM(ssl), file, type);
8633+ }
86288634 else
86298635 return BAD_FUNC_ARG;
86308636}
@@ -8634,9 +8640,10 @@ int wolfSSL_LoadCRLFile(WOLFSSL* ssl, const char* file, int type)
86348640int wolfSSL_SetCRL_Cb(WOLFSSL* ssl, CbMissingCRL cb)
86358641{
86368642 WOLFSSL_ENTER("wolfSSL_SetCRL_Cb");
8637- SSL_CM_WARNING (ssl);
8638- if (ssl)
8643+ if (ssl) {
8644+ SSL_CM_WARNING (ssl);
86398645 return wolfSSL_CertManagerSetCRL_Cb(SSL_CM(ssl), cb);
8646+ }
86408647 else
86418648 return BAD_FUNC_ARG;
86428649}
0 commit comments