summaryrefslogtreecommitdiff
path: root/asn1/ldap/ldap.cnf
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2011-11-20 08:59:19 +0000
committerAnders Broman <anders.broman@ericsson.com>2011-11-20 08:59:19 +0000
commit42b44648c89781aa449d3add9dcb3348ffb53513 (patch)
tree4c1a556bd566020b428a6c6664dcd0fcbfed1238 /asn1/ldap/ldap.cnf
parent56903273cc78a604fc1b90b1cba4c17eda290dd3 (diff)
downloadwireshark-42b44648c89781aa449d3add9dcb3348ffb53513.tar.gz
Get rid of Warnings.
svn path=/trunk/; revision=39954
Diffstat (limited to 'asn1/ldap/ldap.cnf')
-rw-r--r--asn1/ldap/ldap.cnf22
1 files changed, 11 insertions, 11 deletions
diff --git a/asn1/ldap/ldap.cnf b/asn1/ldap/ldap.cnf
index 2955f5b133..fce9fb7aa7 100644
--- a/asn1/ldap/ldap.cnf
+++ b/asn1/ldap/ldap.cnf
@@ -214,7 +214,7 @@ char *mechanism = NULL;
tvbuff_t *parameter_tvb;
ldap_conv_info_t *ldap_info;
-gint8 class;
+gint8 ber_class;
gboolean pc;
gint32 tag;
@@ -224,10 +224,10 @@ gint32 tag;
return offset;
ldap_info = actx->pinfo->private_data;
- get_ber_identifier(parameter_tvb, 0, &class, &pc, &tag);
+ get_ber_identifier(parameter_tvb, 0, &ber_class, &pc, &tag);
- /*if ((ldap_info->auth_mech != NULL) && (strcmp(ldap_info->auth_mech, "GSS-SPNEGO") == 0) && (class==BER_CLASS_CON)) {*/
- if ((ldap_info->auth_mech != NULL) && (class==BER_CLASS_CON)) {
+ /*if ((ldap_info->auth_mech != NULL) && (strcmp(ldap_info->auth_mech, "GSS-SPNEGO") == 0) && (ber_class==BER_CLASS_CON)) {*/
+ if ((ldap_info->auth_mech != NULL) && (ber_class==BER_CLASS_CON)) {
/*
* This is a GSS-API token ancapsulated within GSS-SPNEGO.
* We need to check the first byte to check whether the blob
@@ -238,8 +238,8 @@ gint32 tag;
if (parameter_tvb && (tvb_length(parameter_tvb) > 0))
call_dissector(spnego_handle, parameter_tvb, actx->pinfo, tree);
}
- /*if ((ldap_info->auth_mech != NULL) && ((strcmp(ldap_info->auth_mech, "GSSAPI") == 0) || (class==BER_CLASS_APP))) {*/
- if ((ldap_info->auth_mech != NULL) && (class==BER_CLASS_APP)) {
+ /*if ((ldap_info->auth_mech != NULL) && ((strcmp(ldap_info->auth_mech, "GSSAPI") == 0) || (ber_class==BER_CLASS_APP))) {*/
+ if ((ldap_info->auth_mech != NULL) && (ber_class==BER_CLASS_APP)) {
/*
* This is a raw GSS-API token.
*/
@@ -258,7 +258,7 @@ ldap_conv_info_t *ldap_info;
%(DEFAULT_BODY)s
if (!parameter_tvb)
return offset;
- ldap_info = actx->pinfo->private_data;
+ ldap_info = (ldap_conv_info_t *)actx->pinfo->private_data;
switch (ldap_info->auth_type) {
/* For Kerberos V4, dissect it as a ticket. */
@@ -732,14 +732,14 @@ offset = dissect_ber_boolean(implicit_tag, actx, tree, tvb, offset, hf_index, &v
return offset;
#.FN_BODY Control/controlValue
- gint8 class;
+ gint8 ber_class;
gboolean pc, ind;
gint32 tag;
guint32 len;
if((object_identifier_id != NULL) && oid_has_dissector(object_identifier_id)) {
/* remove the OCTET STRING encoding */
- offset=dissect_ber_identifier(actx->pinfo, NULL, tvb, offset, &class, &pc, &tag);
+ offset=dissect_ber_identifier(actx->pinfo, NULL, tvb, offset, &ber_class, &pc, &tag);
offset=dissect_ber_length(actx->pinfo, NULL, tvb, offset, &len, &ind);
call_ber_oid_callback(object_identifier_id, tvb, offset, actx->pinfo, tree);
@@ -776,7 +776,7 @@ offset = dissect_ber_boolean(implicit_tag, actx, tree, tvb, offset, hf_index, &v
}
#.FN_BODY DirSyncFlags
- gint8 class;
+ gint8 ber_class;
gboolean pc;
gint32 tag;
guint32 len;
@@ -785,7 +785,7 @@ offset = dissect_ber_boolean(implicit_tag, actx, tree, tvb, offset, hf_index, &v
int otheroffset = offset;
if(!implicit_tag){
- otheroffset=dissect_ber_identifier(actx->pinfo, tree, tvb, otheroffset, &class, &pc, &tag);
+ otheroffset=dissect_ber_identifier(actx->pinfo, tree, tvb, otheroffset, &ber_class, &pc, &tag);
otheroffset=dissect_ber_length(actx->pinfo, tree, tvb, offset, &len, NULL);
} else {
gint32 remaining=tvb_length_remaining(tvb, offset);