mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-14 07:03:44 +01:00
Adjustments to 32406 per review
When we are failing because of a lack of a _required_ engine, note that the engine was "required". When engines are disabled, any required engine should cause a failure.
This commit is contained in:
parent
c550990400
commit
de7053b896
@ -290,6 +290,11 @@ crypto_openssl_init_engines(const char *accelName,
|
|||||||
(void)accelName;
|
(void)accelName;
|
||||||
(void)accelDir;
|
(void)accelDir;
|
||||||
log_warn(LD_CRYPTO, "No OpenSSL hardware acceleration support enabled.");
|
log_warn(LD_CRYPTO, "No OpenSSL hardware acceleration support enabled.");
|
||||||
|
if (accelName && accelName[0] == '!') {
|
||||||
|
log_warn(LD_CRYPTO, "Unable to load required dynamic OpenSSL engine "
|
||||||
|
"\"%s\".", accelName+1);
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
return 0;
|
return 0;
|
||||||
#else
|
#else
|
||||||
ENGINE *e = NULL;
|
ENGINE *e = NULL;
|
||||||
@ -312,7 +317,8 @@ crypto_openssl_init_engines(const char *accelName,
|
|||||||
e = ENGINE_by_id(accelName);
|
e = ENGINE_by_id(accelName);
|
||||||
}
|
}
|
||||||
if (!e) {
|
if (!e) {
|
||||||
log_warn(LD_CRYPTO, "Unable to load dynamic OpenSSL engine \"%s\".",
|
log_warn(LD_CRYPTO, "Unable to load %sdynamic OpenSSL engine \"%s\".",
|
||||||
|
required?"required ":"",
|
||||||
accelName);
|
accelName);
|
||||||
if (required)
|
if (required)
|
||||||
return -1;
|
return -1;
|
||||||
|
@ -1 +1 @@
|
|||||||
Unable to load dynamic OpenSSL engine "nonexistent_chartreuse_accelerator"
|
Unable to load required dynamic OpenSSL engine "nonexistent_chartreuse_accelerator"
|
||||||
|
Loading…
Reference in New Issue
Block a user