aboutsummaryrefslogtreecommitdiffstats
path: root/asn1.h
AgeCommit message (Collapse)AuthorFilesLines
2003-11-09Fix the type of the "integer" argument to "asn1_uint32_value_decode()",Guy Harris1-2/+2
as per a note by Michael Lum. svn path=/trunk/; revision=8924
2003-10-02From Samuel Qu, Michael Lum, and Jeff Morriss: TCAP support, andGuy Harris1-1/+2
"asn_id_decode1()" variant of "asn_id_decode()". svn path=/trunk/; revision=8586
2003-04-28From Matthijs Melchior: fix "asn1_bits_decode()", and make its API moreGuy Harris1-3/+3
closely resemble that of other decode routines. svn path=/trunk/; revision=7589
2003-04-25Declare as "extern" the exported functions, as this file is, when weGuy Harris1-30/+33
build some tables for plugins, used with the function names actually referring to function pointer variables, which are not automatically externs. svn path=/trunk/; revision=7555
2002-10-23From Wes Hardaker:Guy Harris1-3/+3
Define HAVE_SOME_SNMP if either HAVE_UCD_SNMP or HAVE_NET_SNMP is defined, and use HAVE_SOME_SNMP, rather than HAVE_UCD_SNMP, in most places when testing whether we have an SNMP library or not. Be more selective when including Net-SNMP header files. Fix up {gtk,gtk2}/main.c to do the same SNMP stuff that tethereal.c does - including the MIB stuff that gtk/main.c was doing but gtk2/main.c wasn't doing. Fix the copyright date in gtk/main.c. svn path=/trunk/; revision=6483
2002-08-28Removed trailing whitespaces from .h and .c files using theJörg Mayer1-2/+2
winapi_cleanup tool written by Patrik Stridvall for the wine project. svn path=/trunk/; revision=6117
2002-08-02Replace the types from sys/types.h and netinet/in.h by their glib.hJörg Mayer1-3/+3
equivalents for the toplevel directory. The removal of winsock2.h will hopefully not cause any problems under MSVC++, as those files using struct timeval still include wtap.h, which still includes winsock2.h. svn path=/trunk/; revision=5932
2002-06-16From Chris Waters: don't use "bool" as a variable name or structureGuy Harris1-2/+2
member, as it's a C++ keyword. svn path=/trunk/; revision=5677
2002-03-12Get rid of the "--enable-snmp" option; instead, use "--with-ucdsnmp".Guy Harris1-2/+2
Make the directory option to "--with-ucdsnmp" optional. Handle "--with-ucdsnmp" similar to the way "--with-pcap" is handled. Get rid of unnecessary #defines in "packet-cops.c". Get rid of no-longer-necessary include of "dlfcn.h" in "packet-snmp.c". svn path=/trunk/; revision=4930
2002-03-01Add a routine to "asn1.c" to translate ASN1_ERR_ values to strings. UseGuy Harris1-2/+5
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. svn path=/trunk/; revision=4833
2001-04-15Tvbuffify the ASN.1 code and the Kerberos, LDAP, and SNMP dissectors.Guy Harris1-15/+13
Clean up some problems that revealed. svn path=/trunk/; revision=3301
2000-12-24Rename "asn1_octet_string_value_decode()" toGuy Harris1-2/+4
"asn1_string_value_decode()", as it can be used for various character string types as well. Turn "asn1_octet_string_decode()" into "asn1_string_decode()", which takes an additional argument giving the tag expected for the string in question, and make "asn1_octet_string_decode()" a wrapper around it. Clean up the ASN.1 dissection in the Kerberos dissector, making more use of the code in "asn1.c", wrapping more operations up in macros, and doing some more type checking. Use "REP" rather than "RESP" in names and strings; "REP" is what the Kerberos spec uses. Make the routines in the Kerberos dissector not used outside that dissector static. Fix some problems with the dissection of strings in the Kerberos dissector (it was extracting the data from the wrong place in the packet). In Kerberos V5, the "kvno" item in the EncryptedData type is optional; treat it as such. Treat integers as unsigned in the Kerberos dissector. svn path=/trunk/; revision=2777
2000-03-27Add type tag values for the REAL and ENUMERATED types.Guy Harris1-1/+3
svn path=/trunk/; revision=1752
1999-12-10Make the SNMP dissector use the ASN.1 code, rather than the SNMP libraryGuy Harris1-4/+36
code, to dissect SNMP PDUs; use the SNMP library code only to translate OIDs into strings. Put into the ASN.1 code an annoying hack to cope with the fact that UCD SNMP makes an OID out of "u_long"s whilst CMU SNMP makes it out of "u_int"s - have the ASN.1 code make it out of "subid_t"s, and typedef "subid_t" appropriately depending on the SNMP library you have. Eventually, we should be able to use "libsmi" instead of a full-blown SNMP library, and thus possibly work around various aggravations with the SNMP libraries. svn path=/trunk/; revision=1280
1999-12-05Check in the ASN.1 code for reference purposes, although the SNMPGuy Harris1-0/+109
dissector doesn't use it yet - Nathan Neulinger might use it for a Kerberos 5 dissector, and it might be of use for other dissectors as well. svn path=/trunk/; revision=1215