summaryrefslogtreecommitdiff
path: root/security/dsniff
diff options
context:
space:
mode:
authorcube <cube@pkgsrc.org>2003-10-29 18:10:10 +0000
committercube <cube@pkgsrc.org>2003-10-29 18:10:10 +0000
commit7f8521a560d45e659a3d7334ff33d0b71ca76944 (patch)
tree7a760e212a91ef8cb26465445512c89136dd797a /security/dsniff
parent9a97a292a0dc0718c5b3e4d54b7fe852c7127576 (diff)
downloadpkgsrc-7f8521a560d45e659a3d7334ff33d0b71ca76944.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')
-rw-r--r--security/dsniff/distinfo3
-rw-r--r--security/dsniff/patches/patch-ab20
2 files changed, 22 insertions, 1 deletions
diff --git a/security/dsniff/distinfo b/security/dsniff/distinfo
index 91f7aba7c21..c7094cc34fb 100644
--- a/security/dsniff/distinfo
+++ b/security/dsniff/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.2 2001/04/19 15:40:30 agc Exp $
+$NetBSD: distinfo,v 1.3 2003/10/29 18:10:10 cube Exp $
SHA1 (dsniff-2.3.tar.gz) = 671a1df823ab0657fc95e79112924a57281e9c3b
Size (dsniff-2.3.tar.gz) = 126797 bytes
SHA1 (patch-aa) = b50347c772c13abd6b62a80315c7bfecc139ba60
+SHA1 (patch-ab) = 88c8e182a95b03120446f1453806e5354c074b83
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];