net-snmp: add missing Perl dependencies for snmpcheck
| | |
| | | |
| | | COMPONENT_NAME= net-snmp |
| | | COMPONENT_VERSION= 5.9.4 |
| | | COMPONENT_REVISION= 1 |
| | | COMPONENT_SUMMARY= Net-SNMP Agent files and libraries |
| | | COMPONENT_PROJECT_URL= http://www.net-snmp.org/ |
| | | COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
| | |
| | | COMPONENT_ARCHIVE_URL= https://sourceforge.net/projects/net-snmp/files/net-snmp/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE) |
| | | COMPONENT_FMRI= system/management/snmp/net-snmp |
| | | COMPONENT_CLASSIFICATION= System/Enterprise Management |
| | | COMPONENT_LICENSE= BSD, BSD-like |
| | | COMPONENT_LICENSE_FILE= COPYING |
| | | |
| | | include $(WS_MAKE_RULES)/common.mk |
| | | |
| | | # Our build server doesn't like parallel builds of this package: |
| | | COMPONENT_BUILD_ARGS=-j1 |
| | | |
| | | PKG_MACROS += PERL_ARCH=$(PERL_ARCH) |
| | | |
| | | PATH= $(VPATH):$(PATH.gnu) |
| | | PATH= $(PATH.gnu) |
| | | |
| | | DOXYGEN= /usr/bin/doxygen |
| | | |
| | |
| | | REQUIRED_PACKAGES += shell/ksh93 |
| | | REQUIRED_PACKAGES += system/library |
| | | REQUIRED_PACKAGES += system/library/libpcap |
| | | REQUIRED_PACKAGES += system/library/math |
| | |
| | | # |
| | | |
| | | # |
| | | # Copyright 2023 <contributor> |
| | | # Copyright 2024 <contributor> |
| | | # |
| | | |
| | | set name=pkg.fmri value=pkg:/$(COMPONENT_FMRI)@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION) |
| | |
| | | file path=usr/share/doc/net-snmp/html/check__varbind_8c_source.html |
| | | file path=usr/share/doc/net-snmp/html/check__varbind_8h_source.html |
| | | file path=usr/share/doc/net-snmp/html/classes.html |
| | | file path=usr/share/doc/net-snmp/html/clipboard.js |
| | | file path=usr/share/doc/net-snmp/html/closed.png |
| | | file path=usr/share/doc/net-snmp/html/closedir_8c_source.html |
| | | file path=usr/share/doc/net-snmp/html/config__api_8h_source.html |
| | |
| | | file path=usr/share/doc/net-snmp/html/docd.svg |
| | | file path=usr/share/doc/net-snmp/html/doxygen.css |
| | | file path=usr/share/doc/net-snmp/html/doxygen.svg |
| | | file path=usr/share/doc/net-snmp/html/doxygen_crawl.html |
| | | file path=usr/share/doc/net-snmp/html/ds__agent_8h_source.html |
| | | file path=usr/share/doc/net-snmp/html/dummy_8c_source.html |
| | | file path=usr/share/doc/net-snmp/html/dynsections.js |
| | |
| | | set name=com.oracle.info.description value="the Net-SNMP addon libraries" |
| | | set name=info.source-url value=$(COMPONENT_ARCHIVE_URL) |
| | | set name=info.upstream-url value=$(COMPONENT_PROJECT_URL) |
| | | set name=org.opensolaris.arc-caseid value=LSARC/2008/355 value=PSARC/2014/169 \ |
| | | value=PSARC/2019/050 |
| | | set name=org.opensolaris.consolidation value=$(CONSOLIDATION) |
| | | |
| | | license $(COMPONENT_LICENSE_FILE) license='$(COMPONENT_LICENSE)' |
| | | |
| | | file $(MACH64)/sun/agent/modules/seaExtensions/libseaExtensions.so \ |
| | | path=usr/lib/$(MACH64)/libseaExtensions.so |
| | | license COPYING license="BSD, BSD-like" |
| | |
| | | set name=info.source-url value=$(COMPONENT_ARCHIVE_URL) |
| | | set name=org.opensolaris.consolidation value=$(CONSOLIDATION) |
| | | |
| | | license COPYING license="BSD, BSD-like" |
| | | license $(COMPONENT_LICENSE_FILE) license='$(COMPONENT_LICENSE)' |
| | | |
| | | # snmpcheck needs additional Perl modules |
| | | depend type=require fmri=library/perl-5/termreadkey-$(PLV) |
| | | depend type=require fmri=library/perl-5/tk-$(PLV) |
| | | |
| | | file $(MACH64)/sun/snmpd.conf path=etc/net-snmp/snmp/snmpd.conf mode=0600 \ |
| | | overlay=allow preserve=renamenew |
| | |
| | | file path=usr/share/doc/net-snmp/html/check__varbind_8c_source.html |
| | | file path=usr/share/doc/net-snmp/html/check__varbind_8h_source.html |
| | | file path=usr/share/doc/net-snmp/html/classes.html |
| | | file path=usr/share/doc/net-snmp/html/clipboard.js |
| | | file path=usr/share/doc/net-snmp/html/closed.png |
| | | file path=usr/share/doc/net-snmp/html/closedir_8c_source.html |
| | | file path=usr/share/doc/net-snmp/html/config__api_8h_source.html |
| | |
| | | file path=usr/share/doc/net-snmp/html/docd.svg |
| | | file path=usr/share/doc/net-snmp/html/doxygen.css |
| | | file path=usr/share/doc/net-snmp/html/doxygen.svg |
| | | file path=usr/share/doc/net-snmp/html/doxygen_crawl.html |
| | | file path=usr/share/doc/net-snmp/html/ds__agent_8h_source.html |
| | | file path=usr/share/doc/net-snmp/html/dummy_8c_source.html |
| | | file path=usr/share/doc/net-snmp/html/dynsections.js |
| | |
| | | set name=pkg.linted.pkglint.manifest004 value=true |
| | | set name=com.oracle.info.description value="the Net-SNMP demo module files" |
| | | set name=info.upstream-url value=$(COMPONENT_PROJECT_URL) |
| | | set name=org.opensolaris.arc-caseid value=LSARC/2008/355 value=PSARC/2014/169 \ |
| | | value=PSARC/2019/050 |
| | | set name=org.opensolaris.consolidation value=$(CONSOLIDATION) |
| | | |
| | | license $(COMPONENT_LICENSE_FILE) license='$(COMPONENT_LICENSE)' |
| | | |
| | | file build/$(MACH64)/sun/sdk/demo/demo_module_1/Makefile \ |
| | | path=usr/demo/net-snmp/demo_module_1/Makefile |
| | | file build/$(MACH64)/sun/sdk/demo/demo_module_1/README_demo_module_1 \ |
| | |
| | | path=usr/demo/net-snmp/demo_module_9/set_demo_module_9 |
| | | file build/$(MACH64)/sun/sdk/demo/demo_module_9/walk_demo_module_9 \ |
| | | path=usr/demo/net-snmp/demo_module_9/walk_demo_module_9 |
| | | license COPYING license="BSD, BSD-like" |
| | | depend type=optional \ |
| | | fmri=system/management/snmp/net-snmp/documentation@5.7.3 |
| | |
| | | |
| | | (Upstream Bug) #2374 net-snmp is coring when stopped |
| | | ===================================================================== |
| | | --- net-snmp-5.4.1/snmplib/pkcs.c Tue Mar 5 17:29:50 2013 |
| | | +++ net-snmp-5.4.1/snmplib/pkcs.mod.c Tue Mar 5 17:35:30 2013 |
| | | --- net-snmp-5.9.4/snmplib/pkcs.c.orig |
| | | +++ net-snmp-5.9.4/snmplib/pkcs.c |
| | | @@ -1,5 +1,5 @@ |
| | | /* |
| | | - * Copyright Copyright 2003 Sun Microsystems, Inc. All rights reserved. |
| | |
| | | --- net-snmp-5.4.1/agent/mibgroup/mibII.h (revision 16428) |
| | | +++ net-snmp-5.4.1-patch/agent/mibgroup/mibII.h (working copy) |
| | | @@ -30,3 +30,10 @@ |
| | | #if defined( linux ) |
| | | config_require(ip-mib ip-forward-mib tcp-mib udp-mib) |
| | | --- net-snmp-5.9.4/agent/mibgroup/mibII.h.orig |
| | | +++ net-snmp-5.9.4/agent/mibgroup/mibII.h |
| | | @@ -56,3 +56,10 @@ |
| | | * ip-mib/ipv6ScopeZoneIndexTable |
| | | */ |
| | | #endif |
| | | + |
| | | +/* |
| | |
| | | # RPATH issues when upgrading net-snmp to version 5.4.1 |
| | | # |
| | | # Developed in-house. Solaris-specific; not suitable for upstream |
| | | --- net-snmp-5.9.1/ltmain.sh.orig 2021-05-26 00:19:35.000000000 +0000 |
| | | +++ net-snmp-5.9.1/ltmain.sh 2022-12-25 13:02:08.376343062 +0000 |
| | | --- net-snmp-5.9.4/ltmain.sh.orig |
| | | +++ net-snmp-5.9.4/ltmain.sh |
| | | @@ -6828,7 +6828,9 @@ |
| | | if test rpath = "$prev"; then |
| | | case "$rpath " in |
| | |
| | | # -zdefs, which should work. One such example is FMA in ON gate. |
| | | # Solaris-specific; not suitable for upstream |
| | | # |
| | | --- net-snmp-5.9.3/agent/Makefile.in.~1~ 2022-07-13 23:14:14.000000000 +0000 |
| | | +++ net-snmp-5.9.3/agent/Makefile.in 2022-12-25 14:36:34.896892074 +0000 |
| | | --- net-snmp-5.9.4/agent/Makefile.in.orig |
| | | +++ net-snmp-5.9.4/agent/Makefile.in |
| | | @@ -280,9 +280,13 @@ |
| | | FTOBJS = $(LLIBAGENTFTS) $(FTMIBOBJS) $(FTAGENTOBJS) \ |
| | | mib_modules.ft auto_nlist.ft |
| | |
| | | miblib: $(MIBLIB) |
| | | |
| | | libs: $(AGENTLIB) $(MIBLIB) |
| | | --- net-snmp-5.9.3/agent/helpers/Makefile.in.orig 2022-12-25 14:36:34.898238825 +0000 |
| | | +++ net-snmp-5.9.3/agent/helpers/Makefile.in 2022-12-25 14:41:23.387064549 +0000 |
| | | --- net-snmp-5.9.4/agent/helpers/Makefile.in.orig |
| | | +++ net-snmp-5.9.4/agent/helpers/Makefile.in |
| | | @@ -29,8 +29,11 @@ |
| | | |
| | | LOBJS = dummy.lo |
| | |
| | | - $(RANLIB) $@ |
| | | + $(LIB_LD_CMD) $@ $(LIB_LD_ADD_PATH) $(LOBJS) $(LDFLAGS) $(LIB_LD_LIBS) $(LIB_LD_ADD) |
| | | + $(RANLIB) $@ $(LIB_LD_ADD) |
| | | --- net-snmp-5.9.3/snmplib/Makefile.in.~1~ 2022-07-13 23:14:14.000000000 +0000 |
| | | +++ net-snmp-5.9.3/snmplib/Makefile.in 2022-12-25 14:36:34.899875158 +0000 |
| | | --- net-snmp-5.9.4/snmplib/Makefile.in.orig |
| | | +++ net-snmp-5.9.4/snmplib/Makefile.in |
| | | @@ -221,6 +221,9 @@ |
| | | # just in case someone wants to remove libtool, change this to OBJS. |
| | | TOBJS=$(LOBJS) |
| | |
| | | --- net-snmp-5.9.1/perl/agent/Makefile.PL.orig 2021-05-26 00:19:35.000000000 +0000 |
| | | +++ net-snmp-5.9.1/perl/agent/Makefile.PL 2022-12-25 13:12:48.480816285 +0000 |
| | | --- net-snmp-5.9.4/perl/agent/Makefile.PL.orig |
| | | +++ net-snmp-5.9.4/perl/agent/Makefile.PL |
| | | @@ -88,7 +88,7 @@ |
| | | " -L" . abs_path("../../agent") . |
| | | " " . $Params{'LIBS'}; |
| | |
| | | --- net-snmp-5.9.1/agent/mibgroup/ucd-snmp/vmstat_solaris2.c.orig 2021-05-26 00:19:35.000000000 +0000 |
| | | +++ net-snmp-5.9.1/agent/mibgroup/ucd-snmp/vmstat_solaris2.c 2022-12-25 13:16:37.186868234 +0000 |
| | | --- net-snmp-5.9.4/agent/mibgroup/ucd-snmp/vmstat_solaris2.c.orig |
| | | +++ net-snmp-5.9.4/agent/mibgroup/ucd-snmp/vmstat_solaris2.c |
| | | @@ -590,6 +590,13 @@ |
| | | cpu_sum += (css_new->css_cpu[i] - css_old->css_cpu[i]); |
| | | } |
| | |
| | | --- net-snmp-5.9.1/agent/mibgroup/ucd-snmp/vmstat_solaris2.c.orig 2022-12-25 13:16:37.186868234 +0000 |
| | | +++ net-snmp-5.9.1/agent/mibgroup/ucd-snmp/vmstat_solaris2.c 2022-12-25 13:17:42.686926921 +0000 |
| | | --- net-snmp-5.9.4/agent/mibgroup/ucd-snmp/vmstat_solaris2.c.orig |
| | | +++ net-snmp-5.9.4/agent/mibgroup/ucd-snmp/vmstat_solaris2.c |
| | | @@ -710,7 +710,12 @@ |
| | | case CPUIDLE: |
| | | return ((u_char *) (&cpu_perc[CPU_IDLE])); |
| | |
| | | --- net-snmp-5.9.3/Makefile.in.orig 2022-07-13 23:14:14.000000000 +0000 |
| | | +++ net-snmp-5.9.3/Makefile.in 2022-12-25 20:07:45.576346291 +0000 |
| | | --- net-snmp-5.9.4/Makefile.in.orig |
| | | +++ net-snmp-5.9.4/Makefile.in |
| | | @@ -234,7 +234,7 @@ |
| | | fi |
| | | |
| | |
| | | --- net-snmp-5.9.1/agent/mibgroup/kernel_sunos5.c.orig 2022-12-25 13:03:38.889396309 +0000 |
| | | +++ net-snmp-5.9.1/agent/mibgroup/kernel_sunos5.c 2022-12-25 13:20:20.255771354 +0000 |
| | | --- net-snmp-5.9.4/agent/mibgroup/kernel_sunos5.c.orig |
| | | +++ net-snmp-5.9.4/agent/mibgroup/kernel_sunos5.c |
| | | @@ -1087,18 +1087,21 @@ |
| | | static int |
| | | _dlpi_open(const char *devname) |
| | |
| | | --- net-snmp-5.4.1/doxygen.conf.orig 2012-09-27 11:27:49.421496871 -0700 |
| | | +++ net-snmp-5.4.1/doxygen.conf 2012-09-27 11:29:25.510013537 -0700 |
| | | --- net-snmp-5.9.4/doxygen.conf.orig |
| | | +++ net-snmp-5.9.4/doxygen.conf |
| | | @@ -422,6 +422,12 @@ |
| | | |
| | | HTML_STYLESHEET = |
| | |
| | | # Developed in-house. Bug submitted upstream |
| | | # https://sourceforge.net/p/net-snmp/bugs/2589 |
| | | # |
| | | --- net-snmp-5.9.3/agent/mibgroup/ip-mib/ipAddressTable/ipAddressTable_data_access.c.~1~ 2022-07-13 23:14:14.000000000 +0000 |
| | | +++ net-snmp-5.9.3/agent/mibgroup/ip-mib/ipAddressTable/ipAddressTable_data_access.c 2022-12-25 14:43:54.178517905 +0000 |
| | | --- net-snmp-5.9.4/agent/mibgroup/ip-mib/ipAddressTable/ipAddressTable_data_access.c.orig |
| | | +++ net-snmp-5.9.4/agent/mibgroup/ip-mib/ipAddressTable/ipAddressTable_data_access.c |
| | | @@ -370,6 +370,8 @@ |
| | | * missing addresses to be deleted. Also, prune interfaces in |
| | | * ipaddress_container, so only the new interfaces remain. |
| | |
| | | --- net-snmp-5.8.old/agent/mibgroup/kernel_sunos5.c 2019-03-20 02:09:02.300743680 +0000 |
| | | +++ net-snmp-5.8/agent/mibgroup/kernel_sunos5.c 2019-03-06 04:08:44.088123434 +0000 |
| | | @@ -82,15 +85,15 @@ |
| | | --- net-snmp-5.9.4/agent/mibgroup/kernel_sunos5.c.orig |
| | | +++ net-snmp-5.9.4/agent/mibgroup/kernel_sunos5.c |
| | | @@ -82,15 +82,15 @@ |
| | | static |
| | | mibcache Mibcache[MIBCACHE_SIZE+1] = { |
| | | {MIB_SYSTEM, 0, (void *) -1, 0, 0, 0, 0}, |
| | |
| | | 300, 0, 0}, |
| | | {MIB_ICMP, sizeof(mib2_icmp_t), (void *) -1, 0, 60, 0, 0}, |
| | | {MIB_TCP, sizeof(mib2_tcp_t), (void *) -1, 0, 60, 0, 0}, |
| | | @@ -105,13 +108,13 @@ |
| | | @@ -105,13 +105,13 @@ |
| | | {MIB_SNMP, 0, (void *) -1, 0, 0, 0, 0}, |
| | | #ifdef SOLARIS_HAVE_IPV6_MIB_SUPPORT |
| | | #ifdef SOLARIS_HAVE_RFC4293_SUPPORT |
| | |
| | | diff -Nru net-snmp-5.9.4.orig/net-snmp-create-v3-user.in net-snmp-5.9.4/net-snmp-create-v3-user.in |
| | | --- net-snmp-5.9.4.orig/net-snmp-create-v3-user.in 2023-08-15 22:32:01.000000000 +0200 |
| | | +++ net-snmp-5.9.4/net-snmp-create-v3-user.in 2023-10-08 15:48:18.448638501 +0200 |
| | | --- net-snmp-5.9.4/net-snmp-create-v3-user.in.orig |
| | | +++ net-snmp-5.9.4/net-snmp-create-v3-user.in |
| | | @@ -3,7 +3,7 @@ |
| | | # this shell script is designed to add new SNMPv3 users |
| | | # to Net-SNMP config file. |
| | |
| | | The details can be found in the following location |
| | | https://sourceforge.net/p/net-snmp/bugs/2605/ |
| | | |
| | | --- net-snmp-5.9.3/agent/mibgroup/kernel_sunos5.c.~3~ 2022-12-25 14:43:54.219000322 +0000 |
| | | +++ net-snmp-5.9.3/agent/mibgroup/kernel_sunos5.c 2022-12-25 14:43:54.312888822 +0000 |
| | | --- net-snmp-5.9.4/agent/mibgroup/kernel_sunos5.c.orig |
| | | +++ net-snmp-5.9.4/agent/mibgroup/kernel_sunos5.c |
| | | @@ -1739,8 +1739,8 @@ |
| | | if (ifp->ifAdminStatus == 1) { |
| | | int i_tmp; |
| | |
| | | --- net-snmp-5.9.1/snmplib/scapi.c.orig 2021-05-26 00:19:35.000000000 +0000 |
| | | +++ net-snmp-5.9.1/snmplib/scapi.c 2022-12-25 14:11:22.618794767 +0000 |
| | | @@ -204,6 +204,16 @@ |
| | | --- net-snmp-5.9.4/snmplib/scapi.c.orig |
| | | +++ net-snmp-5.9.4/snmplib/scapi.c |
| | | @@ -205,6 +205,16 @@ |
| | | }; |
| | | |
| | | |
| | |
| | | /* |
| | | * sc_get_priv_alg(oid *privoid, u_int len) |
| | | * |
| | | @@ -780,7 +790,6 @@ |
| | | @@ -781,7 +791,6 @@ |
| | | if (NULL == hashfn) { |
| | | QUITFUN(SNMPERR_GENERR, sc_generate_keyed_hash_quit); |
| | | } |
| | |
| | | HMAC(hashfn, key, keylen, message, msglen, buf, &buf_len); |
| | | if (buf_len != properlength) { |
| | | QUITFUN(rval, sc_generate_keyed_hash_quit); |
| | | @@ -1262,43 +1271,10 @@ |
| | | @@ -1263,43 +1272,10 @@ |
| | | |
| | | #ifndef NETSNMP_DISABLE_DES |
| | | if (USM_CREATE_USER_PRIV_DES == (pai->type & USM_PRIV_MASK_ALG)) { |
| | |
| | | } |
| | | } |
| | | #endif |
| | | @@ -1517,13 +1493,11 @@ |
| | | @@ -1518,13 +1494,11 @@ |
| | | memset(my_iv, 0, sizeof(my_iv)); |
| | | #ifndef NETSNMP_DISABLE_DES |
| | | if (USM_CREATE_USER_PRIV_DES == (pai->type & USM_PRIV_MASK_ALG)) { |
| | |
| | | } |
| | | #endif |
| | | #if defined(NETSNMP_USE_OPENSSL) && defined(HAVE_AES) |
| | | @@ -1850,4 +1824,87 @@ |
| | | @@ -1851,4 +1825,87 @@ |
| | | return rc; |
| | | } |
| | | #endif /* NETSNMP_USE_INTERNAL_CRYPTO */ |
| | |
| | | --- net-snmp-5.9.1/snmplib/scapi.c.orig 2022-12-25 14:11:22.618794767 +0000 |
| | | +++ net-snmp-5.9.1/snmplib/scapi.c 2022-12-25 14:13:51.041657458 +0000 |
| | | @@ -206,6 +206,10 @@ |
| | | --- net-snmp-5.9.4/snmplib/scapi.c.orig |
| | | +++ net-snmp-5.9.4/snmplib/scapi.c |
| | | @@ -207,6 +207,10 @@ |
| | | |
| | | #ifdef NETSNMP_USE_OPENSSL |
| | | static |
| | |
| | | int EVP_decrypt(const EVP_CIPHER *type, u_char * key, |
| | | u_int keylen, u_char * iv, u_char * ciphertext, |
| | | u_int ctlen, u_char * plaintext); |
| | | @@ -743,7 +747,7 @@ |
| | | @@ -744,7 +748,7 @@ |
| | | size_t properlength; |
| | | u_char buf[SNMP_MAXBUF_SMALL]; |
| | | #if defined(NETSNMP_USE_OPENSSL) || defined(NETSNMP_USE_PKCS11) |
| | |
| | | #endif |
| | | #ifdef NETSNMP_USE_OPENSSL |
| | | const EVP_MD *hashfn; |
| | | @@ -790,7 +794,12 @@ |
| | | @@ -791,7 +795,12 @@ |
| | | if (NULL == hashfn) { |
| | | QUITFUN(SNMPERR_GENERR, sc_generate_keyed_hash_quit); |
| | | } |
| | |
| | | if (buf_len != properlength) { |
| | | QUITFUN(rval, sc_generate_keyed_hash_quit); |
| | | } |
| | | @@ -1826,6 +1835,49 @@ |
| | | @@ -1827,6 +1836,49 @@ |
| | | #endif /* NETSNMP_USE_INTERNAL_CRYPTO */ |
| | | #ifdef NETSNMP_USE_OPENSSL |
| | | static |
| | |
| | | --- net-snmp-5.9.1/snmplib/scapi.c.orig 2022-12-25 14:13:51.041657458 +0000 |
| | | +++ net-snmp-5.9.1/snmplib/scapi.c 2022-12-25 14:17:00.844847777 +0000 |
| | | @@ -207,8 +207,8 @@ |
| | | --- net-snmp-5.9.4/snmplib/scapi.c.orig |
| | | +++ net-snmp-5.9.4/snmplib/scapi.c |
| | | @@ -208,8 +208,8 @@ |
| | | #ifdef NETSNMP_USE_OPENSSL |
| | | static |
| | | void EVP_hmac(const EVP_MD *evp_md, const void *key, |
| | |
| | | static |
| | | int EVP_decrypt(const EVP_CIPHER *type, u_char * key, |
| | | u_int keylen, u_char * iv, u_char * ciphertext, |
| | | @@ -796,7 +796,7 @@ |
| | | @@ -797,7 +797,7 @@ |
| | | } |
| | | #ifndef NETSNMP_DISABLE_MD5 |
| | | if (auth_type == NETSNMP_USMAUTH_HMACMD5) |
| | |
| | | else |
| | | #endif |
| | | HMAC(hashfn, key, keylen, message, msglen, buf, &buf_len); |
| | | @@ -1836,8 +1836,8 @@ |
| | | @@ -1837,8 +1837,8 @@ |
| | | #ifdef NETSNMP_USE_OPENSSL |
| | | static |
| | | void EVP_hmac(const EVP_MD *evp_md, const void *key, |
| | |
| | | { |
| | | EVP_MD_CTX* mdctx = NULL; |
| | | EVP_PKEY *pkey = NULL; |
| | | @@ -1861,7 +1861,7 @@ |
| | | @@ -1862,7 +1862,7 @@ |
| | | EVP_PKEY_free(pkey); |
| | | return; |
| | | } |
| | |
| | | --- net-snmp-5.9.1/snmplib/scapi.c.orig 2022-12-25 14:17:00.844847777 +0000 |
| | | +++ net-snmp-5.9.1/snmplib/scapi.c 2022-12-25 14:17:51.957349229 +0000 |
| | | @@ -212,7 +212,7 @@ |
| | | --- net-snmp-5.9.4/snmplib/scapi.c.orig |
| | | +++ net-snmp-5.9.4/snmplib/scapi.c |
| | | @@ -213,7 +213,7 @@ |
| | | static |
| | | int EVP_decrypt(const EVP_CIPHER *type, u_char * key, |
| | | u_int keylen, u_char * iv, u_char * ciphertext, |
| | |
| | | static |
| | | int EVP_encrypt(const EVP_CIPHER *type, u_char * key, |
| | | u_int keylen, u_char * iv, const u_char * plaintext, |
| | | @@ -1504,7 +1504,7 @@ |
| | | @@ -1505,7 +1505,7 @@ |
| | | if (USM_CREATE_USER_PRIV_DES == (pai->type & USM_PRIV_MASK_ALG)) { |
| | | if(!EVP_decrypt(EVP_des_cbc(), key, |
| | | keylen, iv, ciphertext, |
| | |
| | | QUITFUN(SNMPERR_GENERR, sc_decrypt_quit); |
| | | } |
| | | } |
| | | @@ -1899,20 +1899,36 @@ |
| | | @@ -1900,20 +1900,36 @@ |
| | | return FALSE; |
| | | } |
| | | EVP_CIPHER_CTX_set_key_length(ctx, keylen); |
| | |
| | | *ctlen = outlen; |
| | | |
| | | return TRUE; |
| | | @@ -1921,12 +1937,12 @@ |
| | | @@ -1922,12 +1938,12 @@ |
| | | static |
| | | int EVP_decrypt(const EVP_CIPHER *type, u_char * key, |
| | | u_int keylen, u_char * iv, u_char * ciphertext, |
| | |
| | | if((ctx = EVP_CIPHER_CTX_new()) == NULL) { |
| | | snmp_log(LOG_ERR, "EVP_CIPHER_CTX_new failure.\n"); |
| | | return FALSE; |
| | | @@ -1940,21 +1956,39 @@ |
| | | @@ -1941,21 +1957,39 @@ |
| | | return FALSE; |
| | | } |
| | | EVP_CIPHER_CTX_set_key_length(ctx, keylen); |
| | |
| | | Patch developed inhouse, submitted upstream. |
| | | Details at |
| | | https://sourceforge.net/p/net-snmp/bugs/2940/ |
| | | --- net-snmp-5.9.3/net-snmp-create-v3-user.in.orig 2022-12-25 14:55:06.731078431 +0000 |
| | | +++ net-snmp-5.9.3/net-snmp-create-v3-user.in 2022-12-25 14:58:07.440774009 +0000 |
| | | --- net-snmp-5.9.4/net-snmp-create-v3-user.in.orig |
| | | +++ net-snmp-5.9.4/net-snmp-create-v3-user.in |
| | | @@ -122,7 +122,7 @@ |
| | | if test "x$xpassphrase" = "x" ; then |
| | | line="createUser $user $Aalgorithm \"$apassphrase\" $Xalgorithm" |
| | |
| | | Solaris specific patch, not suitable for upstream. |
| | | --- net-snmp-5.9.1/man/snmptrapd.conf.5.def.orig 2021-05-26 00:19:35.000000000 +0000 |
| | | +++ net-snmp-5.9.1/man/snmptrapd.conf.5.def 2022-12-25 14:20:06.545656601 +0000 |
| | | --- net-snmp-5.9.4/man/snmptrapd.conf.5.def.orig |
| | | +++ net-snmp-5.9.4/man/snmptrapd.conf.5.def |
| | | @@ -309,7 +309,7 @@ |
| | | The default in each case is for the feature to be turned off, so these |
| | | directives are typically only used to enable the appropriate behaviour. |
| | |
| | | .SH "SEE ALSO" |
| | | snmp_config(5), snmptrapd(8), syslog(8), traptoemail(1), variables(5), netsnmp_config_api(3). |
| | | |
| | | --- net-snmp-5.9.1/man/snmpd.conf.5.def.orig 2021-05-26 00:19:35.000000000 +0000 |
| | | +++ net-snmp-5.9.1/man/snmpd.conf.5.def 2022-12-25 14:20:06.548350184 +0000 |
| | | @@ -1852,7 +1852,7 @@ |
| | | --- net-snmp-5.9.4/man/snmpd.conf.5.def.orig |
| | | +++ net-snmp-5.9.4/man/snmpd.conf.5.def |
| | | @@ -1865,7 +1865,7 @@ |
| | | detailed example of how the above information is used in real |
| | | examples. |
| | | .SH "FILES" |
| | |
| | | diff -Nru net-snmp-5.9.4.orig/configure net-snmp-5.9.4/configure |
| | | --- net-snmp-5.9.4.orig/configure 2023-08-15 22:32:24.000000000 +0200 |
| | | +++ net-snmp-5.9.4/configure 2023-10-08 16:30:14.614812598 +0200 |
| | | --- net-snmp-5.9.4/configure.orig |
| | | +++ net-snmp-5.9.4/configure |
| | | @@ -31670,7 +31670,7 @@ |
| | | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${type}" >&5 |
| | | printf "%s\n" "${type}" >&6; } |
| | |
| | | "shell/ksh93", |
| | | "system/header/header-picl", |
| | | "system/library", |
| | | "system/library/libpcap", |
| | | "system/library/math" |
| | | "system/library/libpcap" |
| | | ], |
| | | "fmris": [ |
| | | "system/management/snmp/net-snmp", |
| | |
| | | "system/management/snmp/net-snmp/demo" |
| | | ], |
| | | "name": "net-snmp" |
| | | } |
| | | } |