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);
YAZ_EXPORT void cs_set_max_recv_bytes(COMSTACK cs, int max_recv_bytes);
-YAZ_EXPORT int completeWAIS(const char *buf, int len);
-
YAZ_EXPORT void cs_print_session_info(COMSTACK cs);
/*
PROTO_NOP=0,
PROTO_Z3950,
PROTO_SR,
- PROTO_GENERAL,
- PROTO_WAIS,
PROTO_HTTP
} oid_proto;
odr_seq.c odr_oct.c ber_oct.c odr_bit.c ber_bit.c odr_oid.c \
ber_oid.c odr_use.c odr_choice.c odr_any.c ber_any.c odr.c odr_mem.c \
dumpber.c odr_enum.c odr-priv.h \
- comstack.c tcpip.c waislen.c unix.c \
+ comstack.c tcpip.c unix.c \
prt-ext.c \
ill-get.c \
zget.c yaz-ccl.c diag-entry.c diag-entry.h \
sp->altbuf = 0;
sp->altsize = sp->altlen = 0;
sp->towrite = sp->written = -1;
- if (protocol == PROTO_WAIS)
- sp->complete = completeWAIS;
- else
- sp->complete = cs_complete_auto;
+ sp->complete = cs_complete_auto;
sp->connect_request_buf = 0;
sp->connect_request_len = 0;
state->altbuf = 0;
state->altsize = state->altlen = 0;
state->towrite = state->written = -1;
- if (protocol == PROTO_WAIS)
- state->complete = completeWAIS;
- else
- state->complete = cs_complete_auto;
+ state->complete = cs_complete_auto;
p->timeout = COMSTACK_DEFAULT_TIMEOUT;
TRC(fprintf(stderr, "Created new UNIX comstack\n"));
+++ /dev/null
-/* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2013 Index Data
- * See the file LICENSE for details.
- */
-/**
- * \file waislen.c
- * \brief Implements WAIS package handling
- */
-#if HAVE_CONFIG_H
-#include <config.h>
-#endif
-
-#include <stdio.h>
-#include <yaz/comstack.h>
-/*
- * Return length of WAIS package or 0
- */
-int completeWAIS(const char *buf, int len)
-{
- int i, lval = 0;
-
- if (len < 25)
- return 0;
- if (*buf != '0')
- return 0;
- /* calculate length */
- for (i = 0; i < 10; i++)
- lval = lval * 10 + (buf[i] - '0');
- lval += 25;
- if (len >= lval)
- return lval;
- return 0;
-}
-/*
- * Local variables:
- * c-basic-offset: 4
- * c-file-style: "Stroustrup"
- * indent-tabs-mode: nil
- * End:
- * vim: shiftwidth=4 tabstop=8 expandtab
- */
-
$(OBJDIR)\ccl_stop_words.obj \
$(OBJDIR)\comstack.obj \
$(OBJDIR)\tcpip.obj \
- $(OBJDIR)\waislen.obj \
$(OBJDIR)\ber_any.obj \
$(OBJDIR)\ber_bit.obj \
$(OBJDIR)\ber_bool.obj \