On Thu, 2010-04-08 at 18:15 +0100, David Woodhouse wrote:
> In the TPM engine case, EVP_PKEY_CTX_new() is returning NULL because 
> !pkey->ameth. 

Was the engine supposed to call EVP_PKEY_assign_RSA() in its load_key
method? This seems to fix it...

--- e_tpm.c     7 Dec 2007 21:55:57 -0000       1.17
+++ e_tpm.c     8 Apr 2010 17:41:16 -0000
@@ -738,6 +740,8 @@ retry:
                return NULL;
        }
 
+       EVP_PKEY_assign_RSA(pkey, rsa);
+
        return pkey;
 }
 

-- 
David Woodhouse                            Open Source Technology Centre
[email protected]                              Intel Corporation

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [email protected]
Automated List Manager                           [email protected]

Reply via email to