kopia lustrzana https://gitlab.com/sane-project/website
134 wiersze
5.3 KiB
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=<3A16E4A7.E88744AF@gno.de>"><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>> For Irix, the man page says index is in string.h. But that's untrue.
|
|
</EM><BR>
|
|
<EM>> The compiler doesn't find a prototype and uses a return type of int.
|
|
</EM><BR>
|
|
<EM>> Thtat's the source of the error (you can't do (int) - (char *). Took
|
|
</EM><BR>
|
|
<EM>> me some time to find out :-)
|
|
</EM><BR>
|
|
<EM>> Changing string.h to strings.h in sanei_auth.c, saned.c and scanimage.c
|
|
</EM><BR>
|
|
<EM>> works.
|
|
</EM><BR>
|
|
<P>Could you please send me the patches? I wasn't aware of this...
|
|
<BR>
|
|
<P><EM>> index() is also used in mustek_pp (maybe others) so we should look a bit
|
|
</EM><BR>
|
|
<EM>> more at this. You don't seem to use pointer arithmetics (or in a
|
|
</EM><BR>
|
|
<EM>> different way) in mustek_pp so probably this is why the compilers
|
|
</EM><BR>
|
|
<EM>> don't bail out there.
|
|
</EM><BR>
|
|
<P>Yes, I like this function a lot :-)
|
|
<BR>
|
|
<P><EM>>
|
|
</EM><BR>
|
|
<EM>> I think this small change is acceptable. Have anyone used authorization
|
|
</EM><BR>
|
|
<EM>> at all until now?
|
|
</EM><BR>
|
|
<P>Yes, me ;-)
|
|
<BR>
|
|
<P><EM>> > lib/md5.c include/md5.h include/sane/sanei_auth.h sanei/sanei_auth.c:
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>> mhh, ugly k&r style C :-). Seems to work however.
|
|
</EM><BR>
|
|
<P>Ok, Ok, I'll use indent -gnu, although I really like k&r...
|
|
<BR>
|
|
<P><EM>> The output
|
|
</EM><BR>
|
|
<EM>> [resource] user:
|
|
</EM><BR>
|
|
<EM>> may be a bit confusing because the debug output uses a similar form.
|
|
</EM><BR>
|
|
<EM>> Can we use a more detailed output like:
|
|
</EM><BR>
|
|
<EM>> "Authentification required for resource %s. Enter username: "
|
|
</EM><BR>
|
|
<EM>> "Enter password:"
|
|
</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=<3A16E4A7.E88744AF@gno.de>">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>
|