version 1.16, 1999/10/28 20:41:23 |
version 1.17, 1999/11/02 19:42:36 |
|
|
case 1: /* As of protocol 1.1 */ |
case 1: /* As of protocol 1.1 */ |
/* The response is MD5 of decrypted challenge plus session id. */ |
/* The response is MD5 of decrypted challenge plus session id. */ |
len = BN_num_bytes(challenge); |
len = BN_num_bytes(challenge); |
assert(len <= 32 && len); |
|
|
if (len <= 0 || len > 32) { |
|
fatal("process_authentication_challenge: " |
|
"bad challenge length %d", len); |
|
} |
|
|
memset(buf, 0, 32); |
memset(buf, 0, 32); |
BN_bn2bin(challenge, buf + 32 - len); |
BN_bn2bin(challenge, buf + 32 - len); |
MD5_Init(&md); |
MD5_Init(&md); |