Revision 19697 added the function netsnmp_certs_agent_init but it is
conditional on

defined(NETSNMP_USE_OPENSSL) && defined(HAVE_LIBSSL)

The call of that function in snmp_vars.c is not conditional.

The attached patch makes the call conditional so that the agent compiles
again.

Ok for trunk and V5-6?
Index: trunk/net-snmp/agent/snmp_vars.c
===================================================================
--- trunk/net-snmp/agent/snmp_vars.c	(revision 19705)
+++ trunk/net-snmp/agent/snmp_vars.c	(working copy)
@@ -339,8 +339,10 @@
         return r;
 #endif
 
+#if defined(NETSNMP_USE_OPENSSL) && defined(HAVE_LIBSSL)
     /** init secname mapping */
     netsnmp_certs_agent_init();
+#endif
 
 #  include "agent_module_inits.h"
 
Index: branches/V5-6-patches/net-snmp/agent/snmp_vars.c
===================================================================
--- branches/V5-6-patches/net-snmp/agent/snmp_vars.c	(revision 19705)
+++ branches/V5-6-patches/net-snmp/agent/snmp_vars.c	(working copy)
@@ -339,8 +339,10 @@
         return r;
 #endif
 
+#if defined(NETSNMP_USE_OPENSSL) && defined(HAVE_LIBSSL)
     /** init secname mapping */
     netsnmp_certs_agent_init();
+#endif
 
 #  include "agent_module_inits.h"
 
------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to