5a66276
This patch is required because net-smp is not build with DES support,
5a66276
so usmDESPrivProtocol is not available.
5a66276
5a66276
diff --git a/plugins/snmp_bc/snmp_bc_session.c b/plugins/snmp_bc/snmp_bc_session.c
5a66276
index 767cdb1a77ee420e..cb724fcee0668bd5 100644
5a66276
--- a/plugins/snmp_bc/snmp_bc_session.c
5a66276
+++ b/plugins/snmp_bc/snmp_bc_session.c
5a66276
@@ -239,23 +239,10 @@ void *snmp_bc_open(GHashTable *handler_config,
5a66276
 						err("Cannot find \"privacy_passwd\" configuration parameter.");
5a66276
 						return NULL;
5a66276
 					}
5a66276
-				
5a66276
-					custom_handle->session.securityLevel = SNMP_SEC_LEVEL_AUTHPRIV;
5a66276
-					custom_handle->session.securityPrivProto = usmDESPrivProtocol;
5a66276
-					custom_handle->session.securityPrivProtoLen = USM_PRIV_PROTO_DES_LEN;
5a66276
-					custom_handle->session.securityPrivKeyLen = USM_PRIV_KU_LEN;
5a66276
-					if (generate_Ku(custom_handle->session.securityAuthProto,
5a66276
-							custom_handle->session.securityAuthProtoLen,
5a66276
-							(u_char *) privacy_passwd, strlen(privacy_passwd),
5a66276
-							custom_handle->session.securityPrivKey,
5a66276
-							&(custom_handle->session.securityPrivKeyLen)) != SNMPERR_SUCCESS) {
5a66276
-						snmp_perror("snmp_bc");
5a66276
-						snmp_log(LOG_ERR,
5a66276
-							 "Error generating Ku from private passphrase.\n");
5a66276
-						err("Unable to establish SNMP authpriv session.");
5a66276
-						return NULL;
5a66276
-					}
5a66276
-					
5a66276
+					snmp_perror("snmp_bc");
5a66276
+					snmp_log(LOG_ERR, "DES authentication is not supported.\n");
5a66276
+					err("Unable to establish SNMP authpriv session.");
5a66276
+					return NULL;
5a66276
 				}
5a66276
 				
5a66276