[BACK]Return to sshconnect.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / ssh

Diff for /src/usr.bin/ssh/sshconnect.c between version 1.23 and 1.24

version 1.23, 1999/10/25 20:34:30 version 1.24, 1999/10/27 16:37:46
Line 28 
Line 28 
 #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];
Line 452 
Line 452 
   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.");
   

Legend:
Removed from v.1.23  
changed lines
  Added in v.1.24