X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Ftcpip.c;h=6cb4bbeceab7621e3dc0f0dec0a465dc3d400d54;hb=29ae3278722e4a61905cc5d330fc2d286d2e7016;hp=ae070d79671d510f7dc6b2e14bdadc997454fa2b;hpb=fd13a3c5b8cecdd1327f5db615387c8c0e691ba1;p=yaz-moved-to-github.git diff --git a/src/tcpip.c b/src/tcpip.c index ae070d7..6cb4bbe 100644 --- a/src/tcpip.c +++ b/src/tcpip.c @@ -241,10 +241,11 @@ COMSTACK yaz_tcpip_create(int s, int flags, int protocol, } -#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; @@ -260,9 +261,11 @@ COMSTACK ssl_type(int s, int flags, int protocol, void *vp) /* 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);