File openhpi-3.4.0_no_md5.patch of Package openhpi.1182

Index: plugins/snmp_bc/snmp_bc_session.c
===================================================================
--- plugins/snmp_bc/snmp_bc_session.c.orig	2008-04-30 17:38:44.000000000 +0200
+++ plugins/snmp_bc/snmp_bc_session.c	2015-09-24 18:01:37.713158307 +0200
@@ -201,10 +201,13 @@ void *snmp_bc_open(GHashTable *handler_c
 				}
 				
 				custom_handle->session.securityLevel = SNMP_SEC_LEVEL_AUTHNOPRIV;
+				#ifndef NETSNMP_DISABLE_MD5
 				if (!authtype || !g_ascii_strncasecmp(authtype, "MD5", sizeof("MD5"))) {
 					custom_handle->session.securityAuthProto = usmHMACMD5AuthProtocol;
 					custom_handle->session.securityAuthProtoLen = USM_AUTH_PROTO_MD5_LEN;
-				} else if (!g_ascii_strncasecmp(authtype, "SHA", sizeof("SHA"))) {
+				} else
+				#endif
+				if (!g_ascii_strncasecmp(authtype, "SHA", sizeof("SHA"))) {
 					custom_handle->session.securityAuthProto = usmHMACSHA1AuthProtocol;
 					custom_handle->session.securityAuthProtoLen = USM_AUTH_PROTO_SHA_LEN;
 				} else {
openSUSE Build Service is sponsored by