From 99952216822c29f4b0a955498a517260aa4fc3ba Mon Sep 17 00:00:00 2001 From: David Woodhouse Date: Tue, 2 Jun 2009 11:56:04 +0100 Subject: [PATCH] More OpenSSL-0.9.7 compatibility Signed-off-by: David Woodhouse --- ssl.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ssl.c b/ssl.c index 00aa9f7..769ebe4 100644 --- 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 && -- 2.7.4