mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-30 23:53:32 +01:00
Log more OpenSSL engine statuses at startup.
Fixes ticket 10043; patch from Joshua Datko.
This commit is contained in:
parent
fe0d1c6661
commit
84458b79a7
4
changes/ticket10043
Normal file
4
changes/ticket10043
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
o Minor features:
|
||||||
|
- When logging OpenSSL engine status at startup, log the status of
|
||||||
|
more engines. Fixes ticket 10043; patch from Joshua Datko.
|
||||||
|
|
@ -307,12 +307,22 @@ crypto_global_init(int useAccel, const char *accelName, const char *accelDir)
|
|||||||
" setting default ciphers.");
|
" setting default ciphers.");
|
||||||
ENGINE_set_default(e, ENGINE_METHOD_ALL);
|
ENGINE_set_default(e, ENGINE_METHOD_ALL);
|
||||||
}
|
}
|
||||||
|
/* Log, if available, the intersection of the set of algorithms
|
||||||
|
used by Tor and the set of algorithms available in the engine */
|
||||||
log_engine("RSA", ENGINE_get_default_RSA());
|
log_engine("RSA", ENGINE_get_default_RSA());
|
||||||
log_engine("DH", ENGINE_get_default_DH());
|
log_engine("DH", ENGINE_get_default_DH());
|
||||||
|
log_engine("ECDH", ENGINE_get_default_ECDH());
|
||||||
|
log_engine("ECDSA", ENGINE_get_default_ECDSA());
|
||||||
log_engine("RAND", ENGINE_get_default_RAND());
|
log_engine("RAND", ENGINE_get_default_RAND());
|
||||||
log_engine("SHA1", ENGINE_get_digest_engine(NID_sha1));
|
log_engine("SHA1", ENGINE_get_digest_engine(NID_sha1));
|
||||||
log_engine("3DES", ENGINE_get_cipher_engine(NID_des_ede3_ecb));
|
log_engine("3DES-CBC", ENGINE_get_cipher_engine(NID_des_ede3_cbc));
|
||||||
log_engine("AES", ENGINE_get_cipher_engine(NID_aes_128_ecb));
|
log_engine("AES-128-ECB", ENGINE_get_cipher_engine(NID_aes_128_ecb));
|
||||||
|
log_engine("AES-128-CBC", ENGINE_get_cipher_engine(NID_aes_128_cbc));
|
||||||
|
log_engine("AES-128-CTR", ENGINE_get_cipher_engine(NID_aes_128_ctr));
|
||||||
|
log_engine("AES-128-GCM", ENGINE_get_cipher_engine(NID_aes_128_gcm));
|
||||||
|
log_engine("AES-256-CBC", ENGINE_get_cipher_engine(NID_aes_256_cbc));
|
||||||
|
log_engine("AES-256-GCM", ENGINE_get_cipher_engine(NID_aes_256_gcm));
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
} else {
|
} else {
|
||||||
log_info(LD_CRYPTO, "NOT using OpenSSL engine support.");
|
log_info(LD_CRYPTO, "NOT using OpenSSL engine support.");
|
||||||
|
Loading…
Reference in New Issue
Block a user