X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Ftcpip.c;h=92b3100ef07797668a7cdef014d80a897e8ea406;hp=4425867f3ef2f2b07f3e4b8014395a955de35be1;hb=8dc67a9430644549801c18ec7e3a725e5a4ef782;hpb=c6e47cbbff56f39f6d81b079ebaeac41d793d4d9 diff --git a/src/tcpip.c b/src/tcpip.c index 4425867..92b3100 100644 --- a/src/tcpip.c +++ b/src/tcpip.c @@ -2,7 +2,7 @@ * Copyright (c) 1995-2003, Index Data * See the file LICENSE for details. * - * $Id: tcpip.c,v 1.1 2003-10-27 12:21:35 adam Exp $ + * $Id: tcpip.c,v 1.2 2004-04-28 12:10:53 adam Exp $ */ #include @@ -1098,3 +1098,19 @@ int static tcpip_set_blocking(COMSTACK p, int blocking) p->blocking = blocking; return 1; } + +#if HAVE_OPENSSL_SSL_H +void *cs_get_ssl(COMSTACK cs) +{ + struct tcpip_state *state; + if (!cs || cs->type != ssl_type) + return 0; + state = (struct tcpip_state *) cs->cprivate; + return state->ssl; +} +#else +void *cs_get_ssl(COMSTACK cs) +{ + return 0; +} +#endif