[email protected] has posted comments on this change. ( http://gerrit.cloudera.org:8080/12420 )
Change subject: Add support for compiling using OpenSSL 1.1 ...................................................................... Patch Set 2: (1 comment) http://gerrit.cloudera.org:8080/#/c/12420/1/be/src/util/openssl-util.cc File be/src/util/openssl-util.cc: http://gerrit.cloudera.org:8080/#/c/12420/1/be/src/util/openssl-util.cc@76 PS1, Line 76: #else : return TLS1_2_VERSION; : #endif : } > Why this change here ? Is there anything wrong with keeping the SSLv23_meth SSLv23_method() still works fine, but the returned object is now opaque. i.e. (cdh) ? cdh git:(hacosta-ubuntu) ? cat hacosta.cc #include <openssl/ssl.h> #include <stdio.h> int MaxSupportedTlsVersion() { return SSLv23_method()->version; } int main() { printf("%d\n", MaxSupportedTlsVersion()); } (cdh) ? cdh git:(hacosta-ubuntu) ? docker run -it -v$(pwd):/mnt -w /mnt impala-toolchain-ubuntu1804 bash -c "gcc hacosta.cc -lssl && ./a.out" hacosta.cc: In function 'int MaxSupportedTlsVersion()': hacosta.cc:5:25: error: invalid use of incomplete type 'const SSL_METHOD {aka const struct ssl_method_st}' return SSLv23_method()->version; -- To view, visit http://gerrit.cloudera.org:8080/12420 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: comment Gerrit-Change-Id: Iaccf1b2dedf0d957a2665df8f9afca4139754264 Gerrit-Change-Number: 12420 Gerrit-PatchSet: 2 Gerrit-Owner: [email protected] <[email protected]> Gerrit-Reviewer: Impala Public Jenkins <[email protected]> Gerrit-Reviewer: Michael Ho <[email protected]> Gerrit-Reviewer: Tim Armstrong <[email protected]> Gerrit-Reviewer: [email protected] <[email protected]> Gerrit-Comment-Date: Tue, 12 Feb 2019 00:34:08 +0000 Gerrit-HasComments: Yes
