aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-x509if.c
AgeCommit message (Collapse)AuthorFilesLines
2014-12-23asn1 generated dissectors: cleanup #include usageBill Meier1-10/+8
Change-Id: I36b2731d67f9345d2fd0c23800bba7d2be94c387 Reviewed-on: https://code.wireshark.org/review/6008 Reviewed-by: Bill Meier <wmeier@newsguy.com>
2014-10-13ASN1: Register PDU-dissectors as NEWStig Bjørlykke1-41/+49
Change-Id: I1a317b19d8076588c9305dae6287bb80cc14da64 Reviewed-on: https://code.wireshark.org/review/4494 Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net> Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org> Tested-by: Stig Bjørlykke <stig@bjorlykke.org>
2014-07-06Add printf-format annotations, fix garbagePeter Wu1-3/+3
The WRETH dissector showed up some garbage in the column display. Upon further inspection, it turns out that the format string had a trailing percent sign which caused (unsigned)-1 to be returned by g_printf_string_upper_bound (in emem_strdup_vprintf). Then ep_alloc is called with (unsigned)-1 + 1 = 0 memory, no wonder that garbage shows up. ASAN could not even catch this error because EP is in charge of this. So, start adding G_GNUC_PRINTF annotations in each header that uses the "fmt" or "format" paramters (grepped + awk). This revealed some other errors. The NCP2222 dissector was missing a format string (not a security vuln though). Many dissectors used val_to_str with a constant (but empty) string, these have been replaced by val_to_str_const. ASN.1 dissectors were regenerated for this. Minor: the mate plugin used "%X" instead of "%p" for a pointer type. The ncp2222 dissector and wimax plugin gained modelines. Change-Id: I7f3f6a3136116f9b251719830a39a7b21646f622 Reviewed-on: https://code.wireshark.org/review/2881 Reviewed-by: Evan Huus <eapache@gmail.com>
2014-06-19Revert "Fixup: tvb_* -> tvb_captured"Michael Mann1-1/+1
https://www.wireshark.org/lists/wireshark-dev/201406/msg00131.html This reverts commit 246fe2ca4c67d8c98caa84e2f57694f6322e2f96. Change-Id: Ib24bae0198c13a84bd7f731bf4af921212109a8f Reviewed-on: https://code.wireshark.org/review/2430 Reviewed-by: Michael Mann <mmann78@netscape.net>
2014-06-18Fixup: tvb_* -> tvb_capturedDario Lombardo1-1/+1
Change-Id: I9209c1271967405c34c1b6fa43e1726a4d3a5a3f Reviewed-on: https://code.wireshark.org/review/2377 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-02-26Remove trailing whitespace from asn1 .cnf & template.[hc] files. Regenerate ↵Bill Meier1-11/+11
dissectors. Change-Id: I0e779b2ac2f608356649c5bbfca438141070dea4 Reviewed-on: https://code.wireshark.org/review/412 Reviewed-by: Bill Meier <wmeier@newsguy.com> Tested-by: Bill Meier <wmeier@newsguy.com>
2014-02-18Remove $Id$ from the ASN.1 dissectors and regenerate them.Jeff Morriss1-28/+26
Change-Id: Ie476c6f82f318188b41ed922b92c6fec119ea954 Reviewed-on: https://code.wireshark.org/review/244 Reviewed-by: Jeff Morriss <jeff.morriss.ws@gmail.com> Tested-by: Jeff Morriss <jeff.morriss.ws@gmail.com>
2013-12-07- Make local functions static.Anders Broman1-6/+9
- Forward declaration of register functions. svn path=/trunk/; revision=53821
2013-10-31Add a data parameter to call_ber_oid_callback to be able to pass data to ↵Michael Mann1-13/+13
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-06-28replace object_identifier_id with actx->external.direct_referenceMichael Mann1-36/+34
svn path=/trunk/; revision=50209
2013-06-19Apparently one of our major global headers must include emem.h, because I justEvan Huus1-12/+13
found a bunch more asn1 dissectors using emem without ever directly including the header. Convert those to wmem as well, which involves add a number of #include directives since dissectors do *not* automatically pull in the wmem headers. svn path=/trunk/; revision=50066
2013-06-14Remove check_col() from ASN.1 dissectorsMichael Mann1-5/+4
svn path=/trunk/; revision=49927
2013-05-27Postfix FT_NONE fields with "_element" string to reduce number of ↵Pascal Quantin1-41/+41
incompatible filters in ASN.1 dissectors https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2402 svn path=/trunk/; revision=49599
2013-04-11Update the ASN.1 based dissectors following the changes done in r48812Pascal Quantin1-2/+2
svn path=/trunk/; revision=48820
2013-03-02Use explicit casts.Anders Broman1-6/+6
svn path=/trunk/; revision=48008
2012-11-12Update ACP133 to edition D.Stig Bjørlykke1-20/+22
svn path=/trunk/; revision=46008
2012-11-08Only append oid name to parent item once when having RDN as a attribute.Stig Bjørlykke1-21/+19
svn path=/trunk/; revision=45965
2012-09-24Regenerate asn.1 dissectors.Jakub Zawadzki1-6/+6
svn path=/trunk/; revision=45110
2012-09-20We always HAVE_CONFIG_H so don't bother checking whether we have it or not.Jeff Morriss1-3/+1
svn path=/trunk/; revision=45017
2012-09-03MT: move global frame_end_routines to packet_info.Jakub Zawadzki1-5/+5
svn path=/trunk/; revision=44748
2012-06-28Update Free Software Foundation address.Jakub Zawadzki1-1/+1
(COPYING will be updated in next commit) svn path=/trunk/; revision=43536
2011-10-15Update generated ASN1 *.[hc] files after recent work done by Jeff Morriss;Bill Meier1-1/+1
The only change in each file is in a comment showing the asn2wrs cmd used to build that file. svn path=/trunk/; revision=39427
2011-04-12Add x509if_frame_end() which is passed to register_frame_end_routine()Gerald Combs1-46/+68
and which resets our global variables. Remove a boolean which was used to track a char *; just check if the pointer is NULL instead. Fixes bugs 5754 and 5793, hopefully without breaking anything. svn path=/trunk/; revision=36608
2010-05-11Add a little more code to avoid not-very-useful blurbs:Jeff Morriss1-34/+34
- Change spaces in the name to underscores before comparing it to the blurb. - Check if the type simply as T_ prepended to the name. - Don't put in a blurb of "NULL". and regenerate the dissectors. svn path=/trunk/; revision=32748
2010-05-11Regenerate a few more of the ASN.1 dissectorsJeff Morriss1-151/+151
svn path=/trunk/; revision=32747
2010-04-07#include <string.h> and/or #include <stdio.h> not needed.Bill Meier1-8/+6
svn path=/trunk/; revision=32417
2010-04-06#include <stdio.h> not needed.Bill Meier1-7/+6
svn path=/trunk/; revision=32405
2009-10-11Make all proto_* values static.Stig Bjørlykke1-1/+1
svn path=/trunk/; revision=30516
2009-06-26Re-generate asn1 dissectors after hf_register_info cleanup.Stig Bjørlykke1-4/+4
svn path=/trunk/; revision=28848
2009-06-18From Kovarththanan Rajaratnam via bug 3548:Stig Bjørlykke1-9/+9
(1) Trailing/leading spaces are removed from 'name's/'blurb's (2) Duplicate 'blurb's are replaced with NULL (3) Empty ("") 'blurb's are replaced with NULL (4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME, FT_PROTOCOL, FT_STRING and FT_STRINGZ field types (5) Only allow non-zero value for 'display' if 'bitmask' is non-zero svn path=/trunk/; revision=28770
2009-06-02Restore the generation and display of LDAP DNs from RDN componentsGraeme Lunt1-80/+80
svn path=/trunk/; revision=28589
2009-05-16Regenerate all asn2wrs generated dissectors.Stig Bjørlykke1-41/+41
svn path=/trunk/; revision=28379
2009-02-07#include <epan/emem.h> not req'd ...Bill Meier1-7/+6
svn path=/trunk/; revision=27391
2009-02-07#include <epan/conversation.h> and/or #include <epan/emem.h> not req'd ...Bill Meier1-7/+6
svn path=/trunk/; revision=27390
2008-11-01Regenerate all asn2wrs generated dissectorsAnders Broman1-40/+40
svn path=/trunk/; revision=26670
2008-09-01Try to fix unused code warnings.Anders Broman1-47/+42
svn path=/trunk/; revision=26109
2008-09-01Update to use unchanged asn1 files and X.501:08/2005.Anders Broman1-424/+715
Hopefullly without breaking to many things. svn path=/trunk/; revision=26108
2008-01-261) Correct attribute name.Graeme Lunt1-18/+42
2) Add subtreespecification attribute. 3) Label each attribute in the tree with the attribute type. svn path=/trunk/; revision=24194
2008-01-04Get rid of dissect_ber_boolean_value() and change the signature ofAnders Broman1-2/+2
dissect_ber_boolean() to return a value and update asn2wrs to generate the new signature. Regenerate all BER dissectors. svn path=/trunk/; revision=24015
2007-11-05Update to use the -X and -T asn2wrs flags.Anders Broman1-824/+410
svn path=/trunk/; revision=23366
2007-11-01Change:Anders Broman1-3/+3
get_oid_str_name() -> oid_resolved_from_string() get_oid_name() -> oid_resolved_from_encoded() svn path=/trunk/; revision=23331
2007-08-25get users of oid_resolv to use the new oids, rollout packet-snmp.cLuis Ontanon1-1/+1
svn path=/trunk/; revision=22651
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-05-22Prepare for the use of the new -X parameter for BER encoded protocols.Anders Broman1-213/+213
svn path=/trunk/; revision=21889
2007-05-15actx in the rest of dissect_ber..()lAnders Broman1-14/+14
svn path=/trunk/; revision=21773
2007-05-13Second step in introducing asn context to BER dissectors just like in PER.Anders Broman1-469/+474
svn path=/trunk/; revision=21753
2007-05-06Start introducing actx to ber functions.Anders Broman1-136/+136
svn path=/trunk/; revision=21705
2007-05-03EXTERNAL type is handled in asn2wrs nowTomas Kukosa1-1/+1
private implementations were renamed EXTERNAL -> EXTERNALt svn path=/trunk/; revision=21662
2007-03-21change the signature that asn2wrs generates for functions to marm all ↵Ronnie Sahlberg1-233/+233
parameters as _U_ to reduce the number of compiler warnings. update some template and cnf files to use _U_ as well svn path=/trunk/; revision=21088
2006-08-16ASN.1 dissectors regenerated with new asn2wrs to get updated field blurbTomas Kukosa1-139/+139
svn path=/trunk/; revision=18921