mirror of
https://github.com/osmarks/ngircd.git
synced 2025-11-09 02:03:00 +00:00
Don't define SSL_Want{Read|Write}() when SSL is disabled
Not even call the "dummy" functions.
This commit is contained in:
@@ -809,16 +809,6 @@ SSL_WantWrite(const CONNECTION *c)
|
|||||||
return false;
|
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
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@@ -881,8 +871,10 @@ Conn_Handler(void)
|
|||||||
if (wdatalen > 0)
|
if (wdatalen > 0)
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
|
#ifdef SSL_SUPPORT
|
||||||
if (SSL_WantRead(&My_Connections[i]))
|
if (SSL_WantRead(&My_Connections[i]))
|
||||||
continue;
|
continue;
|
||||||
|
#endif
|
||||||
io_event_add(My_Connections[i].sock,
|
io_event_add(My_Connections[i].sock,
|
||||||
IO_WANTWRITE);
|
IO_WANTWRITE);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user