cron2 has submitted this change. ( http://gerrit.openvpn.net/c/openvpn/+/1359?usp=email )
Change subject: openssl_compat: Avoid conversion warning for SSL_get_negotiated_group ...................................................................... openssl_compat: Avoid conversion warning for SSL_get_negotiated_group SSL_get_negotiated_group is documented to return int and SSL_group_to_name definitely expects an int. But SSL_get_negotiated_group is actually a macro implemented by SSL_ctrl, which does return a long. So to avoid the conversion warning we need the cast. Change-Id: I31024f93d9d9d0f678fb39d4758a7e870bf00873 Signed-off-by: Frank Lichtenheld <[email protected]> Acked-by: Arne Schwabe <[email protected]> Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1359 Message-Id: <[email protected]> URL: https://www.mail-archive.com/[email protected]/msg34316.html Signed-off-by: Gert Doering <[email protected]> --- M src/openvpn/openssl_compat.h 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/openvpn/openssl_compat.h b/src/openvpn/openssl_compat.h index fb3c9b1..b9af132 100644 --- a/src/openvpn/openssl_compat.h +++ b/src/openvpn/openssl_compat.h @@ -194,21 +194,12 @@ LIBRESSL_VERSION_NUMBER > 0x3050400fL) */ #if OPENSSL_VERSION_NUMBER < 0x30200000L && OPENSSL_VERSION_NUMBER >= 0x30000000L -#if defined(__GNUC__) || defined(__clang__) -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wconversion" -#endif - static inline const char * SSL_get0_group_name(SSL *s) { - int nid = SSL_get_negotiated_group(s); + int nid = (int)SSL_get_negotiated_group(s); return SSL_group_to_name(s, nid); } - -#if defined(__GNUC__) || defined(__clang__) -#pragma GCC diagnostic pop -#endif #endif /* Introduced in OpenSSL 3.6.0 */ -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/1359?usp=email To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email Gerrit-MessageType: merged Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: I31024f93d9d9d0f678fb39d4758a7e870bf00873 Gerrit-Change-Number: 1359 Gerrit-PatchSet: 3 Gerrit-Owner: flichtenheld <[email protected]> Gerrit-Reviewer: plaisthos <[email protected]> Gerrit-CC: openvpn-devel <[email protected]>
_______________________________________________ Openvpn-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openvpn-devel
