More OpenSSL-0.9.7 compatibility
authorDavid Woodhouse <David.Woodhouse@intel.com>
Tue, 2 Jun 2009 10:56:04 +0000 (11:56 +0100)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Tue, 2 Jun 2009 10:56:04 +0000 (11:56 +0100)
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
ssl.c

diff --git a/ssl.c b/ssl.c
index 00aa9f7..769ebe4 100644 (file)
--- a/ssl.c
+++ b/ssl.c
@@ -326,6 +326,9 @@ static int load_certificate(struct openconnect_info *vpninfo)
                vpninfo->progress(vpninfo, PRG_ERR, "Private key failed\n");
                report_ssl_errors(vpninfo);
 
+#ifndef EVP_F_EVP_DECRYPTFINAL_EX
+#define EVP_F_EVP_DECRYPTFINAL_EX EVP_F_EVP_DECRYPTFINAL
+#endif
                /* If the user fat-fingered the passphrase, try again */
                if (ERR_GET_LIB(err) == ERR_LIB_EVP &&
                    ERR_GET_FUNC(err) == EVP_F_EVP_DECRYPTFINAL_EX &&