summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlexander Barton <alex@barton.de>2014-03-16 22:28:37 +0100
committerAlexander Barton <alex@barton.de>2014-03-16 22:31:23 +0100
commit6238196dac6cab9dae0b4d01190a7fad307d5a93 (patch)
treec0e087f18d93227d9019c83b9b851b17a211013b
parent43fb18f2f5a506c4d78967e4b6e961b7339c98dc (diff)
downloadngircd-6238196dac6cab9dae0b4d01190a7fad307d5a93.tar.gz
ngircd-6238196dac6cab9dae0b4d01190a7fad307d5a93.zip
Don't define SSL_Want{Read|Write}() when SSL is disabled
Not even call the "dummy" functions.
-rw-r--r--src/ngircd/conn.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/ngircd/conn.c b/src/ngircd/conn.c
index 6056355f..fad34357 100644
--- a/src/ngircd/conn.c
+++ b/src/ngircd/conn.c
@@ -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);
 			}