aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-spnego.c
AgeCommit message (Collapse)AuthorFilesLines
2013-06-19Convert the rest of the ASN1 dissectors from emem to wmem.Evan Huus1-2/+2
svn path=/trunk/; revision=50063
2013-05-27Postfix FT_NONE fields with "_element" string to reduce number of ↵Pascal Quantin1-3/+3
incompatible filters in ASN.1 dissectors https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2402 svn path=/trunk/; revision=49599
2013-05-12Add the posibillity to use a key for per-packet-data.Anders Broman1-2/+2
svn path=/trunk/; revision=49259
2013-04-11Update the ASN.1 based dissectors following the changes done in r48812Pascal Quantin1-2/+2
svn path=/trunk/; revision=48820
2013-03-19From beroset:Anders Broman1-10/+10
remove C++ incompatibilities https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8416 svn path=/trunk/; revision=48412
2013-03-17Fix some Dead Store (Dead assignement/Dead increment) Warning found by ClangAlexis La Goutte1-1/+1
svn path=/trunk/; revision=48374
2013-03-04Use explicit casts.Anders Broman1-17/+17
svn path=/trunk/; revision=48045
2012-12-26Fix a bunch of warnings.Guy Harris1-5/+5
Cast away some implicit 64-bit-to-32-bit conversion errors due to use of sizeof. Cast away some implicit 64-bit-to-32-bit conversion errors due to use of strtol() and strtoul(). Change some data types to avoid those implicit conversion warnings. When assigning a constant to a float, make sure the constant isn't a double, by appending "f" to the constant. Constify a bunch of variables, parameters, and return values to eliminate warnings due to strings being given const qualifiers. Cast away those warnings in some cases where an API we don't control forces us to do so. Enable a bunch of additional warnings by default. Note why at least some of the other warnings aren't enabled. randpkt.c and text2pcap.c are used to build programs, so they don't need to be in EXTRA_DIST. If the user specifies --enable-warnings-as-errors, add -Werror *even if the user specified --enable-extra-gcc-flags; assume they know what they're doing and are willing to have the compile fail due to the extra GCC warnings being treated as errors. svn path=/trunk/; revision=46748
2012-10-09From Bill Parker:Anders Broman1-1/+1
Explicitly declare/cast 'unsigned <variable>' as 'unsigned int <variable>' https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7810 svn path=/trunk/; revision=45418
2012-09-24Regenerate asn.1 dissectors.Jakub Zawadzki1-5/+5
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-10Initial commit to support yet another method of passing data between dissectors.Jakub Zawadzki1-2/+2
Add new parameter 'data' to heur_dissector_t and new_dissector_t, for now it's always NULL svn path=/trunk/; revision=44860
2012-06-28Update Free Software Foundation address.Jakub Zawadzki1-1/+1
(COPYING will be updated in next commit) svn path=/trunk/; revision=43536
2012-05-11Get rid of remaining Booleans-as-encoding-arguments inGuy Harris1-1/+1
proto_tree_add_item() calls. svn path=/trunk/; revision=42557
2012-01-15Rename crypt-xxx to xxxJörg Mayer1-2/+2
svn path=/trunk/; revision=40511
2012-01-09Fix some Dead Store (Dead assignement/Dead increment) Warning found by ClangAlexis La Goutte1-10/+4
Try to compile with cmake in Ubuntu 11.10 svn path=/trunk/; revision=40410
2011-11-12fix [-Wunused-but-set-variable]Anders Broman1-2/+6
svn path=/trunk/; revision=39803
2011-10-21For proto_tree_add_item(..., proto_xxx, ...)use ENC_NA as the encoding arg.Bill Meier1-2/+2
Also: remove trailing whitespace for a number of files. svn path=/trunk/; revision=39503
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-10-06Convert 'encoding' parameter of certain proto_tree_add_item() calls in asn1 ↵Bill Meier1-4/+4
dissectors: Specifically: Replace FALSE|0 and TRUE|1 by ENC_BIG_ENDIAN|ENC_LITTLE_ENDIAN as the encoding parameter for proto_tree_add_item() calls which directly reference an item in hf[] which has a type of: FT_UINT8 FT_UINT16 FT_UINT24 FT_UINT32 FT_UINT64 FT_INT8 FT_INT16 FT_INT24 FT_INT32 FT_INT64 FT_FLOAT FT_DOUBLE svn path=/trunk/; revision=39294
2011-10-05Use ENC_NA as encoding for proto_tree_add_item() calls which directly ↵Bill Meier1-12/+12
reference an hf item (in hf[] with types: FT_NONE FT_BYTES FT_IPV6 FT_IPXNET FT_OID Note: Encoding field set to ENC_NA only if the field was previously TRUE|FALSE|1|0|ENC_LITTLE_ENDIAN|ENC_BIG_ENDIAN svn path=/trunk/; revision=39263
2011-05-13Regenerate ASN.1 dissectors to update the #line directive.Stig Bjørlykke1-2/+5
svn path=/trunk/; revision=37118
2011-05-05Cleanup: replace se_alloc+memcpy combo with single se_memdup().Jakub Zawadzki1-3/+2
svn path=/trunk/; revision=36996
2011-05-04Cleanup: g_malloc can't return NULL, remove checks for them.Jakub Zawadzki1-2/+0
XXX, should this code use g_try_malloc instead? svn path=/trunk/; revision=36988
2011-04-08Add a relative path to the "#line" directives we produce. Regenerate theGerald Combs1-19/+19
SNMP and SPNEGO dissectors to see if it helps Coverity locate the original source files. svn path=/trunk/; revision=36522
2011-02-20Add changes in r35384 to template file.Stig Bjørlykke1-2/+2
svn path=/trunk/; revision=36009
2011-01-05Use some tvb_ accessor functions instead of a standard function plus ↵Jeff Morriss1-8/+4
tvb_get_ptr(). svn path=/trunk/; revision=35384
2010-07-01Initialize MechType_oid in the right place.Gerald Combs1-10/+8
svn path=/trunk/; revision=33396
2010-07-01Initialize more variables.Gerald Combs1-7/+9
svn path=/trunk/; revision=33392
2010-05-13Use find_or_create_conversation() in some ASN.1 dissectorsJeff Morriss1-30/+12
svn path=/trunk/; revision=32791
2010-05-11Add a little more code to avoid not-very-useful blurbs:Jeff Morriss1-5/+5
- 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-14/+14
svn path=/trunk/; revision=32746
2010-04-29Make a variable a guint8* instead of a char* since it a) holds TVB data and ↵Jeff Morriss1-4/+4
b) matches what tvb_new_child_real_data() wants for its 2nd argument. This cleans up a warning from the Sun compiler. svn path=/trunk/; revision=32599
2010-04-06#include <stdio.h> not needed.Bill Meier1-6/+5
svn path=/trunk/; revision=32405
2010-02-04From: Stefan Metzmacher <metze@samba.org>Ronnie Sahlberg1-12/+37
Date: Thu, 27 Aug 2009 10:51:34 +0200 Subject: [PATCH 3/7] packet-spnego: fix decryption of DCERPC packets in decrypt_gssapi_krb_cfx_wrap() There the checksum and the encrypted data are no 2 different buffers and we need to combine them before we try to rotate and decrypt them. metze svn path=/trunk/; revision=31794
2010-01-28Fix gcc -Wshadow warning.Bill Meier1-4/+4
svn path=/trunk/; revision=31715
2010-01-03Use proto_spnego for protocol tree item.Stig Bjørlykke1-11/+7
svn path=/trunk/; revision=31418
2009-10-30Apply r30376 to asn1 template files.Stig Bjørlykke1-2/+2
svn path=/trunk/; revision=30767
2009-10-25From Jakub Zawadzki:Anders Broman1-2/+1
Cleanup dissector code - use proper memory functions. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4164 svn path=/trunk/; revision=30691
2009-10-07Switch to using tvb_new_subset_remaining() in .cnf files.Stig Bjørlykke1-1/+1
svn path=/trunk/; revision=30386
2009-10-06From Didier Gautheron:Anders Broman1-8/+9
ep memory can't be used for tvbs defined as data_source. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4054 svn path=/trunk/; revision=30376
2009-08-16Switch a bunch of dissectors over to using tvb_new_subset_remaining()Kovarththanan Rajaratnam1-3/+3
svn path=/trunk/; revision=29446
2009-08-04Initialize several ett_... variables to -1Bill Meier1-3/+3
svn path=/trunk/; revision=29295
2009-07-28When we passed the crytobuffer to krb5_c_decrypt() we never actually Ronnie Sahlberg1-4/+8
verified that we did have enough data in the buffer/tvb, which could lead to a SEGV. (for example if we enable KRB5 decryption but we do NOT use TCP reassembly, and the encrypted data goes beyong the end of the current segment) Change the signature to decrypt_krb5_data() to take a TVB instead of a buffer+length. Actually check that we do have the entire encrypted PDU before calling out to the kerberos libraries. svn path=/trunk/; revision=29213
2009-07-07Changed flags_set_truth -> tfs_set_notsetStig Bjørlykke1-3/+3
svn path=/trunk/; revision=28989
2009-06-26Re-generate asn1 dissectors after hf_register_info cleanup.Stig Bjørlykke1-4/+3
svn path=/trunk/; revision=28848
2009-06-18From Kovarththanan Rajaratnam via bug 3548:Stig Bjørlykke1-19/+19
(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-05-16Regenerate all asn2wrs generated dissectors.Stig Bjørlykke1-2/+2
svn path=/trunk/; revision=28379
2009-05-14Use tvb_new_child_real_data().Anders Broman1-3/+4
svn path=/trunk/; revision=28357
2009-05-13Apply some of the patches from:Anders Broman1-4/+2
http://wiki.wireshark.org/Development/Optimization svn path=/trunk/; revision=28356