Ethereal-cvs: [Ethereal-cvs] cvs commit: ethereal asn1.c asn1.h packet-ldap.c packet-snmp.c

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <guy@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 28 Feb 2002 20:48:12 -0600 (CST)
guy         2002/02/28 20:48:11 CST

  Modified files:
    .                    asn1.c asn1.h packet-ldap.c packet-snmp.c 
  Log:
  Add a routine to "asn1.c" to translate ASN1_ERR_ values to strings.  Use
  that in the SNMP dissector.
  
  Check the return values of ASN.1 routines in the LDAP dissector, and
  have all the subroutines in that disesctor that can return error
  indications return ASN1_ERR_ values.
  
  Have the routines that can supply a pointer to a newly-created
  protocol-tree item use the right type for items ("proto_item *", not
  "proto_tree *", even though they are, at least currently, typedefs for
  the same type), and use "proto_item" for the type of the item a pointer
  to which is passed to those routines.
  
  Before calling those routines, set the item pointer to null, in case the
  routine fails.
  
  Don't check the return value of "parse_filter_strings()" against -1 -
  that routine can't return -1.
  
  Revision  Changes    Path
  1.11      +55 -1     ethereal/asn1.c
  1.6       +5 -2      ethereal/asn1.h
  1.35      +283 -142  ethereal/packet-ldap.c
  1.81      +5 -29     ethereal/packet-snmp.c