Replace deprecated des_ and fix LibreSSL build

des_ methods and types were marked deprecated in
OpenSSL 0.9.7 and will be removed in OpenSSL 1.1.0 . This patch replaces
the des_ methods and types with their new DES_ counterparts. This
enables building with LibreSSL as OpenSSL library.
This commit is contained in:
Robin Gloster 2015-12-28 22:49:21 +00:00
parent 2331d24319
commit 8c41dc1229
1 changed files with 2 additions and 2 deletions

View File

@ -456,7 +456,7 @@ void ntlmssp_compute_lm_hash(char* password, char* hash)
char text[14];
char des_key1[8];
char des_key2[8];
des_key_schedule ks;
DES_key_schedule ks;
/* LM("password") = E52CAC67419A9A224A3B108F3FA6CB6D */
@ -530,7 +530,7 @@ void ntlmssp_compute_lm_response(char* password, char* challenge, char* response
char des_key1[8];
char des_key2[8];
char des_key3[8];
des_key_schedule ks;
DES_key_schedule ks;
/* A LM hash is 16-bytes long, but the LM response uses a LM hash null-padded to 21 bytes */
memset(hash, '\0', 21);