summaryrefslogtreecommitdiff
path: root/security/dsniff/patches
diff options
context:
space:
mode:
authorcube <cube>2003-10-29 18:10:10 +0000
committercube <cube>2003-10-29 18:10:10 +0000
commit57f3a640372ec6066468235b6cee69304cc75c8c (patch)
tree7a760e212a91ef8cb26465445512c89136dd797a /security/dsniff/patches
parent5243aa47e79cbc7d817e48d313115c4a994d2c93 (diff)
downloadpkgsrc-57f3a640372ec6066468235b6cee69304cc75c8c.tar.gz
Allow this to build and run with OpenSSL >= 0.9.7 (des -> DES API changes).
Fixes PR pkg/23303.
Diffstat (limited to 'security/dsniff/patches')
-rw-r--r--security/dsniff/patches/patch-ab20
1 files changed, 20 insertions, 0 deletions
diff --git a/security/dsniff/patches/patch-ab b/security/dsniff/patches/patch-ab
new file mode 100644
index 00000000000..a1d617fec7e
--- /dev/null
+++ b/security/dsniff/patches/patch-ab
@@ -0,0 +1,20 @@
+$NetBSD: patch-ab,v 1.1 2003/10/29 18:10:10 cube Exp $
+
+--- sshcrypto.c.orig 2000-11-28 22:23:28.000000000 +0100
++++ sshcrypto.c
+@@ -21,6 +21,15 @@
+
+ #include "sshcrypto.h"
+
++#if OPENSSL_VERSION_NUMBER > 0x00907000L
++#define des_cblock DES_cblock
++#define des_key_schedule DES_key_schedule
++
++#define des_set_key(key,schedule) DES_set_key(key,&schedule)
++#define des_ncbc_encrypt(input,output,length,schedule,ivec,enc) \
++ DES_ncbc_encrypt(input,output,length,&schedule,ivec,enc)
++#endif
++
+ struct blowfish_state {
+ struct bf_key_st key;
+ u_char iv[8];