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


------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
TrouSerS-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/trousers-tech

Reply via email to