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 <[EMAIL PROTECTED]>
> 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
> [EMAIL PROTECTED]
> http://mailman.jabber.org/listinfo/jdev

PGP signature

Reply via email to