--- plugins/preauth/pkinit/pkinit_crypto_openssl.c.orig	2009-09-29 02:38:48.000000000 +0100
+++ plugins/preauth/pkinit/pkinit_crypto_openssl.c	2010-07-26 03:05:52.000000000 +0100
@@ -3659,7 +3659,7 @@
     if (buf == NULL)
 	goto cleanup;
 
-    retval = EVP_PKEY_decrypt(buf, data, (int)data_len, pkey);
+    retval = EVP_PKEY_decrypt(buf, data, (int)data_len, pkey, buf_len);
     if (retval <= 0) {
 	pkiDebug("unable to decrypt received data (len=%d)\n", data_len);
 	goto cleanup;
