svn rev #22871: trunk/src/plugins/preauth/pkinit/
tsitkova@MIT.EDU
tsitkova at MIT.EDU
Thu Oct 8 12:11:01 EDT 2009
http://src.mit.edu/fisheye/changelog/krb5/?cs=22871
Commit By: tsitkova
Log Message:
In anticipation of a new version of OpenSSL 1.0.0, support renamed API: EVP_PKEY_decrypt -> EVP_PKEY_decrypt_old
Changed Files:
U trunk/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
Modified: trunk/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
===================================================================
--- trunk/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c 2009-10-08 14:39:24 UTC (rev 22870)
+++ trunk/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c 2009-10-08 16:11:01 UTC (rev 22871)
@@ -3624,7 +3624,11 @@
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;
More information about the cvs-krb5
mailing list