Wykres commitów

23 Commity (de3256b53446efc5621f40936a511e6712bacb34)

Autor SHA1 Wiadomość Data
Henning Geinitz 749ceed2e6 Added a switch to disable libusb. Removed switch to enable ipv6
uncondinionally.  Check for sys/poll.h.
2003-04-02 16:21:07 +00:00
Henning Geinitz 966e3536da Include poll.h only if new saned code is used. Fixes compilation on
OS/2. Patch from Julien BLACHE <jb@jblache.org>.
2003-03-31 16:15:10 +00:00
Henning Geinitz 088281c4e1 Added support for IPv6. Updated manpages. Patch from Julien BLACHE
<jb@jblache.org>.
2003-03-30 19:07:18 +00:00
Henning Geinitz e3ceee04be Check the IP address of the remote host before any communication occurs.
Check for a errors before trsuting values that came from remote.  Make sure
that strings are 0-terminated.
2003-02-09 11:23:41 +00:00
Henning Geinitz 54faada982 Fixed severe bug in saned that allowed a remote frontend to crash saned (null
pointer derefence) if no scanners are connected.
2003-01-29 17:41:53 +00:00
Henning Geinitz 8088d3e59b Print version number. 2003-01-04 15:24:13 +00:00
Henning Geinitz 4e2aa9185e Use inet_pton() instead of inet_aton() to avoid compilation errors on e.g.
OS/2.
Henning Meier-Geinitz <henning@meier-geinitz.de>
2002-02-14 19:36:25 +00:00
Henning Geinitz 2e3dc0b7b2 DNS queries for remote hosts are only done if necessary. It's now possible
to use "+" without hosts/DNS entries for the connecting host.
Henning Meier-Geinitz <henning@meier-geinitz.de>
2002-02-12 22:09:01 +00:00
Henning Geinitz bfdbda4505 Check that the IP addresses of the peer are the same for control and
data connections. Exit, if this is not the case. Changed some debug
levels.
Henning Meier-Geinitz <henning@meier-geinitz.de>
2002-01-11 21:02:11 +00:00
Henning Geinitz 565aaa0639 Changed access control (function check host). Now IP addresses
are used for comparison, not host names as before. It's possible to
put hostnames, FQDNs and IP addresses into saned.conf.
Limitations: Only the first IP address in struct hostent is checked.
IPv6 is untested. The change is based on a patch by Petter
Reinholdtsen <pere@hungry.com>.
Removed isfdtype to avoid compilation problems. Added more
debug output. Print function name in every DBG statement.
Updated manual pages and saned.conf.
2002-01-06 21:01:05 +00:00
Henning Geinitz 3ce0c90069 Changed debug handling. All debug messages use DBG now. If in inetd mode or dameon mode with "-s",
the messages are printed to syslog as before. If option "-d" is used,
the mesages are printed to stderr. Updated manual page.
Henning Meier-Geinitz <henning@meier-geinitz.de>
2002-01-05 12:54:34 +00:00
Henning Geinitz aa8f8dbadd Fixed sigpipe race in connection with select_fd. Added debug output.
Henning Meier-Geinitz <henning@meier-geinitz.de>
2001-12-30 21:17:56 +00:00
Henning Geinitz eec168cdc1 More debug output. Used DBG instead of fprintf/perror.
Fixed some formatting issues.
Henning Meier-Geinitz <henning@meier-geinitz.de>
2001-10-12 19:56:08 +00:00
Henning Geinitz 3e72ff5b2f Increase timeout to one hour.
Henning Meier-Geinitz <henning@meier-geinitz.de>
2001-06-04 17:06:39 +00:00
Oliver Rauch 13857301a9 2001-05-20 Oliver Rauch <Oliver.Rauch@rauch-domain.de>
* removed a bug in saned (patch by Matthias Trute <mtrute@topmail.de>)
          calculation of the reader buffer index was not correct:
             if (reader >= sizeof (buf))
          -    reader = 0;
          +    reader -= sizeof(buf);
2001-05-20 21:00:48 +00:00
Henning Geinitz 610ee824da Fixed some memory leaks. Fixed some warnings.
Some reformating. Used #include "../include/sane/...".
Henning Meier-Geinitz <henning@meier-geinitz.de>
2001-05-13 16:03:43 +00:00
Jochen Eisinger c49187b579 2001-03-10 Jochen Eisinger <jochen.eisinger@gmx.net>
* frontend/saned.c: fixed bug that allowed access to a scanner
	  without being prompted for a password
2001-03-10 15:31:46 +00:00
Jochen Eisinger 201b9d662d 2000-11-24 Jochen Eisinger <jochen.eisinger@gmx.net>
* doc/scanimage.man doc/saned.man: updated description of password
	  file
	* sanei/sanei_auth.c frontend/saned.c frontend/scanimage.c: replaced
	  index() by strchr(). Changed style of password file
	* backend/net.c: the net backend now prepends net:host: to the
	  resource before calling the auth_callback function
2000-11-24 15:05:22 +00:00
Jochen Eisinger 3e4ae9dce7 2000-11-20 Jochen Eisinger <jochen.eisinger@gmx.net>
* configure configure.in: Added test for /dev/urandom and
	  index() in string.h or strings.h
	* backend/net.c: Fixed SANE_NET_AUTHORIZE call handling
	* doc/net.tex: Clarified definition of SANE_NET_AUTHORIZE, added
	  definition of MD5 authorization
	* doc/sane.tex: Upgraded to version 1.0.2, changed definition of
	  SANE_MAX_USERNAME_LEN & SANE_MAX_PASSWORD_LEN to 128 chars
	* doc/saned.man: added description of SANE_CONFIG_DIR/saned.users
	* doc/scanimage.man: added description of ~/.sane/pass and
	  --accept-md5-only
	* frontend/saned.c: implemented user authorization on a per backend
	  basis
	* frontend/scanimage.c: fixed bug (option -b wasn't present)
	  implemented auth_callback
	* include/sane/sane.h: changed definition of SANE_MAX_USERNAME_LEN &
	  SANE_MAX_PASSWORD_LEN to 128 chars
	* lib/Makefile.in sanei/Makefile.in: updated Makefiles
2000-11-20 18:49:26 +00:00
Jochen Eisinger 12c9770d63 2000-10-23 Jochen Eisinger <jochen.eisinger@gmx.net>
* sanei/sanei_init_debug.c include/sane/sanei_debug.h
	  frontend/saned.c: removed vararg macros
2000-10-23 15:00:00 +00:00
Petter Reinholdtsen b4a1a513c9 Merge devel (v1.0.3) into head branch. 2000-08-12 15:11:46 +00:00
Petter Reinholdtsen 760423d864 Merged main branch with current DEVEL_1_9. 2000-03-05 13:57:25 +00:00
Petter Reinholdtsen 30ab5e718a Initial revision 1999-08-09 18:06:01 +00:00