version 1.23, 1999/10/25 20:34:30 |
version 1.24, 1999/10/27 16:37:46 |
|
|
#include "uidswap.h" |
#include "uidswap.h" |
#include "compat.h" |
#include "compat.h" |
|
|
#include <md5.h> |
#include <ssl/md5.h> |
|
|
/* Session id for the current session. */ |
/* Session id for the current session. */ |
unsigned char session_id[16]; |
unsigned char session_id[16]; |
|
|
assert(len <= sizeof(buf) && len); |
assert(len <= sizeof(buf) && len); |
memset(buf, 0, sizeof(buf)); |
memset(buf, 0, sizeof(buf)); |
BN_bn2bin(challenge, buf + sizeof(buf) - len); |
BN_bn2bin(challenge, buf + sizeof(buf) - len); |
MD5Init(&md); |
MD5_Init(&md); |
MD5Update(&md, buf, 32); |
MD5_Update(&md, buf, 32); |
MD5Update(&md, session_id, 16); |
MD5_Update(&md, session_id, 16); |
MD5Final(response, &md); |
MD5_Final(response, &md); |
|
|
debug("Sending response to host key RSA challenge."); |
debug("Sending response to host key RSA challenge."); |
|
|