svn commit: r338786 - projects/openssl111/usr.sbin/ppp

Jung-uk Kim jkim at FreeBSD.org
Wed Sep 19 07:09:56 UTC 2018


Author: jkim
Date: Wed Sep 19 07:09:55 2018
New Revision: 338786
URL: https://svnweb.freebsd.org/changeset/base/338786

Log:
  Make ppp(8) buildable.

Modified:
  projects/openssl111/usr.sbin/ppp/chap_ms.c

Modified: projects/openssl111/usr.sbin/ppp/chap_ms.c
==============================================================================
--- projects/openssl111/usr.sbin/ppp/chap_ms.c	Wed Sep 19 07:09:09 2018	(r338785)
+++ projects/openssl111/usr.sbin/ppp/chap_ms.c	Wed Sep 19 07:09:55 2018	(r338786)
@@ -105,18 +105,18 @@ MakeKey(u_char *key, u_char *des_key)
     des_key[6] = Get7Bits(key, 42);
     des_key[7] = Get7Bits(key, 49);
 
-    des_set_odd_parity((des_cblock *)des_key);
+    DES_set_odd_parity((DES_cblock *)des_key);
 }
 
 static void /* IN 8 octets IN 7 octest OUT 8 octets */
 DesEncrypt(u_char *clear, u_char *key, u_char *cipher)
 {
-    des_cblock		des_key;
-    des_key_schedule	key_schedule;
+    DES_cblock		des_key;
+    DES_key_schedule	key_schedule;
 
     MakeKey(key, des_key);
-    des_set_key(&des_key, key_schedule);
-    des_ecb_encrypt((des_cblock *)clear, (des_cblock *)cipher, key_schedule, 1);
+    DES_set_key(&des_key, &key_schedule);
+    DES_ecb_encrypt((DES_cblock *)clear, (DES_cblock *)cipher, &key_schedule, 1);
 }
 
 static void      /* IN 8 octets      IN 16 octets     OUT 24 octets */


More information about the svn-src-projects mailing list