Import OpenSSL 1.1.0h
This commit is contained in:
@@ -15,31 +15,9 @@
|
||||
#include <openssl/engine.h>
|
||||
#include "rsa_locl.h"
|
||||
|
||||
static const RSA_METHOD *default_RSA_meth = NULL;
|
||||
|
||||
RSA *RSA_new(void)
|
||||
{
|
||||
RSA *r = RSA_new_method(NULL);
|
||||
|
||||
return r;
|
||||
}
|
||||
|
||||
void RSA_set_default_method(const RSA_METHOD *meth)
|
||||
{
|
||||
default_RSA_meth = meth;
|
||||
}
|
||||
|
||||
const RSA_METHOD *RSA_get_default_method(void)
|
||||
{
|
||||
if (default_RSA_meth == NULL) {
|
||||
#ifdef RSA_NULL
|
||||
default_RSA_meth = RSA_null_method();
|
||||
#else
|
||||
default_RSA_meth = RSA_PKCS1_OpenSSL();
|
||||
#endif
|
||||
}
|
||||
|
||||
return default_RSA_meth;
|
||||
return RSA_new_method(NULL);
|
||||
}
|
||||
|
||||
const RSA_METHOD *RSA_get_method(const RSA *rsa)
|
||||
|
||||
Reference in New Issue
Block a user