@@ -1002,7 +1002,6 @@ static int SwapLists(WOLFSSL_CRL* crl)
10021002 return -1 ;
10031003 }
10041004
1005- #ifdef HAVE_CRL_MONITOR
10061005 if (crl -> monitors [0 ].path ) {
10071006 ret = LoadCRL (tmp , crl -> monitors [0 ].path , WOLFSSL_FILETYPE_PEM , 0 );
10081007 if (ret != WOLFSSL_SUCCESS ) {
@@ -1026,7 +1025,6 @@ static int SwapLists(WOLFSSL_CRL* crl)
10261025 return -1 ;
10271026 }
10281027 }
1029- #endif
10301028
10311029 if (wc_LockRwLock_Wr (& crl -> crlLock ) != 0 ) {
10321030 WOLFSSL_MSG ("wc_LockRwLock_Wr failed" );
@@ -1122,7 +1120,6 @@ static THREAD_RETURN WOLFSSL_THREAD DoMonitor(void* arg)
11221120 fPEM = -1 ;
11231121 fDER = -1 ;
11241122
1125- #ifdef HAVE_CRL_MONITOR
11261123 if (crl -> monitors [0 ].path ) {
11271124 fPEM = open (crl -> monitors [0 ].path , XEVENT_MODE );
11281125 if (fPEM == -1 ) {
@@ -1144,7 +1141,6 @@ static THREAD_RETURN WOLFSSL_THREAD DoMonitor(void* arg)
11441141 return NULL ;
11451142 }
11461143 }
1147- #endif
11481144
11491145 if (fPEM != -1 )
11501146 EV_SET (& change , fPEM , EVFILT_VNODE , EV_ADD | EV_ENABLE | EV_CLEAR ,
@@ -1256,7 +1252,6 @@ static THREAD_RETURN WOLFSSL_THREAD DoMonitor(void* arg)
12561252 return NULL ;
12571253 }
12581254
1259- #ifdef HAVE_CRL_MONITOR
12601255 if (crl -> monitors [0 ].path ) {
12611256 wd = inotify_add_watch (notifyFd , crl -> monitors [0 ].path , IN_CLOSE_WRITE |
12621257 IN_DELETE );
@@ -1280,7 +1275,6 @@ static THREAD_RETURN WOLFSSL_THREAD DoMonitor(void* arg)
12801275 return NULL ;
12811276 }
12821277 }
1283- #endif
12841278
12851279
12861280 /* signal to calling thread we're setup */
@@ -1423,7 +1417,6 @@ static THREAD_RETURN WOLFSSL_THREAD DoMonitor(void* arg)
14231417 }
14241418 handlesLen ++ ;
14251419
1426- #ifdef HAVE_CRL_MONITOR
14271420 for (i = 0 ; i < WOLFSSL_CRL_MONITORS_LEN ; i ++ ) {
14281421 if (crl -> monitors [i ].path ) {
14291422 handles [handlesLen ] = FindFirstChangeNotificationA (
@@ -1443,7 +1436,6 @@ static THREAD_RETURN WOLFSSL_THREAD DoMonitor(void* arg)
14431436 handlesLen ++ ;
14441437 }
14451438 }
1446- #endif
14471439
14481440 if (handlesLen == 1 ) {
14491441 WOLFSSL_MSG ("Nothing to watch. Only custom event handle set." );
0 commit comments