summaryrefslogtreecommitdiffstats
path: root/defines.h
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2001-11-01 09:32:34 +1100
committerDamien Miller <djm@mindrot.org>2001-11-01 09:32:34 +1100
commit14a5c99b5c84ab86b34baf4b9e8f454118164815 (patch)
treeea2c1bdb66a8870c7aa5a8bc6d7bdc5142548a23 /defines.h
parent12eceb2efc8b8310e041a89339c671c86cfce386 (diff)
- (djm) Compat define for OpenSSL < 0.9.6 (No OPENSSL_free)
Diffstat (limited to 'defines.h')
-rw-r--r--defines.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/defines.h b/defines.h
index 060b6f35..838f1093 100644
--- a/defines.h
+++ b/defines.h
@@ -1,7 +1,7 @@
#ifndef _DEFINES_H
#define _DEFINES_H
-/* $Id: defines.h,v 1.74 2001/10/30 02:50:40 tim Exp $ */
+/* $Id: defines.h,v 1.75 2001/10/31 22:32:34 djm Exp $ */
/* Necessary headers */
@@ -45,6 +45,7 @@
#include <unistd.h> /* For STDIN_FILENO, etc */
#include <termios.h> /* Struct winsize */
#include <fcntl.h> /* For O_NONBLOCK */
+#include <openssl/opensslv.h> /* For OPENSSL_VERSION_NUMBER */
/* *-*-nto-qnx needs these headers for strcasecmp and LASTLOG_FILE respectively */
#ifdef HAVE_STRINGS_H
@@ -450,6 +451,11 @@ struct winsize {
# define getpgrp() getpgrp(0)
#endif
+/* OPENSSL_free() is Free() in versions before OpenSSL 0.9.6 */
+#if !defined(OPENSSL_VERSION_NUMBER) || (OPENSSL_VERSION_NUMBER < 0x0090600f)
+# define OPENSSL_free(x) Free(x)
+#endif
+
/*
* Define this to use pipes instead of socketpairs for communicating with the
* client program. Socketpairs do not seem to work on all systems.