mirror of https://github.com/procxx/kepka.git
fix build against libressl
This commit is contained in:
parent
506b0806d6
commit
73c0c4507a
|
@ -289,7 +289,9 @@ namespace ThirdParty {
|
||||||
av_lockmgr_register(nullptr);
|
av_lockmgr_register(nullptr);
|
||||||
|
|
||||||
CRYPTO_cleanup_all_ex_data();
|
CRYPTO_cleanup_all_ex_data();
|
||||||
|
#ifndef LIBRESSL_VERSION_NUMBER
|
||||||
FIPS_mode_set(0);
|
FIPS_mode_set(0);
|
||||||
|
#endif
|
||||||
ENGINE_cleanup();
|
ENGINE_cleanup();
|
||||||
CONF_modules_unload(1);
|
CONF_modules_unload(1);
|
||||||
ERR_remove_state(0);
|
ERR_remove_state(0);
|
||||||
|
|
|
@ -16,7 +16,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||||
namespace MTP {
|
namespace MTP {
|
||||||
namespace internal {
|
namespace internal {
|
||||||
namespace {
|
namespace {
|
||||||
#if OPENSSL_VERSION_NUMBER < 0x10100000L
|
#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
|
||||||
|
|
||||||
// This is a key setter for compatibility with OpenSSL 1.0
|
// This is a key setter for compatibility with OpenSSL 1.0
|
||||||
int RSA_set0_key(RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d) {
|
int RSA_set0_key(RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d) {
|
||||||
|
|
Loading…
Reference in New Issue