[JDEV] digest authentication

Thomas Muldowney temas at box5.net
Mon May 21 10:46:38 CDT 2001


What does it spit out at you and with what data?

--temas

On Fri, May 18, 2001 at 03:10:44PM -0500, Dustin Puryear wrote:
> Ok, so you produce the input for SHA1 by concatenating the session id
> and password, correct? ("id" and "password" become "idpassword"). I
> pulled the code from jabberd/lib/sha.c and I am not getting the right
> value returned from a test driver:
> 
> #include <string.h>
> 
> int main(int argc, char *argv[])
> {
>         if (argc < 1)
>                 return 1;
> 
>         printf("buf = %s\n", argv[1]);
>         printf("shahash(%s) = %s\n", argv[1], shahash(argv[1]));
> 
>         return 0;
> }
> 
> The value returned is not the same as that produced when gabber, my
> Jabber client, is authenticated by the server. I am correct that I
> should pass the concatendated values to shahash(), correct?
> 
> Regards, Dustin
> 
> ---
> Dustin Puryear <dpuryear at usa.net>
> http://members.telocity.com/~dpuryear
> In the beginning the Universe was created. 
> This has been widely regarded as a bad move. - Douglas Adams
> _______________________________________________
> jdev mailing list
> jdev at jabber.org
> http://mailman.jabber.org/listinfo/jdev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
URL: <https://www.jabber.org/jdev/attachments/20010521/42656d8f/attachment-0002.pgp>


More information about the JDev mailing list