sane-project-website/old-archive/2000-11/0235.html

134 wiersze
5.3 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
"http://www.w3.org/TR/REC-html40/loose.dtd">
<HTML>
<HEAD>
<TITLE>sane-devel: Re: Patches for saned/net/scanimage/user-authorizat</TITLE>
<META NAME="Author" CONTENT="Jochen Eisinger (jochen.eisinger@gno.de)">
<META NAME="Subject" CONTENT="Re: Patches for saned/net/scanimage/user-authorization....">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Re: Patches for saned/net/scanimage/user-authorization....</H1>
<!-- received="Sat Nov 18 12:10:37 2000" -->
<!-- isoreceived="20001118201037" -->
<!-- sent="Sat, 18 Nov 2000 21:20:55 +0100" -->
<!-- isosent="20001118202055" -->
<!-- name="Jochen Eisinger" -->
<!-- email="jochen.eisinger@gno.de" -->
<!-- subject="Re: Patches for saned/net/scanimage/user-authorization...." -->
<!-- id="3A16E4A7.E88744AF@gno.de" -->
<!-- inreplyto="20001118203309.A20821@vortex.swb.de" -->
<STRONG>From:</STRONG> Jochen Eisinger (<A HREF="mailto:jochen.eisinger@gno.de?Subject=Re:%20Patches%20for%20saned/net/scanimage/user-authorization....&In-Reply-To=&lt;3A16E4A7.E88744AF@gno.de&gt;"><EM>jochen.eisinger@gno.de</EM></A>)<BR>
<STRONG>Date:</STRONG> Sat Nov 18 2000 - 12:20:55 PST
<P>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0236.html">Henning Meier-Geinitz: "Re: xscanimage"</A>
<UL>
<LI><STRONG>Previous message:</STRONG> <A HREF="0234.html">Oliver Neukum: "Re: Linux Support for Current Microtek Scanners"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0233.html">Henning Meier-Geinitz: "Re: Patches for saned/net/scanimage/user-authorization...."</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0238.html">Henning Meier-Geinitz: "Re: Patches for saned/net/scanimage/user-authorization...."</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0238.html">Henning Meier-Geinitz: "Re: Patches for saned/net/scanimage/user-authorization...."</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#235">[ date ]</A>
<A HREF="index.html#235">[ thread ]</A>
<A HREF="subject.html#235">[ subject ]</A>
<A HREF="author.html#235">[ author ]</A>
</UL>
<HR NOSHADE><P>
<!-- body="start" -->
<P>
Hi!
<BR>
<P>[Henning Meier-Geinitz]
<BR>
<EM>&gt; For Irix, the man page says index is in string.h. But that's untrue.
</EM><BR>
<EM>&gt; The compiler doesn't find a prototype and uses a return type of int.
</EM><BR>
<EM>&gt; Thtat's the source of the error (you can't do (int) - (char *). Took
</EM><BR>
<EM>&gt; me some time to find out :-)
</EM><BR>
<EM>&gt; Changing string.h to strings.h in sanei_auth.c, saned.c and scanimage.c
</EM><BR>
<EM>&gt; works.
</EM><BR>
<P>Could you please send me the patches? I wasn't aware of this...
<BR>
<P><EM>&gt; index() is also used in mustek_pp (maybe others) so we should look a bit
</EM><BR>
<EM>&gt; more at this. You don't seem to use pointer arithmetics (or in a
</EM><BR>
<EM>&gt; different way) in mustek_pp so probably this is why the compilers
</EM><BR>
<EM>&gt; don't bail out there.
</EM><BR>
<P>Yes, I like this function a lot :-)
<BR>
<P><EM>&gt;
</EM><BR>
<EM>&gt; I think this small change is acceptable. Have anyone used authorization
</EM><BR>
<EM>&gt; at all until now?
</EM><BR>
<P>Yes, me ;-)
<BR>
<P><EM>&gt; &gt; lib/md5.c include/md5.h include/sane/sanei_auth.h sanei/sanei_auth.c:
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; mhh, ugly k&amp;r style C :-). Seems to work however.
</EM><BR>
<P>Ok, Ok, I'll use indent -gnu, although I really like k&amp;r...
<BR>
<P><EM>&gt; The output
</EM><BR>
<EM>&gt; [resource] user:
</EM><BR>
<EM>&gt; may be a bit confusing because the debug output uses a similar form.
</EM><BR>
<EM>&gt; Can we use a more detailed output like:
</EM><BR>
<EM>&gt; &quot;Authentification required for resource %s. Enter username: &quot;
</EM><BR>
<EM>&gt; &quot;Enter password:&quot;
</EM><BR>
<P>sounds good, I'll change this.
<BR>
<P><P>-- jochen
<BR>
<P><PRE>
--
Source code, list archive, and docs: <A HREF="http://www.mostang.com/sane/">http://www.mostang.com/sane/</A>
To unsubscribe: echo unsubscribe sane-devel | mail <A HREF="mailto:majordomo@mostang.com?Subject=Re:%20Patches%20for%20saned/net/scanimage/user-authorization....&In-Reply-To=&lt;3A16E4A7.E88744AF@gno.de&gt;">majordomo@mostang.com</A>
</PRE>
<P><!-- body="end" -->
<HR NOSHADE>
<UL>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0236.html">Henning Meier-Geinitz: "Re: xscanimage"</A>
<LI><STRONG>Previous message:</STRONG> <A HREF="0234.html">Oliver Neukum: "Re: Linux Support for Current Microtek Scanners"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0233.html">Henning Meier-Geinitz: "Re: Patches for saned/net/scanimage/user-authorization...."</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0238.html">Henning Meier-Geinitz: "Re: Patches for saned/net/scanimage/user-authorization...."</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0238.html">Henning Meier-Geinitz: "Re: Patches for saned/net/scanimage/user-authorization...."</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#235">[ date ]</A>
<A HREF="index.html#235">[ thread ]</A>
<A HREF="subject.html#235">[ subject ]</A>
<A HREF="author.html#235">[ author ]</A>
</UL>
<!-- trailer="footer" -->
<HR NOSHADE>
<P>
<SMALL>
<EM>
This archive was generated by <A HREF="http://www.hypermail.org/">hypermail 2b29</A>
: <EM>Sat Nov 18 2000 - 12:11:13 PST</EM>
</EM>
</SMALL>
</BODY>
</HTML>