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

Diff for /src/usr.bin/ssh/Attic/mpaux.c between version 1.3 and 1.4

version 1.3, 1999/09/30 17:08:52 version 1.4, 1999/10/27 16:37:45
Line 21 
Line 21 
 #include "getput.h"  #include "getput.h"
 #include "xmalloc.h"  #include "xmalloc.h"
   
 #include <md5.h>  #include <ssl/md5.h>
   
 void  void
 compute_session_id(unsigned char session_id[16],  compute_session_id(unsigned char session_id[16],
Line 39 
Line 39 
   BN_bn2bin(session_key_n, buf + (host_key_bits + 7 ) / 8);    BN_bn2bin(session_key_n, buf + (host_key_bits + 7 ) / 8);
   memcpy(buf + (host_key_bits + 7) / 8 + (session_key_bits + 7) / 8,    memcpy(buf + (host_key_bits + 7) / 8 + (session_key_bits + 7) / 8,
          cookie, 8);           cookie, 8);
   MD5Init(&md);    MD5_Init(&md);
   MD5Update(&md, buf, bytes);    MD5_Update(&md, buf, bytes);
   MD5Final(session_id, &md);    MD5_Final(session_id, &md);
   xfree(buf);    xfree(buf);
 }  }

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4