projects
/
krb5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5cb04ac
)
In anticipation of a new version of OpenSSL 1.0.0, support renamed API: EVP_PKEY_decr...
author
Zhanna Tsitkov
<tsitkova@mit.edu>
Thu, 8 Oct 2009 16:11:01 +0000
(16:11 +0000)
committer
Zhanna Tsitkov
<tsitkova@mit.edu>
Thu, 8 Oct 2009 16:11:01 +0000
(16:11 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22871
dc483132
-0cff-0310-8789-
dd5450dbe970
src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
patch
|
blob
|
history
diff --git
a/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
b/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
index e02721838fafc158feb5d8d6781d3808e77e73ca..2f0f09d3104f3a3d7d386783e7f1f3f8bd422255 100644
(file)
--- 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;