Make ssl_check_error static becuase it's a private function.
Define function ssl_type always - also in case SSL is disabled - and
make it return 0 (NULL ptr).
}
-#if ENABLE_SSL
-
COMSTACK ssl_type(int s, int flags, int protocol, void *vp)
{
+#if !ENABLE_SSL
+ return 0;
+#else
tcpip_state *sp;
COMSTACK p;
/* note: we don't handle already opened socket in SSL mode - yet */
return p;
+#endif
}
-int ssl_check_error(COMSTACK h, tcpip_state *sp, int res)
+#if !ENABLE_SSL
+static int ssl_check_error(COMSTACK h, tcpip_state *sp, int res)
{
#if HAVE_OPENSSL_SSL_H
int err = SSL_get_error(sp->ssl, res);