$NetBSD: patch-af,v 1.4 2004/09/10 21:12:21 wiz Exp $

--- src/encrypt.c.orig	2002-06-20 15:38:34.000000000 +0200
+++ src/encrypt.c
@@ -38,7 +38,12 @@
 
 #if defined(HAVE_LIBCRYPTO) || defined(HAVE_OPENSSL_DES_H)
       /* must be des.h from OpenSSL */
-# include <openssl/des.h>
+# include <openssl/opensslv.h>
+# if OPENSSL_VERSION_NUMBER < 0x0090700fL
+#  include <openssl/des.h>
+# else
+#  include <des.h>
+# endif
 # define USE_SSL 1
 #endif
 
