summaryrefslogtreecommitdiff
path: root/security
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
commitfd0e29c012ed998a94e12ecfd5dfe0f5ee3e87ed (patch)
tree7a760e212a91ef8cb26465445512c89136dd797a /security
parent80636a0cadf338c4ee4feca5ef2556ef8df1c01c (diff)
downloadpkgsrc-fd0e29c012ed998a94e12ecfd5dfe0f5ee3e87ed.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')
-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];