X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Ftcpip.c;h=890dcc402f4d269afc79746566c0d8e6d4c4ff8e;hb=86ed958b7fd25d668f426da532a2a5c0a78bc9ef;hp=dae6c778c81b64c30c327087e79072823ec073f2;hpb=e12cd77c1050b5722c19f9e6d312c99e14565efe;p=yaz-moved-to-github.git diff --git a/src/tcpip.c b/src/tcpip.c index dae6c77..890dcc4 100644 --- a/src/tcpip.c +++ b/src/tcpip.c @@ -2,7 +2,11 @@ * Copyright (c) 1995-2004, Index Data * See the file LICENSE for details. * - * $Id: tcpip.c,v 1.7 2004-05-03 09:00:50 adam Exp $ + * $Id: tcpip.c,v 1.11 2004-10-15 00:19:01 adam Exp $ + */ +/** + * \file tcpip.c + * \brief Implements TCP/IP + SSL COMSTACK. */ #include @@ -776,7 +780,7 @@ int tcpip_get(COMSTACK h, char **buf, int *bufsize) #endif } else if (!res) - return 0; + return hasread; hasread += res; } TRC (fprintf (stderr, " Out of read loop with hasread=%d, berlen=%d\n", @@ -1131,7 +1135,7 @@ void *cs_get_ssl(COMSTACK cs) return sp->ssl; } -int cs_set_ssl_certf(COMSTACK cs, const char *fname) +int cs_set_ssl_certificate_file(COMSTACK cs, const char *fname) { struct tcpip_state *sp; if (!cs || cs->type != ssl_type) @@ -1179,7 +1183,7 @@ int cs_get_peer_certificate_x509(COMSTACK cs, char **buf, int *len) return 0; } -int cs_set_ssl_certf(COMSTACK cs, const char *fname) +int cs_set_ssl_certificate_file(COMSTACK cs, const char *fname) { return 0; }