aboutsummaryrefslogtreecommitdiffstats
path: root/asn1.c
Commit message (Collapse)AuthorAgeFilesLines
* Rename "asn1_octet_string_value_decode()" toGuy Harris2000-12-241-16/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | "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
* In "asn1_oid_value_decode()", set "size" directly from "enc_len", ratherGuy Harris2000-06-261-2/+2
| | | | | | | | than setting "eoc" from "asn1->pointer" and "enc_len" and then setting "size" from "eoc" and "asn1->pointer", to make it clearer how it's being set. svn path=/trunk/; revision=2090
* Note that we may want to add support for the constructed encoding ofGuy Harris2000-03-271-2/+3
| | | | | | | octet strings, as well as the primitive encoding (if we ever run into a protocol where the constructed encoding is allowed). svn path=/trunk/; revision=1751
* Merge in the final code to make Ethereal run on Win32, compiledGilbert Ramirez2000-01-151-1/+5
| | | | | | | | | | | | | | | | with MSVC 6.0 and 'nmake', the make tool that comes with MSVC. It compiles, links, and runs. It doesn't run correctly. There's a problem when reading files. I'm getting short reads. I'm not linking in zlib or libsnmp because it first needs to be debugged. I changed the plugin code to use gmodule instead of libltdl, but the Unix build still links ethereal against libltdl. I'll fix that tonight; sorry about leaving it in such a sad state, but I wanted to check in this code before I left work on a Friday night. Ethereal still works, but the building is less than optimal. svn path=/trunk/; revision=1479
* Make the SNMP dissector use the ASN.1 code, rather than the SNMP libraryGuy Harris1999-12-101-10/+17
| | | | | | | | | | | | | | | | 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
* Check in the ASN.1 code for reference purposes, although the SNMPGuy Harris1999-12-051-0/+895
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