Fix engine behavior (#89)
* Fix RSA unsupported fallback * Turn default log level off
This commit is contained in:
Родитель
f341f4c64d
Коммит
07ccc8be92
|
@ -18,7 +18,7 @@ extern "C" {
|
||||||
#define SCOSSL_LOG_LEVEL_PREFIX_DEBUG "DEBUG"
|
#define SCOSSL_LOG_LEVEL_PREFIX_DEBUG "DEBUG"
|
||||||
|
|
||||||
// Level of tracing that is output to stderr / log file
|
// Level of tracing that is output to stderr / log file
|
||||||
static int _traceLogLevel = SCOSSL_LOG_LEVEL_INFO;
|
static int _traceLogLevel = SCOSSL_LOG_LEVEL_OFF;
|
||||||
static char *_traceLogFilename = NULL;
|
static char *_traceLogFilename = NULL;
|
||||||
static FILE *_traceLogFile = NULL;
|
static FILE *_traceLogFile = NULL;
|
||||||
|
|
||||||
|
|
|
@ -114,7 +114,7 @@ SCOSSL_RETURNLENGTH e_scossl_rsa_priv_dec(int flen, _In_reads_bytes_(flen) const
|
||||||
"Unsupported Padding: %d. Forwarding to OpenSSL. Size: %d.", padding, flen);
|
"Unsupported Padding: %d. Forwarding to OpenSSL. Size: %d.", padding, flen);
|
||||||
ossl_rsa_meth = RSA_PKCS1_OpenSSL();
|
ossl_rsa_meth = RSA_PKCS1_OpenSSL();
|
||||||
pfn_rsa_meth_priv_dec = RSA_meth_get_priv_dec(ossl_rsa_meth);
|
pfn_rsa_meth_priv_dec = RSA_meth_get_priv_dec(ossl_rsa_meth);
|
||||||
if( !pfn_rsa_meth_priv_dec )
|
if( pfn_rsa_meth_priv_dec )
|
||||||
{
|
{
|
||||||
ret = pfn_rsa_meth_priv_dec(flen, from, to, rsa, padding);
|
ret = pfn_rsa_meth_priv_dec(flen, from, to, rsa, padding);
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче