summaryrefslogtreecommitdiff
path: root/epan/dissectors/packet-ber.h
AgeCommit message (Collapse)AuthorFilesLines
2016-01-14Rename new_dissector_t to dissector_t.Guy Harris1-2/+2
There are no longer any "old" dissectors, so "new_" is redundant. Change-Id: I5fee51228c2a8562166f5991e1f30c2c697e45c8 Reviewed-on: https://code.wireshark.org/review/13273 Reviewed-by: Guy Harris <guy@alum.mit.edu>
2015-12-10Convert ASN.1 dissectors to remove "new" from "new-style" dissector function ↵Michael Mann1-2/+2
names that were generated from asn2wrs.py This includes: 1. new_create_dissector_handle -> create_dissector_handle 2. new_register_dissector -> register_dissector 3. new_register_ber_oid_dissector -> register_ber_oid_dissector 4. new_register_ber_syntax_dissector -> register_ber_syntax_dissector Also remove PDU_NEW, SYNTAX_NEW and REGISTER_NEW as there is no need for the distinction anymore. Change-Id: I82c7de7c8ffeeab3259d1b55bb4afc5f6a1e0329 Reviewed-on: https://code.wireshark.org/review/12491 Petri-Dish: Michael Mann <mmann78@netscape.net> Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
2015-11-25Require BER dissector (OID) registration to be "new style".Michael Mann1-5/+1
Both old and new style API existed, just remove the "old" one. Change-Id: If725e778a0ecad5a431d634ed5c4856b4a281013 Reviewed-on: https://code.wireshark.org/review/12107 Petri-Dish: Michael Mann <mmann78@netscape.net> Reviewed-by: Anders Broman <a.broman58@gmail.com> Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
2015-01-02Replace proto_tree_add_text in dissector header files where it was used in a ↵Michael Mann1-6/+0
macro that should be expert info. Change-Id: I045368a0a91586231fc4b1e2700c2275088b76af Reviewed-on: https://code.wireshark.org/review/6244 Petri-Dish: Michael Mann <mmann78@netscape.net> Reviewed-by: Anders Broman <a.broman58@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
2014-12-03Support dissecting REAL (BER) data valuesMaarten Bezemer1-1/+1
Both exponent and 'integer N' values are limited: * max exponent is 3 octets/24-bits * max integer N is 8 octets/64-bit Tested with zero value/length, integers, doubles, positive and negative numbers all using the Basic Encoding Rules (BER) Change-Id: If92e1b3e209c42909b8cb76e6f50b8e6cd1da0da Reviewed-on: https://code.wireshark.org/review/5527 Reviewed-by: Michael Mann <mmann78@netscape.net> Petri-Dish: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-10-07ASN1: Added support for using #.REGISTER_NEWStig Bjørlykke1-0/+4
This will register BER PDU-dissectors as "new". Return number of bytes dissected from dissector_try_* functions. Return number of bytes dissected in DissectorTable:try() This will make it possible to get dissected length when using dissector_try_*() and dissected ASN.1 length in Lua when using DissectorTable:try() (as we already have for Dissector:call). Change-Id: Iee17a68dc214fa0fb50b25fc927026ad7c1cbce4 Reviewed-on: https://code.wireshark.org/review/4531 Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org> Tested-by: Stig Bjørlykke <stig@bjorlykke.org>
2014-10-07Revert "ASN1: Added support for using #.REGISTER_NEW"Gerald Combs1-4/+0
This temporarily reverts commit acc09c2aa248d892ee6b894b43c79cb060131b11. Change-Id: I7a55c8c2da3f65e914b90648ee92c84efd57f1a0 Reviewed-on: https://code.wireshark.org/review/4525 Reviewed-by: Gerald Combs <gerald@wireshark.org>
2014-10-07ASN1: Added support for using #.REGISTER_NEWStig Bjørlykke1-0/+4
This will register BER PDU-dissectors as "new". Return number of bytes dissected from dissector_try_* functions. Return number of bytes dissected in DissectorTable:try() This will make it possible to get dissected length when using dissector_try_*() and dissected ASN.1 length in Lua when using DissectorTable:try() (as we already have for Dissector:call). Change-Id: I8802a812bd484c1e8794c618b87e676003aea94a Reviewed-on: https://code.wireshark.org/review/4493 Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org> Tested-by: Stig Bjørlykke <stig@bjorlykke.org>
2014-09-16Fix spelling: cant-->can't, wont-->won't, etcBill Meier1-1/+1
Change-Id: I4497f1b8b6eab0e576d9dd31b732965f9a6679c6 Reviewed-on: https://code.wireshark.org/review/4124 Reviewed-by: Bill Meier <wmeier@newsguy.com>
2014-04-18Remove all old BER functions.Stig Bjørlykke1-30/+1
This should complete the transition to the "New" type. Change-Id: I882b088206c6e6d0592159451c943caeaf5b90ec Reviewed-on: https://code.wireshark.org/review/1202 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-03-04Remove all $Id$ from top of fileAlexis La Goutte1-2/+0
(Using sed : sed -i '/^ \* \$Id\$/,+1 d') Fix manually some typo (in export_object_dicom.c and crc16-plain.c) Change-Id: I4c1ae68d1c4afeace8cb195b53c715cf9e1227a8 Reviewed-on: https://code.wireshark.org/review/497 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2013-10-31Add a data parameter to call_ber_oid_callback to be able to pass data to ↵Michael Mann1-1/+1
subdissectors found with dissector_try_string_new. The intention is to aid in the removal of pinfo->private_data use as well as static global variables in a dissector. For now, all calls to call_ber_oid_callback have the data parameter set to NULL. svn path=/trunk/; revision=52994
2013-10-13whitespace fixes; mostly: remove trailing blanksBill Meier1-7/+7
svn path=/trunk/; revision=52591
2013-10-06Add support for RELATIVE-OID ASN.1 type. Bug 9192 ↵Michael Mann1-0/+5
(https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9192) From Ed Beroset. svn path=/trunk/; revision=52393
2013-03-01Export libwireshark symbols using WS_DLL_PUBLIC defineBalint Reczey1-26/+36
Also remove old WS_VAR_IMPORT define and related Makefile magic everywhere in the project. svn path=/trunk/; revision=47992
2012-06-28Update Free Software Foundation address.Jakub Zawadzki1-1/+1
(COPYING will be updated in next commit) svn path=/trunk/; revision=43536
2011-11-19Get rod of " warning: identifier ‘class’ conflicts with C++ keyword"Anders Broman1-6/+6
svn path=/trunk/; revision=39945
2011-09-26Get rid of check_col, while at it set ENC.Anders Broman1-3/+1
svn path=/trunk/; revision=39146
2010-01-05Added check for SIZE constraints in bit-string.Stig Bjørlykke1-0/+1
svn path=/trunk/; revision=31447
2009-12-18Added option (-C) to check for SIZE constraints in octet-string, integer,Stig Bjørlykke1-0/+11
enumerated, sequence-of and set-of types. Added BER functions to check for SIZE constraints and give expert info warnings. svn path=/trunk/; revision=31309
2008-10-31Do not call a variable value_string as we have a struct with this name.Stig Bjørlykke1-1/+1
svn path=/trunk/; revision=26658
2008-08-01From Martin Peylo (bug 2507):Stig Bjørlykke1-0/+2
The attached patch enables asn2wrs.py and packet-ber.c to decode UTCTime according to the definitions in X.680. svn path=/trunk/; revision=25897
2008-01-04Get rid of dissect_ber_boolean_value() and change the signature ofAnders Broman1-2/+1
dissect_ber_boolean() to return a value and update asn2wrs to generate the new signature. Regenerate all BER dissectors. svn path=/trunk/; revision=24015
2008-01-04Get rid of ber_last_created_item(). (Final?)Anders Broman1-4/+0
svn path=/trunk/; revision=24010
2007-08-24get_ber_length doesn't need the tree argument, get rid of it.Jörg Mayer1-1/+1
Rebuild asn1 dissectors. svn path=/trunk/; revision=22627
2007-06-12Preparations for updated CMIP dissector:Anders Broman1-0/+1
- Export AE-title from ACSE - Start REAL dissection(unfinished). svn path=/trunk/; revision=22083
2007-06-03INAP:Anders Broman1-0/+1
- Use (some) IN CS4 asn1 files Q.1248.1 Q.1248.2 Q.1248.3 BER/asn2wrs: - Add basic support for EmbeddedPDVType svn path=/trunk/; revision=22031
2007-05-22Prepare for the use of the new -X parameter for BER encoded protocols.Anders Broman1-7/+38
svn path=/trunk/; revision=21889
2007-05-15actx in the rest of dissect_ber..()lAnders Broman1-15/+15
svn path=/trunk/; revision=21773
2007-05-13replace an incorrect '{' with ';' in the ber header fileRonnie Sahlberg1-1/+1
change the signature for dissect_ber_external_type() to only provide the parameter actx once svn path=/trunk/; revision=21756
2007-05-13actx in ber_externalAnders Broman1-0/+1
svn path=/trunk/; revision=21755
2007-05-13Second step in introducing asn context to BER dissectors just like in PER.Anders Broman1-8/+8
svn path=/trunk/; revision=21753
2007-05-06Start introducing actx to ber functions.Anders Broman1-1/+2
svn path=/trunk/; revision=21705
2007-04-28Revert some private experiments checked in by misstake.Anders Broman1-1/+0
svn path=/trunk/; revision=21609
2007-04-28From Gavin Heer:Anders Broman1-0/+1
Here's a patch that decodes MMS(Manufacturing Messaging Specification) when transported over COTP/TPKT/TCP. Previously, MMS would only be decoded if the OSI Presentation Layers were present. Now MMS/COTP/TPKT/TCP is dissected. With a change to use more functions from packet-ber svn path=/trunk/; revision=21608
2007-04-23Add some GCC warnings to the standard set, and add some others to theGuy Harris1-1/+1
--enable-extra-gcc-checks set. If we turn on -pedantic, try turning on -Wno-long-long as well, so that it's not *so* pedantic that it rejects the 64-bit integral data types that we explicitly require. Constify a bunch of stuff, and make some other changes, to get rid of warnings. Clean up some indentation. svn path=/trunk/; revision=21526
2007-04-20Add EXTERNAL to the value string and add comments about UNIVERSAL tags.Anders Broman1-0/+11
svn path=/trunk/; revision=21479
2007-01-13New "decode as ..." feature for BER-encoded files (WTAP_FILE_BER). Graeme Lunt1-0/+8
A BER-encoded file can be dissected as one of a number of registered syntaxes (registered using register_ber_syntax_dissector()). Syntaxes may also be associated with OIDs (or other strings) using register_ber_oid_syntax(). A default syntax with which to dissect a BER-encoded file is determined from its filename (extension). For example, ".cer" and ".crt" files will be dissected as "Certificate". svn path=/trunk/; revision=20414
2006-11-04General updates to:Graeme Lunt1-0/+2
*) Remove maximum LDAP PDU size check - they can get large with either large attributes (e.g. CRLs, SPIFs) or with lots of results (see http://www.wireshark.org/lists/wireshark-users/200610/msg00197.html). The max size preference is also removed. *) Support for dissecting LDAP controls including server side sorting and paged results. A new BER function is introduced to see if there is a dissector for a given OID. *) Remove reference to removed BER preference in the LDAP reassembly preference. *) Mark a LDAPURL as a URL svn path=/trunk/; revision=19792
2006-06-29from metzeRonnie Sahlberg1-0/+1
prettify dissection of filters containing substring and extensiblematch svn path=/trunk/; revision=18617
2006-06-28remove functions register_ber_oid_name() and get_ber_oid_name() from ↵Tomas Kukosa1-2/+0
packet-ber.c, they were only OID but not BER related use add_oid_str_name() and get_oid_str_name() instead of them svn path=/trunk/; revision=18595
2006-06-15- BER_MAX_OID_STR_LEN removed and replaced with MAX_OID_STR_LENTomas Kukosa1-1/+4
- x411 and dop regenerated - dissect_ber_tagged_type() prepared (support in asn2wrs will follow) svn path=/trunk/; revision=18468
2006-05-21change a whole bunch of ethereal into wiresharkRonnie Sahlberg1-2/+2
svn path=/trunk/; revision=18196
2006-02-28add new dissect_ber_integer64() that can handle 8,16,24,32 and 64bit ↵Ronnie Sahlberg1-0/+2
integers. use proto_tree_add_[u]int[8,16,24,32,64]() instread of proto_tree_add_item() since BER integers may well be encoded in less bytes than the type requires. (i do not think the old code with proto_tree_add_item() could have handleded negative values very well or at all.) svn path=/trunk/; revision=17425
2005-12-06OBJECT IDENTIFIER name resolution moved to oid_resolv.cTomas Kukosa1-1/+1
svn path=/trunk/; revision=16699
2005-11-14 - dissect_ber_object_identifier() returns value as tvbTomas Kukosa1-4/+3
- new dissect_ber_object_identifier_str() function - BER dissectors adapted and regenerated svn path=/trunk/; revision=16501
2005-08-18Tim's patches for packet-ber for extra testing (works ok with my and with ↵Ronnie Sahlberg1-11/+13
Anders captures) Anders' beginnings of a new dissect_ber_set() function svn path=/trunk/; revision=15402
2005-08-05More char -> const char warning fixesJörg Mayer1-1/+1
svn path=/trunk/; revision=15222
2005-07-28char -> const char warning fixesJörg Mayer1-5/+5
svn path=/trunk/; revision=15126
2005-07-21change the symbol dissect_ber_CHOICE back into dissect_ber_choiceRonnie Sahlberg1-1/+1
svn path=/trunk/; revision=14980