Possible compatibility problems with earlier versions marked with '*'.
+--- 1.8.5 2002/XX/XX
+
+New option for YAZ client, -u <auth>, that sets authentication.
+
ZOOM fix: error information only cleared for Bib-diagnostics (not
fatal errors, like connection failed, etc).
/*
- * Copyright (c) 1995-2001, Index Data
+ * Copyright (c) 1995-2002, Index Data
* See the file LICENSE for details.
*
- * $Id: client.c,v 1.133 2001-11-22 11:04:48 adam Exp $
+ * $Id: client.c,v 1.134 2002-01-11 20:17:03 adam Exp $
*/
#include <stdio.h>
{
char *prog = *argv;
char *open_command = 0;
+ char *auth_command = 0;
char *arg;
int ret;
- while ((ret = options("c:a:m:v:p:", argv, argc, &arg)) != -2)
+ while ((ret = options("c:a:m:v:p:u:", argv, argc, &arg)) != -2)
{
switch (ret)
{
case 'p':
yazProxy=strdup(arg);
break;
+ case 'u':
+ if (!auth_command)
+ {
+ auth_command = xmalloc (strlen(arg)+6);
+ strcpy (auth_command, "auth ");
+ strcat (auth_command, arg);
+ }
+ break;
case 'v':
yaz_log_init (yaz_log_mask_str(arg), "", NULL);
break;
default:
fprintf (stderr, "Usage: %s [-m <marclog>] [ -a <apdulog>] "
- "[-c cclfields] [-p <proxy-addr>] [<server-addr>]\n",
+ "[-c cclfields]\n [-p <proxy-addr>] [-u <auth>] "
+ "[<server-addr>]\n",
prog);
exit (1);
}
}
initialize();
+ if (auth_command)
+ {
+#ifdef HAVE_GETTIMEOFDAY
+ gettimeofday (&tv_start, 0);
+#endif
+ process_cmd_line (auth_command);
+#if HAVE_READLINE_HISTORY_H
+ add_history(auth_command);
+#endif
+ xfree(auth_command);
+ }
if (open_command)
{
#ifdef HAVE_GETTIMEOFDAY
dnl YAZ Toolkit, Index Data 1994-2001
dnl See the file LICENSE for details.
-dnl $Id: configure.in,v 1.56 2001-11-19 20:43:39 adam Exp $
+dnl $Id: configure.in,v 1.57 2002-01-11 20:17:03 adam Exp $
AC_INIT(include/yaz/yaz-version.h)
-AM_INIT_AUTOMAKE(yaz, 1.8.4)
+AM_INIT_AUTOMAKE(yaz, 1.8.5)
dnl
AC_SUBST(READLINE_LIBS)
dnl ------ Checking programs
YAZ_VERSION=$(shell date -r$(YAZSRCDIR)/CVS +"CVS%Y%m%d")
else
YAZSRCDIR=$(shell pwd)
-YAZ_VERSION=1.8.4
+YAZ_VERSION=1.8.5
endif
configure: stamp-configure
/*
* Current software version.
*
- * $Id: yaz-version.h,v 1.11 2001-11-19 20:43:39 adam Exp $
+ * $Id: yaz-version.h,v 1.12 2002-01-11 20:17:03 adam Exp $
*/
#ifndef YAZ_VERSION
-#define YAZ_VERSION "1.8.4"
+#define YAZ_VERSION "1.8.5"
#include <yaz/yaz-date.h>
#ifdef WIN32
VALUE "Comments", "Z39.50 C Library\0"
VALUE "CompanyName", "Index Data\0"
VALUE "FileDescription", "YAZ Toolkit\0"
- VALUE "FileVersion", "1, 8, 4, 0\0"
+ VALUE "FileVersion", "1, 8, 5, 0\0"
VALUE "InternalName", "YAZ\0"
VALUE "LegalCopyright", "Copyright © 1995-2002 Index Data\0"
VALUE "LegalTrademarks", "\0"
VALUE "OriginalFilename", "yaz.rc\0"
VALUE "PrivateBuild", "\0"
VALUE "ProductName", "Index Data YAZ Toolkit\0"
- VALUE "ProductVersion", "1, 8, 4, 0\0"
+ VALUE "ProductVersion", "1, 8, 5, 0\0"
VALUE "SpecialBuild", "\0"
END
END
Name: yaz
-Version: 1.8.4
+Version: 1.8.5
Release: 1
Copyright: YAZ License
Group: Development/Libraries