Use TLS_client_method() instead of deprecated SSLv23_client_method()
This commit is contained in:
Родитель
0df231d79f
Коммит
734daba506
|
@ -43,6 +43,9 @@ librdkafka v1.7.0 is feature release:
|
|||
One occurrence of this issue was query_watermark_offsets() that could return
|
||||
`ERR__UNKNOWN_PARTITION` for existing partitions shortly after the
|
||||
client instance was created.
|
||||
* The OpenSSL context is now initialized with `TLS_client_method()`
|
||||
(on OpenSSL >= 1.1.0) instead of the deprecated and outdated
|
||||
`SSLv23_client_method()`.
|
||||
|
||||
### Consumer fixes
|
||||
|
||||
|
|
|
@ -1326,10 +1326,14 @@ int rd_kafka_ssl_ctx_init (rd_kafka_t *rk, char *errstr, size_t errstr_size) {
|
|||
if (errstr_size > 0)
|
||||
errstr[0] = '\0';
|
||||
|
||||
#if OPENSSL_VERSION_NUMBER >= 0x10100000
|
||||
ctx = SSL_CTX_new(TLS_client_method());
|
||||
#else
|
||||
ctx = SSL_CTX_new(SSLv23_client_method());
|
||||
#endif
|
||||
if (!ctx) {
|
||||
rd_snprintf(errstr, errstr_size,
|
||||
"SSLv23_client_method() failed: ");
|
||||
"SSL_CTX_new() failed: ");
|
||||
goto fail;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче