mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 18:57:27 +02:00
Remove redundant ifdefs.
This commit is contained in:
@ -1002,7 +1002,6 @@ static int SwapLists(WOLFSSL_CRL* crl)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HAVE_CRL_MONITOR
|
|
||||||
if (crl->monitors[0].path) {
|
if (crl->monitors[0].path) {
|
||||||
ret = LoadCRL(tmp, crl->monitors[0].path, WOLFSSL_FILETYPE_PEM, 0);
|
ret = LoadCRL(tmp, crl->monitors[0].path, WOLFSSL_FILETYPE_PEM, 0);
|
||||||
if (ret != WOLFSSL_SUCCESS) {
|
if (ret != WOLFSSL_SUCCESS) {
|
||||||
@ -1026,7 +1025,6 @@ static int SwapLists(WOLFSSL_CRL* crl)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
if (wc_LockRwLock_Wr(&crl->crlLock) != 0) {
|
if (wc_LockRwLock_Wr(&crl->crlLock) != 0) {
|
||||||
WOLFSSL_MSG("wc_LockRwLock_Wr failed");
|
WOLFSSL_MSG("wc_LockRwLock_Wr failed");
|
||||||
@ -1122,7 +1120,6 @@ static THREAD_RETURN WOLFSSL_THREAD DoMonitor(void* arg)
|
|||||||
fPEM = -1;
|
fPEM = -1;
|
||||||
fDER = -1;
|
fDER = -1;
|
||||||
|
|
||||||
#ifdef HAVE_CRL_MONITOR
|
|
||||||
if (crl->monitors[0].path) {
|
if (crl->monitors[0].path) {
|
||||||
fPEM = open(crl->monitors[0].path, XEVENT_MODE);
|
fPEM = open(crl->monitors[0].path, XEVENT_MODE);
|
||||||
if (fPEM == -1) {
|
if (fPEM == -1) {
|
||||||
@ -1144,7 +1141,6 @@ static THREAD_RETURN WOLFSSL_THREAD DoMonitor(void* arg)
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
if (fPEM != -1)
|
if (fPEM != -1)
|
||||||
EV_SET(&change, fPEM, EVFILT_VNODE, EV_ADD | EV_ENABLE | EV_CLEAR,
|
EV_SET(&change, fPEM, EVFILT_VNODE, EV_ADD | EV_ENABLE | EV_CLEAR,
|
||||||
@ -1256,7 +1252,6 @@ static THREAD_RETURN WOLFSSL_THREAD DoMonitor(void* arg)
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HAVE_CRL_MONITOR
|
|
||||||
if (crl->monitors[0].path) {
|
if (crl->monitors[0].path) {
|
||||||
wd = inotify_add_watch(notifyFd, crl->monitors[0].path, IN_CLOSE_WRITE |
|
wd = inotify_add_watch(notifyFd, crl->monitors[0].path, IN_CLOSE_WRITE |
|
||||||
IN_DELETE);
|
IN_DELETE);
|
||||||
@ -1280,7 +1275,6 @@ static THREAD_RETURN WOLFSSL_THREAD DoMonitor(void* arg)
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
/* signal to calling thread we're setup */
|
/* signal to calling thread we're setup */
|
||||||
@ -1423,7 +1417,6 @@ static THREAD_RETURN WOLFSSL_THREAD DoMonitor(void* arg)
|
|||||||
}
|
}
|
||||||
handlesLen++;
|
handlesLen++;
|
||||||
|
|
||||||
#ifdef HAVE_CRL_MONITOR
|
|
||||||
for (i = 0; i < WOLFSSL_CRL_MONITORS_LEN; i++) {
|
for (i = 0; i < WOLFSSL_CRL_MONITORS_LEN; i++) {
|
||||||
if (crl->monitors[i].path) {
|
if (crl->monitors[i].path) {
|
||||||
handles[handlesLen] = FindFirstChangeNotificationA(
|
handles[handlesLen] = FindFirstChangeNotificationA(
|
||||||
@ -1443,7 +1436,6 @@ static THREAD_RETURN WOLFSSL_THREAD DoMonitor(void* arg)
|
|||||||
handlesLen++;
|
handlesLen++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
if (handlesLen == 1) {
|
if (handlesLen == 1) {
|
||||||
WOLFSSL_MSG("Nothing to watch. Only custom event handle set.");
|
WOLFSSL_MSG("Nothing to watch. Only custom event handle set.");
|
||||||
|
Reference in New Issue
Block a user