Subject: | Compiler warnings - openssl 1.1.0g |
Building on OS X 10.13.3 with openssl 1.1.0g
I am seeing a handful of deprecation and incompatible pointer errors:
SSLeay.c:10064:11: warning: incompatible pointer to integer conversion passing 'void *' to parameter of type 'long' [-Wint-conversion]
SSLeay.c:10083:11: warning: incompatible pointer to integer conversion passing 'void *' to parameter of type 'long' [-Wint-conversion]
SSLeay.c:10102:11: warning: incompatible pointer to integer conversion passing 'void *' to parameter of type 'long' [-Wint-conversion]
SSLeay.c:10121:11: warning: incompatible pointer to integer conversion passing 'void *' to parameter of type 'long' [-Wint-conversion]
SSLeay.c:16734:27: warning: incompatible pointer types passing 'OCSP_RESPONSE *' (aka 'struct ocsp_response_st *') to parameter of type
SSLeay.c:6724:11: warning: 'X509_CRL_get_lastUpdate' is deprecated [-Wdeprecated-declarations]
SSLeay.c:6743:11: warning: 'X509_CRL_get_nextUpdate' is deprecated [-Wdeprecated-declarations]
SSLeay.c:9755:11: warning: 'TLSv1_method' is deprecated [-Wdeprecated-declarations]
SSLeay.c:9772:11: warning: 'TLSv1_server_method' is deprecated [-Wdeprecated-declarations]
SSLeay.c:9789:11: warning: 'TLSv1_client_method' is deprecated [-Wdeprecated-declarations]
SSLeay.c:9809:11: warning: 'TLSv1_1_method' is deprecated [-Wdeprecated-declarations]
SSLeay.c:9826:11: warning: 'TLSv1_1_server_method' is deprecated [-Wdeprecated-declarations]
SSLeay.c:9843:11: warning: 'TLSv1_1_client_method' is deprecated [-Wdeprecated-declarations]
SSLeay.c:9864:11: warning: 'TLSv1_2_method' is deprecated [-Wdeprecated-declarations]
SSLeay.c:9881:11: warning: 'TLSv1_2_server_method' is deprecated [-Wdeprecated-declarations]
SSLeay.c:9898:11: warning: 'TLSv1_2_client_method' is deprecated [-Wdeprecated-declarations]
SSLeay.xs:2285:28: warning: 'TLSv1_method' is deprecated [-Wdeprecated-declarations]
SSLeay.xs:2294:28: warning: 'TLSv1_1_method' is deprecated [-Wdeprecated-declarations]
SSLeay.xs:2305:28: warning: 'TLSv1_2_method' is deprecated [-Wdeprecated-declarations]
SSLeay.xs:3184:14: warning: 'RAND_pseudo_bytes' is deprecated [-Wdeprecated-declarations]
SSLeay.xs:3887:64: warning: 'ASN1_STRING_data' is deprecated [-Wdeprecated-declarations]
SSLeay.xs:3896:64: warning: 'ASN1_STRING_data' is deprecated [-Wdeprecated-declarations]
SSLeay.xs:3947:58: warning: 'ASN1_STRING_data' is deprecated [-Wdeprecated-declarations]
SSLeay.xs:3989:14: warning: 'ASN1_STRING_data' is deprecated [-Wdeprecated-declarations]
SSLeay.xs:4306:35: warning: 'ASN1_STRING_data' is deprecated [-Wdeprecated-declarations]
SSLeay.xs:5920:18: warning: 'RSA_generate_key' is deprecated [-Wdeprecated-declarations]
Before I try and fix any of these I figured I'd check and see if anyone else has approached these (or that the error is all on my side). I am also not sure if fixing the deprecations will cause backward compatibility issues.
gcc version:
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 9.0.0 (clang-900.0.39.2)
Target: x86_64-apple-darwin17.4.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin