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