@@ -7942,19 +7942,21 @@ 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}
79517952
79527953int wolfSSL_DisableOCSP(WOLFSSL* ssl)
79537954{
79547955 WOLFSSL_ENTER("wolfSSL_DisableOCSP");
7955- SSL_CM_WARNING (ssl);
7956- if (ssl)
7956+ if (ssl) {
7957+ SSL_CM_WARNING (ssl);
79577958 return wolfSSL_CertManagerDisableOCSP(SSL_CM(ssl));
7959+ }
79587960 else
79597961 return BAD_FUNC_ARG;
79607962}
@@ -7963,29 +7965,32 @@ int wolfSSL_DisableOCSP(WOLFSSL* ssl)
79637965int wolfSSL_EnableOCSPStapling(WOLFSSL* ssl)
79647966{
79657967 WOLFSSL_ENTER("wolfSSL_EnableOCSPStapling");
7966- SSL_CM_WARNING (ssl);
7967- if (ssl)
7968+ if (ssl) {
7969+ SSL_CM_WARNING (ssl);
79687970 return wolfSSL_CertManagerEnableOCSPStapling(SSL_CM(ssl));
7971+ }
79697972 else
79707973 return BAD_FUNC_ARG;
79717974}
79727975
79737976int wolfSSL_DisableOCSPStapling(WOLFSSL* ssl)
79747977{
79757978 WOLFSSL_ENTER("wolfSSL_DisableOCSPStapling");
7976- SSL_CM_WARNING (ssl);
7977- if (ssl)
7979+ if (ssl) {
7980+ SSL_CM_WARNING (ssl);
79787981 return wolfSSL_CertManagerDisableOCSPStapling(SSL_CM(ssl));
7982+ }
79797983 else
79807984 return BAD_FUNC_ARG;
79817985}
79827986
79837987int wolfSSL_SetOCSP_OverrideURL(WOLFSSL* ssl, const char* url)
79847988{
79857989 WOLFSSL_ENTER("wolfSSL_SetOCSP_OverrideURL");
7986- SSL_CM_WARNING (ssl);
7987- if (ssl)
7990+ if (ssl) {
7991+ SSL_CM_WARNING (ssl);
79887992 return wolfSSL_CertManagerSetOCSPOverrideURL(SSL_CM(ssl), url);
7993+ }
79897994 else
79907995 return BAD_FUNC_ARG;
79917996}
@@ -7995,8 +8000,8 @@ int wolfSSL_SetOCSP_Cb(WOLFSSL* ssl,
79958000 CbOCSPIO ioCb, CbOCSPRespFree respFreeCb, void* ioCbCtx)
79968001{
79978002 WOLFSSL_ENTER("wolfSSL_SetOCSP_Cb");
7998- SSL_CM_WARNING(ssl);
79998003 if (ssl) {
8004+ SSL_CM_WARNING(ssl);
80008005 ssl->ocspIOCtx = ioCbCtx; /* use SSL specific ioCbCtx */
80018006 return wolfSSL_CertManagerSetOCSP_Cb(SSL_CM(ssl),
80028007 ioCb, respFreeCb, NULL);
@@ -8587,9 +8592,10 @@ int wolfSSL_trust_peer_cert(WOLFSSL* ssl, const char* file, int type)
85878592int wolfSSL_EnableCRL(WOLFSSL* ssl, int options)
85888593{
85898594 WOLFSSL_ENTER("wolfSSL_EnableCRL");
8590- SSL_CM_WARNING (ssl);
8591- if (ssl)
8595+ if (ssl) {
8596+ SSL_CM_WARNING (ssl);
85928597 return wolfSSL_CertManagerEnableCRL(SSL_CM(ssl), options);
8598+ }
85938599 else
85948600 return BAD_FUNC_ARG;
85958601}
@@ -8598,9 +8604,10 @@ int wolfSSL_EnableCRL(WOLFSSL* ssl, int options)
85988604int wolfSSL_DisableCRL(WOLFSSL* ssl)
85998605{
86008606 WOLFSSL_ENTER("wolfSSL_DisableCRL");
8601- SSL_CM_WARNING (ssl);
8602- if (ssl)
8607+ if (ssl) {
8608+ SSL_CM_WARNING (ssl);
86038609 return wolfSSL_CertManagerDisableCRL(SSL_CM(ssl));
8610+ }
86048611 else
86058612 return BAD_FUNC_ARG;
86068613}
@@ -8609,19 +8616,21 @@ int wolfSSL_DisableCRL(WOLFSSL* ssl)
86098616int wolfSSL_LoadCRL(WOLFSSL* ssl, const char* path, int type, int monitor)
86108617{
86118618 WOLFSSL_ENTER("wolfSSL_LoadCRL");
8612- SSL_CM_WARNING (ssl);
8613- if (ssl)
8619+ if (ssl) {
8620+ SSL_CM_WARNING (ssl);
86148621 return wolfSSL_CertManagerLoadCRL(SSL_CM(ssl), path, type, monitor);
8622+ }
86158623 else
86168624 return BAD_FUNC_ARG;
86178625}
86188626
86198627int wolfSSL_LoadCRLFile(WOLFSSL* ssl, const char* file, int type)
86208628{
86218629 WOLFSSL_ENTER("wolfSSL_LoadCRLFile");
8622- SSL_CM_WARNING (ssl);
8623- if (ssl)
8630+ if (ssl) {
8631+ SSL_CM_WARNING (ssl);
86248632 return wolfSSL_CertManagerLoadCRLFile(SSL_CM(ssl), file, type);
8633+ }
86258634 else
86268635 return BAD_FUNC_ARG;
86278636}
@@ -8631,9 +8640,10 @@ int wolfSSL_LoadCRLFile(WOLFSSL* ssl, const char* file, int type)
86318640int wolfSSL_SetCRL_Cb(WOLFSSL* ssl, CbMissingCRL cb)
86328641{
86338642 WOLFSSL_ENTER("wolfSSL_SetCRL_Cb");
8634- SSL_CM_WARNING (ssl);
8635- if (ssl)
8643+ if (ssl) {
8644+ SSL_CM_WARNING (ssl);
86368645 return wolfSSL_CertManagerSetCRL_Cb(SSL_CM(ssl), cb);
8646+ }
86378647 else
86388648 return BAD_FUNC_ARG;
86398649}
0 commit comments