From 9b83ceee894673ccb3ea0e2d4dbae14a051e820d Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 5 Jul 1995 11:08:33 +0000 Subject: [PATCH] Bug fix in init request. --- zlayer-yaz/zaccess.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/zlayer-yaz/zaccess.c b/zlayer-yaz/zaccess.c index f9e93ad..16d7695 100644 --- a/zlayer-yaz/zaccess.c +++ b/zlayer-yaz/zaccess.c @@ -47,7 +47,10 @@ * Z39.50 API for the Email gateway - YAZ version * * $Log: zaccess.c,v $ - * Revision 1.1 1995/07/03 08:21:31 adam + * Revision 1.2 1995/07/05 11:08:33 adam + * Bug fix in init request. + * + * Revision 1.1 1995/07/03 08:21:31 adam * Yaz layer moved to new sub directory. zaccess aligned with new * YAZ version (1.0b). * @@ -181,6 +184,13 @@ static int send_initreq(struct zass *p, char *auth) req->preferredMessageSize = &p->preferredmessagesize; req->maximumRecordSize = &p->maxrecordsize; + ODR_MASK_SET(req->options, Z_Options_search); + ODR_MASK_SET(req->options, Z_Options_present); + ODR_MASK_SET(req->options, Z_Options_namedResultSets); + + ODR_MASK_SET(req->protocolVersion, Z_ProtocolVersion_1); + ODR_MASK_SET(req->protocolVersion, Z_ProtocolVersion_2); + if (auth) { req->idAuthentication = &idauth; -- 1.7.10.4