Fix SSL initialization for OpenSSL >= 1.1 #24

Merge aplicado
SlavekB aplicou merge dos 1 commits de feat/openssl-1.1-initialization em master 5 anos atrás
Proprietário

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 adicionou esta issue para o marco R14.0.6 release 5 anos atrás
MicheleC revisou 5 anos atrás
tdeio/kssl/kopenssl.cc Desatualizado
Proprietário
#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 aprovou estas alterações 5 anos atrás
MicheleC deixou um comentário
Proprietário

Looks good now :-)

Looks good now :-)
SlavekB fechou este pull request 5 anos atrás
SlavekB excluiu branch feat/openssl-1.1-initialization 5 anos atrás
O pull request teve merge aplicado como 43609c8a21.
Acesse para participar desta conversação.
Sem revisor
Sem responsável
2 participante(s)
Notificações
Data limite

Data limite não informada.

Dependências

Nenhuma dependência definida.

Referência: TDE/tdelibs#24
Carregando…
Ainda não há conteúdo.