aboutsummaryrefslogtreecommitdiff
path: root/ftp/pavuk/files
diff options
context:
space:
mode:
authorBernard Spil <brnrd@FreeBSD.org>2016-06-12 17:17:01 +0000
committerBernard Spil <brnrd@FreeBSD.org>2016-06-12 17:17:01 +0000
commit70ce3fa5ec02dc7a3dcd454359c56f4d5775cc50 (patch)
treef9c2150046609a464afcb1ece6c47d10703c9508 /ftp/pavuk/files
parentb56a0871878edd31ce17261d699bcf26a8fbe1bf (diff)
downloadports-70ce3fa5ec02dc7a3dcd454359c56f4d5775cc50.tar.gz
ports-70ce3fa5ec02dc7a3dcd454359c56f4d5775cc50.zip
Notes
Diffstat (limited to 'ftp/pavuk/files')
-rw-r--r--ftp/pavuk/files/patch-src__ntlm_auth.c35
1 files changed, 35 insertions, 0 deletions
diff --git a/ftp/pavuk/files/patch-src__ntlm_auth.c b/ftp/pavuk/files/patch-src__ntlm_auth.c
new file mode 100644
index 000000000000..65fb5fe2d4a3
--- /dev/null
+++ b/ftp/pavuk/files/patch-src__ntlm_auth.c
@@ -0,0 +1,35 @@
+--- src/ntlm_auth.c.orig 2005-10-27 16:06:37.000000000 +0200
++++ src/ntlm_auth.c 2015-02-28 12:38:57.150120721 +0100
+@@ -249,14 +249,14 @@
+ static void ntlm_des_enc(unsigned char *key, unsigned char *plaintext,
+ unsigned char *result)
+ {
+- des_key_schedule ks;
++ DES_key_schedule ks;
+ #ifdef OPENSSL
+- const_des_cblock _plaintext;
++ const_DES_cblock _plaintext;
+ #else
+ const des_cblock _plaintext;
+ #endif
+- des_cblock _result;
+- des_cblock key64;
++ DES_cblock _result;
++ DES_cblock key64;
+ unsigned char skey[8];
+
+ memcpy(&_plaintext, plaintext, sizeof(_plaintext));
+@@ -265,10 +265,10 @@
+ memcpy(key64, skey, 8);
+
+ #ifdef OPENSSL
+- des_set_odd_parity(&key64);
+- des_set_key(&key64, ks);
++ DES_set_odd_parity(&key64);
++ DES_set_key(&key64, &ks);
+
+- des_ecb_encrypt(&_plaintext, &_result, ks, DES_ENCRYPT);
++ DES_ecb_encrypt(&_plaintext, &_result, &ks, DES_ENCRYPT);
+ #else
+ des_set_odd_parity(key64);
+ des_set_key(key64, ks);