search for: secretlen

Displaying 2 results from an estimated 2 matches for "secretlen".

Did you mean: secret_len
2000 Jul 02
2
``portability'' patch for OpenSSH S/Key support
...n 22 23:32:31 2000 +++ auth-skey.c Sun Jul 2 15:17:47 2000 @@ -4,7 +4,7 @@ #include "ssh.h" #include "packet.h" -#include <sha1.h> +#include <openssl/sha.h> /* from %OpenBSD: skeylogin.c,v 1.32 1999/08/16 14:46:56 millert Exp % */ @@ -74,7 +74,6 @@ size_t secretlen = 0; SHA_CTX ctx; char *p, *u; - char md[SHA_DIGEST_LENGTH]; /* * Base first 4 chars of seed on hostname. @@ -99,7 +98,7 @@ SHA1_Init(&ctx); SHA1_Update(&ctx, username, strlen(username)); - SHA1_End(&ctx, up); + SHA1_Final(up, &ctx); /* Collapse the hash */...
2001 Jan 19
0
sshd crashes (w/ skey)
...n main (ac=2, av=0xbffffa3c) at sshd.c:1088 (gdb) I might be talking complete BS, but I think that problem lies somewhere among these lines: -- auth-skey.c - skey_fake_keyinfo() -- } else if (!stat(_PATH_MEM, &sb) || !stat("/", &sb)) { t = sb.st_ctime; secret = ctime(&t); secretlen = strlen(secret); flg = 0; } -- cut-- I have tried adding various debug() messages in the auth-skey.c file, and what was VERY funny is that sshd would 'randomly' stop crashing if I put debug lines to the code. For example, I add 2 debug lines below this piece of code, and fake response ge...