Hi, I try to generate a RSA key with a simple one liner like this:
== RSA *rsakey = RSA_generate_key(1024, RSA_F4, NULL, NULL); == Works fine under Linux, but crashes under Mac OS X Snow Leopard (using Openssl 1.0.0d compiled from source): == Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: 13 at address: 0x0000000000000000 0x00000001000b1a81 in ssleay_rand_add () (gdb) bt #0 0x00000001000b1a81 in ssleay_rand_add () == Do I need to call some kind of random number generator initialization routine first or is something else wrong? -- Yours sincerely, Floris Bos P.S. I tried to search the OpenSSL request tracker to see if this is a known issue, but received the following error when trying to perform a search: System error error: Can't call method "delete" on an undefined value at /v/openssl/sw/libexec/rt/WebRT/html/Elements/SetupSessionCookie line 90. context: ... 86: }; 87: undef $cookies{$cookiename}; 88: } 89: elsif ( !($session{'CurrentUser'} && $session{'CurrentUser'}->id) ) { 90: eval { tied(%session)->delete; }; 91: tie %session, $session_class, undef, 92: $backends{$RT::DatabaseType} ? { 93: Handle => $RT::Handle->dbh, 94: LockHandle => $RT::Handle->dbh, ... code stack: /v/openssl/sw/libexec/rt/WebRT/html/Elements/SetupSessionCookie:90 /v/openssl/sw/libexec/rt/WebRT/html/autohandler:73 ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org