Fix SSL initialization for OpenSSL >= 1.1 #24

Злито
SlavekB злито 1 комітів з feat/openssl-1.1-initialization до master 5 роки тому
SlavekB прокоментував(ла) 5 роки тому
Власник

The SSL library is not linked but is dynamically loaded. Older SSL library initialization functions are for OpenSSL >= 1.1 only as macros in headers – to ensure compatibility at source code level. Therefore, searching for symbols for older functions can not be successful.

The proposed patch adds detection for initialization functions for OpenSSL >= 1.1.

The SSL library is not linked but is dynamically loaded. Older SSL library initialization functions are for OpenSSL >= 1.1 only as macros in headers – to ensure compatibility at source code level. Therefore, searching for symbols for older functions can not be successful. The proposed patch adds detection for initialization functions for OpenSSL >= 1.1.
SlavekB додав(ла) до R14.0.6 release етапу 5 роки тому
MicheleC рецензовано 5 роки тому
tdeio/kssl/kopenssl.cc Застарілі
MicheleC прокоментував(ла) 5 роки тому
Власник
#if !defined(OPENSSL_INIT_ADD_ALL_CIPHERS)
# define OPENSSL_INIT_ADD_ALL_CIPHERS        0x00000004L
# define OPENSSL_INIT_ADD_ALL_DIGESTS        0x00000008L
# define OPENSSL_INIT_LOAD_CONFIG            0x00000040L
#endif

I think code would be more readable if these lines are moved before the function call or at the beginning of the files. They don't follow the if() block logic and in this place look a bit awkward, IMO

``` #if !defined(OPENSSL_INIT_ADD_ALL_CIPHERS) # define OPENSSL_INIT_ADD_ALL_CIPHERS 0x00000004L # define OPENSSL_INIT_ADD_ALL_DIGESTS 0x00000008L # define OPENSSL_INIT_LOAD_CONFIG 0x00000040L #endif ``` I think code would be more readable if these lines are moved before the function call or at the beginning of the files. They don't follow the if() block logic and in this place look a bit awkward, IMO
MicheleC зміни затверджено 5 роки тому
MicheleC додав коментар
Власник

Looks good now :-)

Looks good now :-)
SlavekB закрив цей запит на злиття 5 роки тому
SlavekB видалена гілка feat/openssl-1.1-initialization 5 роки тому
Запит на злиття був влитиий як 43609c8a21.
Підпишіться щоб приєднатися до обговорення.
Немає рецензентів
Етап відсутній
Немає виконавця
2 учасників
Сповіщення
Дата завершення

Термін виконання не встановлений.

Залежності

No dependencies set.

Reference: TDE/tdelibs#24
Завантаження…
Тут ще немає жодного змісту.