# -*- text -*-

----------------------------------------------------------------------

Changes: V5.9.1.rc1 -> V5.9.1

commit 2eed7fe490bb6735a6c94b0cf03d9ff5d7884087
Author: Wes Hardaker <opensource@hardakers.net>
Date:   Tue May 25 14:49:51 2021 -0700

    remove the RC flag

commit d9d7b9b63b7b5c7be1b6de675b94f3f0ef7596ae
Author: Wes Hardaker <opensource@hardakers.net>
Date:   Tue May 25 14:49:10 2021 -0700

    Version number update: 5.9.1

----------------------------------------------------------------------

Changes: V5.9.1.pre1 -> V5.9.1.rc1

commit 05617ca6fd1d8355663de48280ade58d49050d33
Author: Wes Hardaker <opensource@hardakers.net>
Date:   Wed Apr 28 14:15:15 2021 -0700

    Release Candidate for V5-9-patches

commit c371b1d7aa174871367b2a5de23431cf7348f1a4
Author: Wes Hardaker <opensource@hardakers.net>
Date:   Wed Apr 28 14:15:13 2021 -0700

    Version number update: 5.9.1.rc1

commit 5ceb3ebc2fe138d35a498f402254335baffecee5
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Thu Apr 15 10:30:04 2021 -0700

    ci/build.sh: Disable parallel compilation for minimalist mode

commit f69daae8a958daa8b50e8767da216ef9570b2e6c
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Thu Apr 15 10:45:39 2021 -0700

    Run 'make distdepend'

commit 9f1d8188bae2990b42f8aef1c4f65dd18c1c1924
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Thu Apr 15 09:29:30 2021 -0700

    Makefile.rules: Retain only -D and -I options when regenerating dependencies
    
    The 'makedepend' command accepts the cc -D and -I options but not the other
    options that may occur in $(CPPFLAGS) (-f, -g, -O, -pipe, ...).

