Dear Group
 I find a weakness in X509_REQ_get_pubkey function.It 
gets a CSR and returns a EVP_PKEY.
If you have two call to this function the second
function call return an invalid EVP_PKEY. What I must
do to solve this problem?
According to the SSLeay documents 
{  
     X509_REQ_get_pubkey calls X509_PUBKEY_get on
x->req_info->key to extract the public key from the
certificate request and turn it into an EVP_PKEY which
can be used for encryption with EVP routines. See
Overview of EVP interfaces for a discussion of the EVP
library.

The EVP_PKEY structure is cached in the X509_REQ_INFO
structure for later use as well. If this function is
called again, a pointer to the cached copy is used
rather than doing the conversion again. 
}

the second fucntion call uses cached EVP_PKEY.
Thanks.
Bye.



        
                
__________________________________
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/ 
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to