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 участников
Уведомления
Срок выполнения

Срок выполнения не установлен.

Зависимости

Зависимостей нет.

Reference: TDE/tdelibs#24
Загрузка…
Пока нет содержимого.