[AGENT++] authPriv mode problem
Karl Abicht
karl at abicht.info
Mon Jun 7 10:42:47 CEST 2004
Hi Jochen,
the patch solves the problem.
Thanks,
Karl
> 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
> =======================================
>
--
Dipl.-Ing. Karl Abicht
Eichenweg 11
25582 Hohenaspe
mailto: karl at abicht.net
phone: +49 4893 373115
mobile: +49 172 4566432
site: http://www.abicht.net
More information about the AGENTPP
mailing list