SSL comstack now uses yaz.pem certificate file on server side
by default. Certificate filename can be configured by calling
-comstack function cs_set_ssl_cert before cs_bind is used.
+comstack function cs_set_ssl_certificate_file before cs_bind is used.
Fix bug regarding multiple calls to ZOOM_connection_connect.
* LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
* OF THIS SOFTWARE.
*
- * $Id: comstack.h,v 1.15 2004-04-30 19:10:35 adam Exp $
+ * $Id: comstack.h,v 1.16 2004-05-10 10:47:04 adam Exp $
*/
#ifndef COMSTACK_H
YAZ_EXPORT int cs_complete_auto(const unsigned char *buf, int len);
YAZ_EXPORT void *cs_get_ssl(COMSTACK cs);
YAZ_EXPORT int cs_set_ssl_ctx(COMSTACK cs, void *ctx);
-YAZ_EXPORT int cs_set_ssl_certf(COMSTACK cs, const char *fname);
+YAZ_EXPORT int cs_set_ssl_certificate_file(COMSTACK cs, const char *fname);
YAZ_EXPORT int cs_get_peer_certificate_x509(COMSTACK cs, char **buf, int *len);
/*
* NT threaded server code by
* Chas Woodfield, Fretwell Downing Informatics.
*
- * $Id: statserv.c,v 1.7 2004-04-30 19:10:35 adam Exp $
+ * $Id: statserv.c,v 1.8 2004-05-10 10:47:04 adam Exp $
*/
#include <stdio.h>
return -1;
}
if (*control_block.cert_fname)
- cs_set_ssl_certf(l, control_block.cert_fname);
+ cs_set_ssl_certificate_file(l, control_block.cert_fname);
if (cs_bind(l, ap, CS_SERVER) < 0)
{
* 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.8 2004-05-10 10:47:04 adam Exp $
*/
#include <stdio.h>
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)