[AGENT++] authPriv mode problem
Jochen Katz
katz at agentpp.com
Fri Jun 4 22:26:34 CEST 2004
Hi,
> I've written my own agent implementation, which is similar to the
> 'static_table' sample. I use the MG-SOFT MIB Browser.
> It seems that there is a problem with the decryption of the message.
please apply the patch below, that will be in the next release.
Regards,
Jochen
============================================
diff -u -r1.8 auth_priv.h
--- include/snmp_pp/auth_priv.h 8 May 2004 09:54:59 -0000 1.8
+++ include/snmp_pp/auth_priv.h 4 Jun 2004 20:18:58 -0000
@@ -628,9 +628,9 @@
int get_id() const { return SNMP_PRIVPROTOCOL_DES; };
const char *get_id_string() const { return "DES"; };
int get_priv_params_len() const { return 8; };
- int get_min_key_len() const { return 8; };
+ int get_min_key_len() const { return 16; };
void fix_key_len(unsigned int &key_len) const
- { key_len = (key_len >= 8 ? 8 : 0); };
+ { key_len = (key_len >= 16 ? 16 : 0); };
};
#ifdef _USE_IDEA
@@ -668,9 +668,9 @@
int get_id() const { return SNMP_PRIVPROTOCOL_IDEA; };
const char *get_id_string() const { return "IDEA"; };
int get_priv_params_len() const { return 8; };
- int get_min_key_len() const { return 8; };
+ int get_min_key_len() const { return 16; };
void fix_key_len(unsigned int &key_len) const
- { key_len = (key_len >= 8 ? 8 : 0); };
+ { key_len = (key_len >= 16 ? 16 : 0); };
};
#endif
=======================================
More information about the AGENTPP
mailing list