Don't define SSL_Want{Read|Write}() when SSL is disabled
Not even call the "dummy" functions.
This commit is contained in:
parent
43fb18f2f5
commit
6238196dac
|
@ -809,16 +809,6 @@ SSL_WantWrite(const CONNECTION *c)
|
|||
return false;
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
static inline bool
|
||||
SSL_WantRead(UNUSED const CONNECTION *c)
|
||||
{ return false; }
|
||||
|
||||
static inline bool
|
||||
SSL_WantWrite(UNUSED const CONNECTION *c)
|
||||
{ return false; }
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
@ -881,8 +871,10 @@ Conn_Handler(void)
|
|||
if (wdatalen > 0)
|
||||
#endif
|
||||
{
|
||||
#ifdef SSL_SUPPORT
|
||||
if (SSL_WantRead(&My_Connections[i]))
|
||||
continue;
|
||||
#endif
|
||||
io_event_add(My_Connections[i].sock,
|
||||
IO_WANTWRITE);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue