On Mon, 27 Nov 2000, Rafa [iso-8859-1] Mar�n L�pez wrote:

> Hello, all.
> 
> I've a problem.
> 
> In this instruction:
> 
>      RSA *rsa=RSA_generate_key((int)1024,RSA_F4,NULL,NULL);
> 
> I have obtained NULL (rsa == NULL). Why?

If you're calling ERR_load_crypto_strings() (or SSL_load_error_strings())
prior to this line, and then after the call to generate the key you add;

if(!rsa) {
    ERR_print_errors_fp(stderr);
    abort();
}

you should get a clearer indication. If the error message mentions PRNG,
then please read the FAQ.

hope that helps,
Geoff


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

Reply via email to