From: Zhanna Tsitkov Date: Thu, 8 Oct 2009 16:11:01 +0000 (+0000) Subject: In anticipation of a new version of OpenSSL 1.0.0, support renamed API: EVP_PKEY_decr... X-Git-Tag: krb5-1.8-alpha1~311 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=be4d47ea0d51ab0d7012fdb59ac38e7396f122de;p=krb5.git In anticipation of a new version of OpenSSL 1.0.0, support renamed API: EVP_PKEY_decrypt -> EVP_PKEY_decrypt_old git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22871 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c b/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c index e02721838..2f0f09d31 100644 --- a/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c +++ b/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c @@ -3624,7 +3624,11 @@ decode_data(unsigned char **out_data, unsigned int *out_data_len, if (buf == NULL) goto cleanup; - retval = EVP_PKEY_decrypt(buf, data, (int)data_len, pkey); +#if OPENSSL_VERSION_NUMBER >= 0x10000000L + retval = EVP_PKEY_decrypt_old(buf, data, (int)data_len, pkey); +#else + retval = EVP_PKEY_decrypt(buf, data, (int)data_len, pkey); +#endif if (retval <= 0) { pkiDebug("unable to decrypt received data (len=%d)\n", data_len); goto cleanup;