Resolves: #2004351 - remove ERR_GET_FUNC from code
This commit is contained in:
parent
8c84e94b7d
commit
fc25bbe4da
35
net-snmp-5.9.1-remove-err-log.patch
Normal file
35
net-snmp-5.9.1-remove-err-log.patch
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
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)
|
||||||
|
{
|
@ -10,7 +10,7 @@
|
|||||||
Summary: A collection of SNMP protocol tools and libraries
|
Summary: A collection of SNMP protocol tools and libraries
|
||||||
Name: net-snmp
|
Name: net-snmp
|
||||||
Version: 5.9.1
|
Version: 5.9.1
|
||||||
Release: 9%{?dist}
|
Release: 10%{?dist}
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
|
|
||||||
License: BSD
|
License: BSD
|
||||||
@ -52,6 +52,7 @@ Patch22: net-snmp-5.9-ECC-cert.patch
|
|||||||
Patch23: net-snmp-5.9-intermediate-certs.patch
|
Patch23: net-snmp-5.9-intermediate-certs.patch
|
||||||
Patch24: net-snmp-5.9.1-remove-des.patch
|
Patch24: net-snmp-5.9.1-remove-des.patch
|
||||||
Patch25: net-snmp-5.9.1-autoconf.patch
|
Patch25: net-snmp-5.9.1-autoconf.patch
|
||||||
|
Patch26: net-snmp-5.9.1-remove-err-log.patch
|
||||||
|
|
||||||
# Modern RPM API means at least EL6
|
# Modern RPM API means at least EL6
|
||||||
Patch101: net-snmp-5.8-modern-rpm-api.patch
|
Patch101: net-snmp-5.8-modern-rpm-api.patch
|
||||||
@ -230,6 +231,7 @@ cp %{SOURCE10} .
|
|||||||
%patch23 -p1 -b .intermediate-certs
|
%patch23 -p1 -b .intermediate-certs
|
||||||
%patch24 -p1 -b .remove-des
|
%patch24 -p1 -b .remove-des
|
||||||
%patch25 -p1 -b .autoconf
|
%patch25 -p1 -b .autoconf
|
||||||
|
%patch26 -p1 -b .remove-err-log
|
||||||
|
|
||||||
%patch101 -p1 -b .modern-rpm-api
|
%patch101 -p1 -b .modern-rpm-api
|
||||||
%patch102 -p1
|
%patch102 -p1
|
||||||
@ -499,6 +501,9 @@ LD_LIBRARY_PATH=%{buildroot}/%{_libdir} make test
|
|||||||
%{_libdir}/libnetsnmptrapd*.so.%{soname}*
|
%{_libdir}/libnetsnmptrapd*.so.%{soname}*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Sep 15 2021 Josef Ridky <jridky@redhat.com> - 1:5.9.1-10
|
||||||
|
- Remove ERR_GET_FUNC from code (#2004351)
|
||||||
|
|
||||||
* Tue Sep 14 2021 Sahana Prasad <sahana@redhat.com> - 1:5.9.1-9
|
* Tue Sep 14 2021 Sahana Prasad <sahana@redhat.com> - 1:5.9.1-9
|
||||||
- Rebuilt with OpenSSL 3.0.0
|
- Rebuilt with OpenSSL 3.0.0
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user