aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-snmp.h
diff options
context:
space:
mode:
authorLuis Ontanon <luis.ontanon@gmail.com>2007-01-11 17:39:16 +0000
committerLuis Ontanon <luis.ontanon@gmail.com>2007-01-11 17:39:16 +0000
commitefa63382310746ec4f311f31065743cc180e7c5a (patch)
tree6354f9b524268135b02df3d35c0072540744e69d /epan/dissectors/packet-snmp.h
parentc5a0dfda693967b0f9e2ae0eda0a0886d65ad4bf (diff)
warn the user if the decrypted data doesn't look like a ScopedPDU instead of dissecting it.
svn path=/trunk/; revision=20393
Diffstat (limited to 'epan/dissectors/packet-snmp.h')
-rw-r--r--epan/dissectors/packet-snmp.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-snmp.h b/epan/dissectors/packet-snmp.h
index f7bb9924e6..31f6dafa9a 100644
--- a/epan/dissectors/packet-snmp.h
+++ b/epan/dissectors/packet-snmp.h
@@ -41,7 +41,7 @@ typedef struct _snmp_usm_key {
typedef struct _snmp_ue_assoc_t snmp_ue_assoc_t;
typedef struct _snmp_usm_params_t snmp_usm_params_t;
-typedef gboolean (*snmp_usm_authenticator_t)(snmp_usm_params_t*, gchar const** error);
+typedef gboolean (*snmp_usm_authenticator_t)(snmp_usm_params_t*, guint8** calc_auth, guint* calc_auth_len, gchar const** error);
typedef tvbuff_t* (*snmp_usm_decoder_t)(snmp_usm_params_t*, tvbuff_t* encryptedData, gchar const** error);
typedef void (*snmp_usm_password_to_key_t)(const guint8 *password, guint passwordlen, const guint8 *engineID, guint engineLength, guint8 *key);
@@ -102,8 +102,8 @@ extern guint dissect_snmp_pdu(tvbuff_t *, int, packet_info *, proto_tree *tree,
extern int dissect_snmp_engineid(proto_tree *, tvbuff_t *, int, int);
/* SNMPv3 USM authentication functions */
-gboolean snmp_usm_auth_md5(snmp_usm_params_t* p, gchar const**);
-gboolean snmp_usm_auth_sha1(snmp_usm_params_t* p, gchar const**);
+gboolean snmp_usm_auth_md5(snmp_usm_params_t* p, guint8**, guint*, gchar const**);
+gboolean snmp_usm_auth_sha1(snmp_usm_params_t* p, guint8**, guint*, gchar const**);
/* SNMPv3 USM privacy functions */
tvbuff_t* snmp_usm_priv_des(snmp_usm_params_t*, tvbuff_t*, gchar const**);