Previously, the default RSA_METHOD was NULL until the first RSA structure was
authorGeoff Thorpe <geoff@openssl.org>
Thu, 20 Apr 2000 06:44:18 +0000 (06:44 +0000)
committerGeoff Thorpe <geoff@openssl.org>
Thu, 20 Apr 2000 06:44:18 +0000 (06:44 +0000)
commitdeb4d50e5125f7c26f36ac31b7c63ef805df9a85
treee7e82bd521d2d75cc40edab3fd4ee2a0eb055318
parentffb488781f60643d305b37d4614b57869e57e1c2
Previously, the default RSA_METHOD was NULL until the first RSA structure was
initialised, at which point an appropriate default was chosen. This meant a
call to RSA_get_default_method might have returned FALSE.

This change fixes that; now any called to RSA_new(), RSA_new_method(NULL), or
RSA_get_default_method() will ensure that a default is chosen if it wasn't
already.
CHANGES
crypto/rsa/rsa_lib.c