Allow the CHIL engine to load even if dynamic locks aren't registered.

Submitted by: Sander Temme
This commit is contained in:
Geoff Thorpe
2008-11-19 14:08:06 +00:00
parent 5aa032033e
commit bfc6482a7a
4 changed files with 5 additions and 8 deletions

View File

@@ -589,12 +589,6 @@ static int hwcrhk_init(ENGINE *e)
hwcrhk_globals.mutex_release = hwcrhk_mutex_unlock;
hwcrhk_globals.mutex_destroy = hwcrhk_mutex_destroy;
}
else if (CRYPTO_get_locking_callback() != NULL)
{
HWCRHKerr(HWCRHK_F_HWCRHK_INIT,HWCRHK_R_LOCKING_MISSING);
ERR_add_error_data(1,"You HAVE to add dynamic locking callbacks via CRYPTO_set_dynlock_{create,lock,destroy}_callback()");
goto err;
}
}
/* Try and get a context - if not, we may have a DSO but no