summaryrefslogtreecommitdiff
path: root/databases/gq/patches/patch-ad
blob: f62f0183bcb24e4d5d04f9547f5cc4b8d84f1179 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
$NetBSD: patch-ad,v 1.2 2008/01/10 21:42:51 adam Exp $

--- src/dt_password.c.orig	2007-05-14 18:26:51.000000000 +0200
+++ src/dt_password.c
@@ -48,6 +48,15 @@
 #include <openssl/md5.h>
 #include <openssl/md4.h>
 #include <openssl/sha.h>
+#include <openssl/opensslv.h>
+#if OPENSSL_VERSION_NUMBER >= 0x00907000L
+# define des_fcrypt		DES_fcrypt
+# define des_cblock		DES_cblock
+# define des_set_odd_parity	DES_set_odd_parity
+# define des_set_key_unchecked(key,schedule)	DES_set_key_unchecked(key, &(schedule))
+# define des_ecb_encrypt(input, output, ks, enc)	DES_ecb_encrypt(input, output, &(schedule), enc)
+# define des_key_schedule	DES_key_schedule
+#endif
 #endif /* defined(HAVE_LIBCRYPTO) */
 
 #include "common.h"