Fix SSL initialization for OpenSSL >= 1.1 #24

Scalone
SlavekB scala 1 commity/ów z feat/openssl-1.1-initialization do master 5 lat temu
SlavekB skomentował(-a) 5 lat temu
Właściciel

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 dodaje to do kamienia milowego R14.0.6 release 5 lat temu
MicheleC zrecenzowano 5 lat temu
MicheleC skomentował(-a) 5 lat temu
Właściciel
#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 zatwierdza te zmiany 5 lat temu
MicheleC zostawił komentarz
Właściciel

Looks good now :-)

Looks good now :-)
SlavekB zamknął(-ęła) ten pull request 5 lat temu
SlavekB usuwa gałąź feat/openssl-1.1-initialization 5 lat temu
Pull Request został scalony jako 43609c8a21.
Zaloguj się, aby dołączyć do tej rozmowy.
Brak recenzentów
Brak kamienia milowego
Brak przypisanych
Uczestnicy 2
Powiadomienia
Termin realizacji

Brak ustawionego terminu realizacji.

Zależności

No dependencies set.

Reference: TDE/tdelibs#24
Ładowanie…
Nie ma jeszcze treści.