hleuwer / luasnmp

Lua binding to net-snmp library
http://luasnmp.luaforge.net
Other
10 stars 7 forks source link

Fix build when net-snmp does not support DES #7

Closed julthomas closed 2 months ago

julthomas commented 1 year ago

Build fails when usmDESPrivProtocol is not defined, it is the case for instance on el9.

nm_snmp.c: In function 'nm_snmp_open': nm_snmp.c:801:44: error: 'usmDESPrivProtocol' undeclared (first use in this function); did you mean 'usmAESPrivProtocol'? 801 | nm_cmu_session.securityPrivProto = usmDESPrivProtocol; | ^~~~~~ | usmAESPrivProtocol nm_snmp.c:801:44: note: each undeclared identifier is reported only once for each function it appears in make[1]: *** [: nm_snmp.o] Error 1

hleuwer commented 2 months ago

Merged pull request