]> git.ipfire.org Git - thirdparty/collectd.git/commit
Fix compile issue if net-snmp has NETSNMP_DISABLE_MD5 set
authorThomas Renninger <trenn@suse.com>
Tue, 31 Jan 2023 15:40:42 +0000 (16:40 +0100)
committerMatthias Runge <mrunge@matthias-runge.de>
Wed, 1 Feb 2023 07:01:49 +0000 (08:01 +0100)
commit5193b713d9dd8765e4885625b9046814966d8686
tree28cd9ad9b2daaf6a65a72a385c68fbef8d50c598
parent2f3c12ea57eb74c4d7c5e13aca6c50ca0dd75ba8
Fix compile issue if net-snmp has NETSNMP_DISABLE_MD5 set

Otherwise one gets:
src/snmp.c: In function 'csnmp_config_add_host_auth_protocol':
src/snmp.c:678:25: error: 'usmHMACMD5AuthProtocol' undeclared (first use in this function); did you mean 'usmHMACSHA1AuthProtocol'?
   678 |     hd->auth_protocol = usmHMACMD5AuthProtocol;
       |                         ^~~~~~~~~~~~~~~~~~~~~~
       |                         usmHMACSHA1AuthProtocol
src/snmp.c