commit 9ea3d8b93c9bb7da7fea13ee6c92356a6b82a5fb
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Wed Apr 14 20:03:15 2021 -0700

    Makefile.in: Make sure that 'sedscript' is built before subdirectories
    
    This is a follow-up for commit 855e1c28dad5 ("Makefile.in, agent/Makefile.in:
    Fix parallel compilation").

commit 4fba346d04c26154098b917ad8769515e3766061
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Wed Apr 14 17:50:59 2021 -0700

    Windows: Unbreak the build
    
    Fixes: d6fac610cdea ("Fix the crash of snmpd when snmptrapd terminates the TCP connection.")

commit 93ea661906fb25657a63cfd757ef7a04c4dd0b33
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Wed Apr 14 16:12:43 2021 -0700

    snmpd, FreeBSD 13: Make sure that filesystem statistics are up to date
    
    Make snmpd report the current statistics instead of statistics cached at
    mount time by the operating system.
    
    Fixes: https://github.com/net-snmp/net-snmp/issues/282

commit bd5bc2df5d39a5c730a86f1c452b69f35841fdba
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Wed Apr 14 09:51:18 2021 -0700

    ci/build.sh: Enable parallel compilation

commit 855e1c28dad53d6263c6c0c302438d2dc3128cc5
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Wed Apr 14 09:35:24 2021 -0700

    Makefile.in, agent/Makefile.in: Fix parallel compilation
    
    See also https://github.com/net-snmp/net-snmp/issues/283 .

commit ec9068cd270677860e5832bee791a40ec33e08b2
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Tue Apr 13 08:59:13 2021 -0700

    ci/openssl.bat: Bump the OpenSSL version

commit 021d10edbf0c4b7754b994ad0e0ffb090f6dac32
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Tue Apr 13 08:59:13 2021 -0700

    ci/openssl.bat: Bump the OpenSSL version

commit 6a77db5c7dc4e31afb6bca93c5394f224c55a179
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Mon Apr 12 21:41:15 2021 -0700

    UCD-SNMP-MIB: Let configure detect whether or not getmntinfo() is available


----------------------------------------------------------------------

Changes: V5.9 -> V5.9.1.pre1

commit f9312b44b71ddd247a98c6aff3e986d027e7eaa4
Author: Wes Hardaker <opensource@hardakers.net>
Date:   Mon Apr 5 16:31:47 2021 -0700

    version update for 5.9.1.pre1

commit 3080795082e347504a3cd290f840b6b024d729df
Author: Wes Hardaker <opensource@hardakers.net>
Date:   Mon Apr 5 16:30:09 2021 -0700

    fix comment to C

commit 0b886fc4d842f0f434606c4d35e610341cb650f7
Author: Wes Hardaker <opensource@hardakers.net>
Date:   Mon Apr 5 15:38:35 2021 -0700

    Version number update: 5.9.1.pre1

commit b5429f6d8556f05100eadec681680df215a2d9e8
Author: Wes Hardaker <opensource@hardakers.net>
Date:   Mon Apr 5 15:38:24 2021 -0700

    version update for 5.9.1.pre1

commit f36a9c4a747863d0c258a7a816381c9f15781f3c
Author: Tobias Deiminger <tobias.deiminger@rohde-schwarz.com>
Date:   Wed Oct 7 08:36:40 2020 +0200

    Fix regex for "-l" discovery in setup.py
    
    This prevents setup.py from discovering wrong library link options (-l, -L)
    in the middle of a word, like "inux-gnu" from "-L/usr/lib/x86_64-linux-gnu".
    
    For net-snmp-config output as follows (real world example from Ubuntu 18.04):
    "-Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now -L/usr/lib/x86_64-linux-gnu -lnetsnmp -lcrypto -lm"
    the former regex "-l(\S+)" would match to
    ['inux-gnu', 'netsnmp', 'crypto', 'm']
    which obviously results in a ld error "cannot find -linux-gnu".
    
    Now we capture a string only, if "-l" is at the beginning of a string,
    or if "-l" is preceeded by any number of whitespace characters.

commit c2db3407dd4dd1a288042b06967a35712004e093
Author: Ferenc Wágner <wferi@debian.org>
Date:   Mon Mar 15 18:00:48 2021 +0100

    Enable systemd socket activation for UDP sockets
    
    Like it was possible for UNIX and TCP sockets beforehand.

commit a9cf25db7e3e969dbcd9bda9a16457db6fc7210f
Author: Josef Řídký <jridky@redhat.com>
Date:   Mon Mar 15 09:23:41 2021 +0100

    net-snmp-cert: Use sha512 as default option for generating certificates.
    
    Fixes: https://github.com/net-snmp/net-snmp/issues/231
    
    [ bvanassche: edited commit message ]

commit eb1b11bb7f3ac3281dc6e92d94e8fa749cac44e0
Author: Josef Řídký <jridky@redhat.com>
Date:   Fri Mar 12 10:15:30 2021 +0100

    Prevent parsing IP address twice (#199)
    
    This fixes issue, that is caused by parsing IP address twice.
    First as IPv4 and as IPv6 at second, even thow the address was
    properly parsed as a valid IPv4 address.

commit dce7b17e7ce7b12954a8c799265d3001922bb0a1
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Wed Mar 3 20:24:05 2021 -0800

    ci/build.bat: Fix the Cygwin build

commit dc58ed9990a1736b9b500a5e16e7517f93d194f4
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Wed Mar 3 19:10:25 2021 -0800

    net-snmp-create-v3-user: Print the version number once
    
    Print the version number once instead of keeping to print the version number
    forever in an endless loop.
    
    Fixes: https://sourceforge.net/p/net-snmp/bugs/2778/

commit afa2034ca57b7986e91272b56274cebff5d8d69f
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Sat Feb 27 21:25:44 2021 -0800

    ci/openssl.bat: Bump the OpenSSL version

commit 8c301c1e06004aa4095f956bff5f399104e71127
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Sat Feb 27 19:46:13 2021 -0800

    IF-MIB: Do not scan for PCI devices if no PCI bus is available
    
    Fixes: https://github.com/net-snmp/net-snmp/issues/271

commit 385d555606ee31a23d5ed711a7ffba45f4197d50
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Mon Feb 15 08:44:13 2021 -0800

    Perl: Only use $prefix on Unix systems
    
    This patch reworks commit f64e0111ad10 ("Perl: Set the $prefix variable on
    Windows").

commit f64e0111ad10b948aeadd386063a69ba5fc7fc7b
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Sat Feb 13 20:04:29 2021 -0800

    Perl: Set the $prefix variable on Windows
    
    Fixes: https://github.com/net-snmp/net-snmp/issues/261

commit 428a486d92ca631d83f5bfc42c319f630b152bea
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Sat Feb 13 19:19:19 2021 -0800

    Python: Use netsnmp_memdup() instead of open-coding it

commit 6ad61e6628ecf1bde987c78de37674c4886a16b9
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Sat Feb 13 19:35:57 2021 -0800

    Python: Do not report "error: set: adding variable/value to PDU" when clearing an OCTETSTR
    
    Fixes: https://github.com/net-snmp/net-snmp/issues/265

commit ddd338fab038bf0ea25426d43518f4f24ac20853
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Sat Feb 13 19:19:01 2021 -0800

    python/netsnmp/tests/test.py: Add a test for setting an OCTETSTR

commit f03582450d1eabae6df66b1fde5699a8e2a97b81
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Sat Feb 13 11:02:37 2021 -0800

    snmplib: Add more comments in netsnmp_random()

commit b754da08461bd062632924fb773cb6f7c8c348d7
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Sat Feb 13 09:24:12 2021 -0800

    Enable the compiler flag -Wtype-limits

commit b71b52f03398f2c42f100dd960009b824e6c306b
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Sat Feb 13 09:22:54 2021 -0800

    Fix the -Wtype-limits compiler warnings

commit a29685e5a35ff4a88b396e7952e59b53b9c24ebd
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Sat Feb 13 08:29:48 2021 -0800

    configure: Only display the message "Checking for developer gcc flags" in developer mode

commit 0dcebaf3d4b142638cd86de725ef23372495005f
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Fri Feb 12 20:55:42 2021 -0800

    python/netsnmp/tests/test.py: Also perform a full MIB walk

commit 8d8d8439d5d211ec1782d609e0ad67180c975d7b
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Fri Feb 12 19:49:18 2021 -0800

    HOST-RESOURCES-MIB: Add JFFS2 support
    
    Fixes: https://github.com/net-snmp/net-snmp/issues/268

commit d468c8ad86c86ceb1807ccd51408594526940137
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Fri Feb 12 19:35:44 2021 -0800

    HOST-RESOURCES-MIB: Simplify the code for recognizing "other" filesystems

commit 02bc1baf0d4f6031085e107a9cddc05dfbd74db2
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Sun Jan 10 16:58:09 2021 -0800

    snmpd: Exclude the /dev/kmem code if configured with --without-kmem-usage
    
    This is a follow-up for 9e933893751f ("snmpd: Exclude the /dev/kmem code if
    configured with --without-kmem-usage").
    
    Fixes: https://github.com/net-snmp/net-snmp/issues/251

commit 4d92f40112dd768d89a9f0a20cf743b18d951e45
Author: Filip Jensen <vivamudhoney@yahoo.es>
Date:   Tue Jan 5 16:57:43 2021 +0100

    Fix compilation when feature NETSNMP_FEATURE_REMOVE_LOGGING_STDIO is used

commit e3601420c8fce713924038901f824e57e6855e72
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Mon Jan 4 13:01:47 2021 -0800

    Revert "Read intermediate certificates from PEM files"
    
    This reverts commit 916110b15f28f8ae04598ad637ac26e4585ff385 and thereby
    removes support for intermediate certificates from the v5.9 branch.

commit 2b93ee55d1b9b32c86c3f725c59b8fd17912ae18
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Mon Jan 4 13:01:42 2021 -0800

    Revert "libsnmp: Fix a NULL pointer dereference in an error path"
    
    This reverts commit 99a72177c7c69c5ca1a5ecb68f5f2db7d971e97a.

commit baef04f9c6fe0eb3ac74dd4d26a19264eeaf7fa1
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Mon Jan 4 10:00:33 2021 -0800

    testing/fulltests/unit-tests/T105trap_parse_clib: Add this test
    
    Add a reproducer for the bug fixed by the previous patch.

commit 92f0fe9e0dc3cf7ab6e8cc94d7962df83d0ddbec
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Mon Jan 4 12:21:59 2021 -0800

    libsnmp: Fix asn_parse_nlength()
    
    Handle length zero correctly.
    
    Fixes: https://github.com/net-snmp/net-snmp/issues/253
    Fixes: a9850f4445cf ("asn parse: add NULL checks, check length lengths")

commit 1bf7c9c81d988e7945a34bea666ca3428c1ac127
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Mon Jan 4 12:17:58 2021 -0800

    libsnmp: Simplify _asn_short_err()
    
    Since snprintf() always '\0'-terminates the string it produces explicit
    '\0'-termination is not necessary.

commit 34c3b4ee104a1239c7bff7f6c80ca8b05b3bf17a
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Mon Jan 4 12:13:26 2021 -0800

    libsnmp: Add SNMPv1 trap support in snmp_pdu_type()
    
    This change only affects error messages and debug messages.
    
    Fixes: 00ef569e00d1 ("Fix 5.5.x branch structure (part 2)")

commit 9e933893751fb5b1b68c6efb844ef5d4b3a905e0
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Sun Jan 3 13:42:59 2021 -0800

    snmpd: Exclude the /dev/kmem code if configured with --without-kmem-usage
    
    See also https://github.com/net-snmp/net-snmp/issues/251 .

commit 99a72177c7c69c5ca1a5ecb68f5f2db7d971e97a
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Wed Dec 30 13:03:30 2020 -0800

    libsnmp: Fix a NULL pointer dereference in an error path
    
    This issue was detected by Coverity.
    
    Fixes: 916110b15f28 ("Read intermediate certificates from PEM files")

commit 916110b15f28f8ae04598ad637ac26e4585ff385
Author: minfrin <minfrin@users.noreply.github.com>
Date:   Wed Dec 30 17:48:39 2020 +0000

    Read intermediate certificates from PEM files
    
    This patch lifts the restriction that a PEM file can only contain
    one certificate. This brings net-snmp in line with the behaviour
    of other applications that use PEM files.
    
    Multiple certificates are read from each file, and the offset of
    each certificate is added to the index for efficient retrieval.
    
    The first certificate in the chain is eligible to be either an
    identity certificate or a remote certificate. Intermediate
    certificates are ignored for this purpose, maintaining existing
    behaviour with respect to peerCert and remoteCert.
    
    Trusted CA certificates are still required to be listed one per
    file, this restriction will be lifted in a separate patch.
    
    [ bvanassche: modified this patch such that the size of struct
      netsnmp_cert_common_s does not change ]

commit e96087f1aa70583fe3142a2919fc3a69e62c53bb
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Wed Dec 30 10:52:30 2020 -0800

    TLSTM-MIB: Remove an unused member variable

commit 951fd2d9b07e29455ff0251b0f44ed76d935ff00
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Tue Dec 29 15:22:42 2020 -0800

    snmpd: Restore SNMPD_CALLBACK_SEND_TRAP[12] behavior
    
    Instead of only invoking the SNMPD_CALLBACK_SEND_TRAP[12] callbacks if one
    or more sessions with the corresponding SNMP version exist, invoke these
    callbacks unconditionally.
    
    Fixes: f770e0f74932 ("skip send_trap callbacks if no sessions for version")
    Fixes: https://github.com/net-snmp/net-snmp/issues/247

commit 22f0630371231787f59522f4a3c4d1bb04594c66
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Sat Dec 26 16:19:37 2020 -0800

    ci: Overwrite /etc/hosts
    
    Overwrite /etc/hosts instead of using the /etc/hosts file provided by the
    CI service. This should fix sporadic OS/X test failures.

commit b3dd620161703a6ade14b5afe0e8f6fd63685a81
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Sat Dec 26 16:07:34 2020 -0800

    libsnmp, UDP: Only display VRF debug messages if relevant
    
    Only display a VRF debug message if a VRF interface has been specified.
    
    Fixes: 02de400544de ("libsnmp: Set Linux VRF iface on Trap sink IP addresses")

commit ac06c5844105473e211decdf825af75dc7cd8b7c
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Fri Dec 25 17:19:35 2020 -0800

    Perl: Rework the authentication / privacy algorithm lookup code
    
    Use the tables defined in snmplib/scapi.c instead of duplicating these tables.

commit 6ea6935621a05c845e6829b18c833cdb9c7baa55
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Fri Dec 25 17:19:45 2020 -0800

    libsnmp: Constify the authentication and privacy data structures
    
    Prevent that scapi users modify data structures that should not be modified.
    This patch modifies the Net-SNMP API but not the ABI.

commit 92012951687cb18c8e58fede015e4bc0a9222e73
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Sat Dec 26 09:25:33 2020 -0800

    libsnmp: Export sc_find_auth_alg_byoid() and sc_find_auth_alg_bytype()
    
    Fix two typos in include/net-snmp/library/scapi.h.
    
    Fixes: 329a9d3c9d63 ("revamp auth/priv protocol constants handling")

commit 4da46332f324eb5f18513d0e7e1368e529b29aef
Author: minfrin <minfrin@users.noreply.github.com>
Date:   Tue Dec 22 12:03:22 2020 +0000

    Add support for intermediate certificates
    
    After constructing a certificate chain, pass the chain to openssl so the chain
    is taken into account while negoiating SSL. Required to support certificates
    generated by a PKI, or by a CA like Let's Encrypt.
    
    Fixes: https://github.com/net-snmp/net-snmp/issues/241
    Fixes: https://github.com/net-snmp/net-snmp/issues/242
    
    [ bvanassche: slightly edited commit message ]

commit 969226ea501b92e1a2ed427bc1a46f18ef2890b7
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Fri Dec 18 10:25:20 2020 -0800

    libsnmp, _cert_get_extension(): Consolidate error paths
    
    This patch does not change any functionality.

commit bb30f8ee0075750fd3648a6bf3fab543f46152ed
Author: minfrin <minfrin@users.noreply.github.com>
Date:   Thu Dec 17 12:25:24 2020 +0000

    libsnmp, SSL: Increase extension buffer size to prevent a crash
    
    Make sure enough space is allocated for extensions longer than 512 bytes. Fix
    the error message when the extension is too long to clearly differentiate the
    error from the out of memory case. Fix a crash when the extension is too long.
    
    [ bvanassche: edited patch description / fixed an off-by-one error / undid a
      code formatting change ]

commit 4c5d2ceae4d4a8b77db48fc8fff77e14943ff4d3
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Wed Dec 16 19:36:55 2020 -0800

    libsnmp: Handle certificate loading errors gracefully
    
    Instead of crashing (SIGSEGV), skip certificates if loading fails.
    
    Reported-by: https://github.com/minfrin
    Fixes: https://github.com/net-snmp/net-snmp/issues/233

commit 9d001c34196df47526260441af35a509a325e41f
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Wed Dec 16 19:32:58 2020 -0800

    libsnmp: Fix spelling in an error message
    
    Reported-by: https://github.com/minfrin

commit bcc654e704f4794a9b10b8abf6e01f509402a6d3
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Sun Dec 13 12:06:45 2020 -0800

    Darwin, ARM: Fix the 64-bit build
    
    See also the following two commits:
    * 632b143b0005 ("memory_darwin: Suppress a compiler warning")
    * 8ae78da391d5 ("Use vm_region_64 on 64-bit arch; cache memory for longer")

commit f82634a1ca4a24601cd966abe4062c35e376c9ab
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Sun Dec 13 09:58:28 2020 -0800

    perl: Rework the authentication and privacy code
    
    Switch to a table-based approach. This patch does not change any functionality.

commit cf125fee113ef9e361af51b916166990b5abeda2
Author: garnier-quentin <garnier.quentin@gmail.com>
Date:   Tue Dec 8 16:10:46 2020 +0100

    perl: Add support for strong SHA authentication
    
    [ bvanassche: edited commit message, combined three patches into one and left
      out whitespace-only changes ]

commit a7c8c26c48c954a19bca5fdc6ba285396610d7aa
Author: Mitchell Blank Jr <mitch@bodyfour.com>
Date:   Sun Dec 13 03:23:02 2020 +0000

    Fix compiler warnings generated by configure scripts
    
    Specifically, this is meant to reduce risk of issues with Xcode 12
    which has made -Werror,-Wimplicit-function-declaration a default.
    
    Normally this doesn't bite "real" code since such a warning would be
    visible for a long time with most compilers.  However, inside of
    configure scripts these sorts of warnings just end up in config.log
    and usually get ignored.  Now that they produce errors it means that
    configure tests that *should* pass suddenly fail, causing very
    strange failures later on.
    
    This can be as simple as calling "exit(0);" inside of a test C
    program without doing "#include <stdlib.h>" first!
    
    I also fixed an implicit-int-return warning since that is another
    C behavior that was deprecated long ago and future compilers might
    consider that an error.
    
    [ bvanassche: reran autoconf ]

commit cc3e0505f58d2c5d03be7a0b4c70afd01f7deb3c
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Sat Dec 12 18:41:45 2020 -0800

    Windows: Yet another Visual Studio 2005 build fix
    
    Microsoft Visual Studio 2013 and before do not support __func__. Hence
    use __FUNCTION__ instead of __func__ when building with Visual Studio.
    
    Reported-by: Christophe Cassignol
    Fixes: 6066c6e21991 ("libsnmp, snmpv3_packet_build(): Avoid triggering a buffer overflow")
    Fixes: 20725d58ca76 ("DTLSUDP transport: Check length of from address")

commit 7137ee0b94ff5eab0682e5a63d5e9d6eb2b6fea9
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Sat Dec 12 18:20:46 2020 -0800

    ci/openssl.bat: Bump the OpenSSL version

commit 3617459d1d204f3e595c794a2642bd9536c86245
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Sat Dec 12 14:38:28 2020 -0800

    Windows: Fix Visual Studio 2005 build
    
    Reported-by: Christophe Cassignol
    Fixes: 193062739789 ("Net-SNMP headers: Move in_addr_t definition into <net-snmp/net-snmp-config.h>")

commit 64bbd86fc13517c5021096acfbb23577bbd0f8a8
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Mon Nov 30 19:41:27 2020 -0800

    Python: Handle hex strings correctly
    
    See also https://github.com/net-snmp/net-snmp/issues/216 .

commit c744be5ffed64f992a843e858a3cd2c1fe80f12f
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Tue Dec 1 20:19:17 2020 -0800

    Python: Introduce build_python_varbind()
    
    This patch does not change any functionality.

commit d519f4cf41c6b94661259409942fcdea46cf384d
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Tue Dec 1 19:27:55 2020 -0800

    Python: Merge netsnmp_get() and netsnmp_getnext() into a single function
    
    This patch does not change any functionality.

commit 281e6fc9454a785d9a4487d35146724dadcfbf62
Author: Johnnyxy <Johnnyxy@github.com>
Date:   Thu Nov 19 17:43:13 2020 -0800

    Win32, MSVC: Use <stdint.h> if it is available
    
    See also https://github.com/net-snmp/net-snmp/issues/213 .

commit a54c03aa0564e3aeb53712228522c2ba9b0f971f
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Wed Nov 18 21:05:13 2020 -0800

    net-snmp-create-v3-user: Fix multiple shellcheck warnings

commit 09a0c9005fb72102bf4f4499b28282f823e3e526
Author: Josef Ridky <jridky@redhat.com>
Date:   Wed Nov 18 20:54:34 2020 -0800

    net-snmp-create-v3-user: Handle empty passphrases correctly
    
    See also https://github.com/net-snmp/net-snmp/issues/86.
    
    Fixes: e5ad10de8e17 ("Quote provided encryption key in createUser line")
    Reported-by: Chris Cheney

commit ebe677ea1be61df6589a28a5b6306fe55f5784b2
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Wed Nov 18 19:36:17 2020 -0800

    CHANGES: snmpd: Fix OID handling in header_simple_table()
    
    Process GETNEXT for OIDs like 1.3.6.1.4.1.2021.9.1.1.4294967295 correctly.
    Additionally, handle *length == 0 correctly.
    
    See also https://github.com/net-snmp/net-snmp/issues/210 .

commit a8cb3591a924aeda1fd777f555da31ad8a627722
Author: Josef Ridky <jridky@redhat.com>
Date:   Mon Nov 9 19:42:32 2020 -0800

    IP-MIB: Improve handling of IPv6 support having been disabled intentionally
    
    See also https://github.com/net-snmp/net-snmp/issues/190
    [ bvanassche: modified variable names and source code comment ]

commit 325b0df837197fd8f9af23eee838daae3ff80753
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Fri Nov 6 20:45:07 2020 -0800

    snmpd: Use sigprocmask() instead of sighold() and sigrelse()
    
    The latter two functions are obsolete, hence use sigprocmask() instead.

commit 5a18e300bd085c6ba5967d7b00cc3f57fe83f665
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Thu Oct 8 20:12:44 2020 -0700

    HOST-RESOURCES-MIB: Add support for f2fs
    
    See also https://github.com/net-snmp/net-snmp/issues/111 .

commit b1569c31514bf76fceb93f80c8b844101ee55e3a
Author: Pavel Trushkin <pavel@dcmsys.com>
Date:   Wed Sep 2 12:58:03 2020 +0300

    fix the similar leak in SNMP::NODE::FETCH

commit 581698a162b47b08f8571c7e1b8991df0764e5d3
Author: Pavel Trushkin <pavel@dcmsys.com>
Date:   Wed Sep 2 12:47:07 2020 +0300

    fix resource leaks in the SNMP::Session destructor and SNMP::NODE::FETCH

commit 5adc5bbcec46eacf654ed92ed2431d0965076fa9
Author: Guillem Jover <gjover@sipwise.com>
Date:   Fri Apr 22 15:45:07 2016 +0200

    Perl, agent: Make the perl agent code more tolerant of perl types
    
    The code is currently very strict, and does not accept several internal
    perl representations for integer scalars.
    
    First we should use SvPOK instead of SvPOKp to accept anything that
    looks like a string. And then we should also accept floating point
    numbers because they might store integer or unsigned values.

commit d59ae433af8b6d9051d149ca2a745fc845e7c82d
Author: Guillem Jover <gjover@sipwise.com>
Date:   Fri Apr 22 15:45:07 2016 +0200

    Perl, agent: Print the perl scalar flags on type mismatch in setValue
    
    This makes it easier to debug why a type mismatch happened, as we can
    see how the type is represented internally by perl.

commit 4d686f50d165f6b2b8fc79c9ae8f0a5702644fd8
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Sun Sep 27 19:24:19 2020 -0700

    ci/openssl.bat: Bump the OpenSSL version

commit b65fc0f848142543314329ca286fb90fc5f87773
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Sun Sep 27 14:06:46 2020 -0700

    configure: Update config.guess to the latest version
    
    Update config.guess to commit 4aa554d72b2a ("config.guess: Don't use
    'ldd --version' to determine the presence of musl libc") from
    https://git.savannah.gnu.org/gitweb/?p=config.git to fix compatibility
    with the aarch64 architecture. See also
    https://github.com/net-snmp/net-snmp/issues/188.

commit 62f024175a73c9b669f9bd8c7e75a65017622f3a
Author: urs-k <71150165+urs-k@users.noreply.github.com>
Date:   Wed Sep 16 08:54:57 2020 +0200

    snmpd: Fix a memory leak in ipAddressPrefixTable_data_access.c
    
    See also https://github.com/net-snmp/net-snmp/pull/183.
    
    [ bvanassche: adjusted commit message and reindented code ]

commit b30e5b6c682e7095d61401461d9305dbfe99e914
Author: Magnus Fromreide <magfr@lysator.liu.se>
Date:   Fri Aug 14 00:39:34 2020 +0200

    Do not require privacy in T0222

commit d1578077f41f232831b9b68fea2cc75f39569fe2
Author: Magnus Fromreide <magfr@lysator.liu.se>
Date:   Mon Sep 7 08:25:42 2020 +0200

    Correct the name of the V5-9-patches branch

commit 8fabe044e316f9ecda53148d9afeaf5e5854bb1a
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Sun Sep 6 14:21:52 2020 -0700

    agent/mibgroup/util_funcs: Use posix_spawn() if fork() is not available
    
    This patch restores pass_persist support for operating systems that do
    not support fork(), e.g. uClinux. The pass_persist support added by this
    patch is much more useful than the implementation removed by commit
    e55d56212b72 ("snmpd: Remove the uClinux code from get_exec_pipes()").
    The new implementation uses anonymous pipes while the old implementation
    used named pipes with hardcoded paths (/flash/cp_%d and /flash/pc_%d).

commit 537ae2f0b64f067d354db34a742a28260aa21aa1
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Sun Sep 6 14:29:53 2020 -0700

    agent/mibgroup/util_funcs: Use dup2() instead of dup()
    
    This patch makes the code easier to read but does not change any
    functionality.

commit e34f0793b641998eb4f9bedb4f7929bb0e3051b8
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Sun Sep 6 15:13:58 2020 -0700

    libsnmp: Allocate the module import list on the heap
    
    Since that list occupies 8 KiB, allocate it on the heap instead of on the
    stack.

commit ed4c8e85cb44e84ada5b8d2ff58e903de7ede737
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Sun Sep 6 15:12:48 2020 -0700

    libsnmp: Rework parse_imports()
    
    Do not cast pointers passed to free(). Reduce the number of return
    statements in this function to one. Surround multiline statements with
    braces.

commit 52d4a465dcd92db004c34c1ad6a86fe36726e61b
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Fri Sep 4 13:44:51 2020 -0700

    Darwin: Fix 'make install'
    
    Only attempt to install header files that exist under
    include/net-snmp/system/
    
    See also https://github.com/net-snmp/net-snmp/issues/181 .
    
    Fixes: f01c45c53cdc ("Darwin: Unify system header files")

commit 687b8c894f0de93b12f16ab9d5d9635adea39a6f
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Fri Sep 4 15:11:22 2020 -0600

    OpenBSD: Fix a build error and a compiler warning

commit ee7c66cf856dcda14f6d1d1503b80c0535509bc3
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Fri Sep 4 13:32:54 2020 -0700

    OpenBSD: Do not use the linker flag -no-undefined
    
    This patch fixes a linker error on OpenBSD.
    
    See also https://github.com/net-snmp/net-snmp/issues/178 .

commit 893b9baa6ae81a877e76842c29a637eeb2cbd0e2
Author: Guido Jäkel <g.jaekel@dnb.de>
Date:   Thu Sep 3 17:03:33 2020 +0200

    libsnmp: Increase MAX_IMPORTS
    
    Today, I stepped into an well-known old issue
    (https://sourceforge.net/p/net-snmp/mailman/message/16927159/) using MIBs
    for a CISCO device.
    
    [bvanassche: edited commit message]

commit 6093d4aee5cc81b8121458864d7e25fa7f46a7ba
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Mon Aug 31 20:46:21 2020 -0700

    libsnmp: Handle malloc() failure correctly in snmp_parse_oid()
    
    See also https://github.com/net-snmp/net-snmp/issues/177 .

commit 205c69a652d742d4914a4332ecc8915b52217719
Author: mark123499 <32741576+mark123499@users.noreply.github.com>
Date:   Thu Aug 27 15:19:11 2020 +0900

    snmpd: avoid container double free in error cases
    
    Fixes: ad653fb4618d ("new data access files")
    [ bvanassche: Added "Fixes" tag ]

commit 5b8bf5d4130761c3374f9ad618e8a76bb75eb634
Author: Yuwei Ba <i@xiaoba.me>
Date:   Fri Aug 21 15:06:10 2020 +0800

    snmpd: support MemAvailable on Linux
    
    See also https://github.com/net-snmp/net-snmp/pull/167 .
    
    [bvanassche: modified the behavior of this patch]

commit 410ddeff0b65937afd4bca6c7bfccc078fb5467d
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Fri Aug 28 20:28:04 2020 -0700

    snmpd: Reindent agent/mibgroup/hardware/memory/hw_mem.c
    
    Source code formatting in this file is weird. Reformat this source
    file with the help of the command mentioned in the CodingStyle file.

commit f73dbd3998755fe141ba724445b0cb74df1939f4
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Wed Aug 26 13:00:27 2020 -0700

    libsnmp: Use snprintf() instead of sprintf() in print_tree_node()
    
    This patch suppresses certain static analyzer complaints. See also
    https://github.com/net-snmp/net-snmp/issues/173 .

commit b14ff16eee753b29ef7659b34a67af89acee22f7
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Tue Aug 14 09:30:06 2018 -0700

    snmplib, IPv6: Fix MSVC build
    
    Fixes: 4916ce007362 ("Fix Solaris compiler warnings")
    Reported-by: Gisle Vanem <gvanem@yahoo.no>

commit c13b4349fad05caaa97e69924c020cb02139a367
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Wed Aug 26 07:58:03 2020 -0700

    Solaris: Fix a compiler warning

commit 7f5b50d5c51572f59d4b8c799cc6a676b0f1340f
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Sun Jun 24 10:46:44 2018 -0700

    Fix Solaris compiler warnings
    
    This patch does not change any functionality.

commit adf7fda1f6b7123494875e8cd19b7445427b28ad
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Mon Aug 24 19:40:48 2020 -0700

    snmpd, snmptrapd: Fix a bug in an error path of parse_cmd()
    
    Fixes: 11e119c802e5 ("snmpd, util_funcs: Introduce the parse_cmd() function")

commit ec28fff5c0dede00767b50cebe8959369e6d7035
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Mon Aug 24 15:07:02 2020 -0700

    libsnmp: Fix handling of the minus character in mib configuration directives
    
    Change one occurrence of 'confmibdir' into 'confmibs'. It seems like the
    original code is the result of a copy/paste error. See also
    https://github.com/net-snmp/net-snmp/issues/170.
    
    Fixes: 4253c5431631 ("make mibs, mibdirs and mibfiles handling consistent")

commit f43a7213badf0b4014bb744021199fb2a127efff
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Mon Aug 24 06:58:04 2020 -0700

    snmpd, snmptrapd: Let configure check whether getdtablesize() is available
    
    This patch fixes the Net-SNMP build for termux.
    
    See also https://github.com/net-snmp/net-snmp/issues/155.

commit 6bf543981b59f0048c640203b620c49db4c97d09
Merge: 29a707be5 7266ff58d
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Sat Aug 22 15:15:53 2020 -0700

    Merge branch 'V5-8-patches' into V5-9-patches
    
    * V5-8-patches:
      Windows: Unbreak the MSVC build of agent/mibgroup/agent/extend.c

commit 29a707be54d1df5b90ac1a5bc72ae919b015e63d
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Sat Aug 22 15:09:55 2020 -0700

    dist/svnup: Remove this script because is no longer needed

commit b04033209dc4ab9bdb4dffaf09b553438ac41797
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Sat Aug 22 10:46:01 2020 -0700

    dist/net-snmp.spec: Improve the Net-SNMP RPM spec file
    
    Use the local Net-SNMP source code archive instead of downloading it from
    SourceForge. Only prefix the version number with %{epoch}: on RHEL / Fedora
    systems. Package the pkg-config files (.pc). Fix multiple rpmbuild warnings.

commit 582b77e038ec63592a0a3e8b6bed069481e5776f
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Sat Aug 22 10:34:41 2020 -0700

    Makefile.in: Add 'rpm' make target

commit efd048bc43bd99b756a984a16e735395cac22e4a
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Sat Aug 22 10:16:06 2020 -0700

    agent/mibgroup/versiontag: Switch from CVS to git
    
    Instead of instructing the user to copy the Net-SNMP source files into a
    subdirectory, create the tar archive from the source files administered
    by git.

commit d5f6910373df6a8d501c402d29e038574d1e0975
Author: Craig Small <csmall@debian.org>
Date:   Sat Aug 22 08:57:28 2020 -0700
