36 lines
1.3 KiB
Diff
36 lines
1.3 KiB
Diff
|
diff -urNp a/include/net-snmp/library/snmp_openssl.h b/include/net-snmp/library/snmp_openssl.h
|
||
|
--- a/include/net-snmp/library/snmp_openssl.h 2021-09-15 07:55:39.829901038 +0200
|
||
|
+++ b/include/net-snmp/library/snmp_openssl.h 2021-09-15 07:56:18.656412998 +0200
|
||
|
@@ -44,7 +44,6 @@ extern "C" {
|
||
|
/*
|
||
|
* misc
|
||
|
*/
|
||
|
- void netsnmp_openssl_err_log(const char *prefix);
|
||
|
void netsnmp_openssl_null_checks(SSL *ssl, int *nullAuth, int *nullCipher);
|
||
|
|
||
|
/*
|
||
|
diff -urNp a/snmplib/snmp_openssl.c b/snmplib/snmp_openssl.c
|
||
|
--- a/snmplib/snmp_openssl.c 2021-09-15 07:55:39.785900458 +0200
|
||
|
+++ b/snmplib/snmp_openssl.c 2021-09-15 07:57:30.914417600 +0200
|
||
|
@@ -937,20 +937,6 @@ netsnmp_openssl_cert_issued_by(X509 *iss
|
||
|
return (X509_check_issued(issuer, cert) == X509_V_OK);
|
||
|
}
|
||
|
|
||
|
-
|
||
|
-#ifndef NETSNMP_FEATURE_REMOVE_OPENSSL_ERR_LOG
|
||
|
-void
|
||
|
-netsnmp_openssl_err_log(const char *prefix)
|
||
|
-{
|
||
|
- unsigned long err;
|
||
|
- for (err = ERR_get_error(); err; err = ERR_get_error()) {
|
||
|
- snmp_log(LOG_ERR,"%s: %ld\n", prefix ? prefix: "openssl error", err);
|
||
|
- snmp_log(LOG_ERR, "library=%d, function=%d, reason=%d\n",
|
||
|
- ERR_GET_LIB(err), ERR_GET_FUNC(err), ERR_GET_REASON(err));
|
||
|
- }
|
||
|
-}
|
||
|
-#endif /* NETSNMP_FEATURE_REMOVE_OPENSSL_ERR_LOG */
|
||
|
-
|
||
|
void
|
||
|
netsnmp_openssl_null_checks(SSL *ssl, int *null_auth, int *null_cipher)
|
||
|
{
|