Diff for /embedaddon/mpd/src/msoft.c between versions 1.1.1.1 and 1.1.1.2

version 1.1.1.1, 2013/07/22 08:44:29 version 1.1.1.2, 2016/11/01 09:56:12
Line 164  ChallengeResponse(const u_char *chal, const char *pwHa Line 164  ChallengeResponse(const u_char *chal, const char *pwHa
 static void  static void
 DesEncrypt(const u_char *clear, u_char *key0, u_char *cypher)  DesEncrypt(const u_char *clear, u_char *key0, u_char *cypher)
 {  {
  des_key_schedule   ks;  DES_key_schedule   ks;
   u_char                key[8];    u_char                key[8];
   
 /* Create DES key */  /* Create DES key */
Line 177  DesEncrypt(const u_char *clear, u_char *key0, u_char * Line 177  DesEncrypt(const u_char *clear, u_char *key0, u_char *
   key[5] = (key0[4] << 3) | (key0[5] >> 5);    key[5] = (key0[4] << 3) | (key0[5] >> 5);
   key[6] = (key0[5] << 2) | (key0[6] >> 6);    key[6] = (key0[5] << 2) | (key0[6] >> 6);
   key[7] = key0[6] << 1;    key[7] = key0[6] << 1;
  des_set_key((des_cblock *) key, ks);  DES_set_key((DES_cblock *) key, &ks);
   
 /* Encrypt using key */  /* Encrypt using key */
   
  des_ecb_encrypt((des_cblock *) clear, (des_cblock *) cypher, ks, 1);  DES_ecb_encrypt((DES_cblock *) clear, (DES_cblock *) cypher, &ks, 1);
 }  }
   
 /*  /*

Removed from v.1.1.1.1  
changed lines
  Added in v.1.1.1.2


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>