We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In the function netsnmp_openssl_err_log() there is this:
netsnmp_openssl_err_log()
snmp_log(LOG_ERR, "library=%d, function=%d, reason=%d\n", ERR_GET_LIB(err), ERR_GET_FUNC(err), ERR_GET_REASON(err));
According to https://www.openssl.org/news/changelog.html, the ERR_GET_FUNC() macro (?) was removed some time ago. Could this be patched like this:
ERR_GET_FUNC()
--- a/snmplib/snmp_openssl.c 2021-09-08 09:10:44 +++ b/snmplib/snmp_openssl.c 2021-09-08 11:33:34 @@ -939,6 +939,10 @@ #ifndef NETSNMP_FEATURE_REMOVE_OPENSSL_ERR_LOG +#ifndef ERR_GET_FUNC +#define ERR_GET_FUNC(e) (int)(((e) >> 12L) & 0xFFFL) /* removed in OpenSSL 3.0 */ +#endif + void netsnmp_openssl_err_log(const char *prefix)
I see no reference to NETSNMP_FEATURE_REMOVE_OPENSSL_ERR_LOG. So this function is always compiled AFAICS.
NETSNMP_FEATURE_REMOVE_OPENSSL_ERR_LOG
The text was updated successfully, but these errors were encountered:
19e7574
Please take a look at commits 19e7574 (v5.9 branch) and 8518baf (master branch).
Sorry, something went wrong.
No branches or pull requests
In the function
netsnmp_openssl_err_log()
there is this:According to https://www.openssl.org/news/changelog.html, the
ERR_GET_FUNC()
macro (?) was removed some time ago.Could this be patched like this:
I see no reference to
NETSNMP_FEATURE_REMOVE_OPENSSL_ERR_LOG
. So this function is always compiled AFAICS.The text was updated successfully, but these errors were encountered: