aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-kerberos.c
AgeCommit message (Collapse)AuthorFilesLines
2013-08-01Move a bunch of the crypt modules and pint.h into wsutil.Jeff Morriss1-1/+1
This means wsutil now links against libcrypt. Protect a bunch of the crypt header files from multiple inclusion. svn path=/trunk/; revision=51100
2013-06-21Cast away some errors of these types:Stephen Fisher1-5/+5
request for implicit conversion from 'gpointer' to 'char *' not permitted in C++ [-Werror=c++-compat] and enum conversion when passing argument 3 of 'krb5_crypto_init' is invalid in C++ [-Werror=c++-compat] svn path=/trunk/; revision=50108
2013-06-14Removed check_col() and the occasional tree.Michael Mann1-3/+3
svn path=/trunk/; revision=49938
2013-03-18From beroset:Anders Broman1-8/+8
remove C++ incompatibilities https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8416 svn path=/trunk/; revision=48400
2013-03-01Export libwireshark symbols using WS_DLL_PUBLIC defineBalint Reczey1-2/+4
Also remove old WS_VAR_IMPORT define and related Makefile magic everywhere in the project. svn path=/trunk/; revision=47992
2013-02-27Move show_exception() and show_reported_bounds_error() toGuy Harris1-2/+2
epan/show_exception.c, as it's used outside epan/dissectors/packet-frame.c. Update their callers to include <epan/show_exception.h> to get their declaration. Add a CATCH_NONFATAL_ERRORS macro that catches all exceptions that, if there's more stuff in the packet to dissect after the dissector call that threw the exception, doesn't mean you shouldn't go ahead and dissect that stuff. Use it in all those cases, including ones where BoundsError was inappropriately being caught (you want those passed up to the top level, so that the packet is reported as having been cut short in the capture process). Add a CATCH_BOUNDS_ERRORS macro that catches all exceptions that correspond to running past the end of the data for a tvbuff; use it rather than explicitly catching those exceptions individually, and rather than just catching all exceptions (the only place that DissectorError should be caught, for example, is at the top level, so dissector bugs show up in the protocol tree). Don't catch and then immediately rethrow exceptions without doing anything else; just let the exceptions go up to the final catcher. Use show_exception() to report non-fatal errors, rather than doing it yourself. If a dissector is called from Lua, catch all non-fatal errors and use show_exception() to report them rather than catching only ReportedBoundsError and adding a proto_malformed item. Don't catch exceptions when constructing a trailer tvbuff in packet-ieee8023.c - just construct it after the payload has been dissected, and let whatever exceptions that throws be handled at the top level. Avoid some TRY/CATCH/ENDTRY cases by using checks such as tvb_bytes_exist() before even looking in the tvbuff. svn path=/trunk/; revision=47924
2013-02-19How can I get a new tvbuff that starts at an offset within a givenGuy Harris1-11/+9
tvbuff and runs to the end of the tvbuff? Let me count the ways.... Replace a bunch of different ways of doing that (some incorrect, in that they're not properly handling tvbuffs where the captured and reported lengths are different) with tvb_new_subset_remaining(). svn path=/trunk/; revision=47751
2013-02-08Add a directory name preference type (PREF_DIRNAME) and registrationGerald Combs1-1/+1
routine (prefs_register_directory_preference). Add PREF_FILENAME and PREF_DIRNAME support to the Qt module preferences. Change a couple of preferences to directory names. Clean up some names and default settings. svn path=/trunk/; revision=47573
2013-02-08Change string to filename preference so file can be browsed forMichael Mann1-1/+1
svn path=/trunk/; revision=47566
2012-12-21The KRB_RM_ #defines fit in 32 bits, so just make them unsigned, notGuy Harris1-4/+2
long. dissect_krb5_Checksum() is declared in epan/dissectors/packet-kerberos.h; don't declare it again here. svn path=/trunk/; revision=46666
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-11Add data parameter to call_dissector_only.Jakub Zawadzki1-1/+1
svn path=/trunk/; revision=44872
2012-09-10Initial commit to support yet another method of passing data between dissectors.Jakub Zawadzki1-3/+1
Add new parameter 'data' to heur_dissector_t and new_dissector_t, for now it's always NULL svn path=/trunk/; revision=44860
2012-07-29From Weijun Wang via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7481Alexis La Goutte1-1/+1
Description for Kerberos 5's ENC-TKT-IN-SKEY is wrong http://tools.ietf.org/html/rfc4120#section-2.9.2 #Backport svn path=/trunk/; revision=44108
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-15Remove unneeded includes (ctype.h, stdio.h);Bill Meier1-1/+1
In one case, define our own size for a string buffer (instead of using a magic constant 'BUFSIZ'); In a few cases: do some whitespace, indentation & reformatting cleanup. svn path=/trunk/; revision=42634
2012-05-07From Evan Huus: remove unused variablesBill Meier1-2/+1
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7229 https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7230 svn path=/trunk/; revision=42455
2012-03-31Fix off by one shift errors introduced in r39530 where it seemed proper[1]Jakub Zawadzki1-1/+1
[1] I'm unsure of packet-dtpt, so I haven't patch it. svn path=/trunk/; revision=41873
2012-03-16FT_BOOLEAN hf[] entries with a 0 'bitmask' should have 'display' = BASE_NONE;Bill Meier1-1/+1
In some cases: Use val_to_str_const() instead of val_to_str(); Reformat long lines; Do some general whitespace changes. svn path=/trunk/; revision=41587
2012-01-15Rename crypt-xxx to xxxJörg Mayer1-1/+1
svn path=/trunk/; revision=40511
2011-12-16PAC: rename CONSTRAINED_DELEGATION to S4U_DELEGATION_INFORonnie Sahlberg1-16/+16
svn path=/trunk/; revision=40225
2011-12-16Kerberos: rename the pa type 129 to the correct name PA_FOR_USER and ↵Ronnie Sahlberg1-13/+9
describe where this type is specified svn path=/trunk/; revision=40224
2011-12-14Fix tvb memory leak.Bill Meier1-0/+1
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3917 svn path=/trunk/; revision=40199
2011-10-23Replace use of tvb_get_ephemeral_faked_unicode() by use of ↵Bill Meier1-1/+1
tvb_get_ephemeral_unicode_string(); Fix encoding arg as needed. svn path=/trunk/; revision=39530
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-10 Convert 'encoding' parameter of certain proto_tree_add_item() calls in ↵Bill Meier1-9/+9
non-autogenerated epan/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_BOOLEAN FT_IPv4 FT_EUI64 FT_GUID FT_UINT_STRING Also: For type FT_ITv6 use ENC_NA. (This was missed in SVN #39260) svn path=/trunk/; revision=39328
2011-10-06Convert 'encoding' parameter of certain proto_tree_add_item() calls in ↵Bill Meier1-17/+17
non-autogenerated epan/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=39288
2011-10-04Use ENC_NA as encoding for proto_tree_add_item() calls which directly ↵Bill Meier1-10/+10
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|ENC_LITTLE_ENDIAN|ENC_BIG_ENDIAN svn path=/trunk/; revision=39260
2011-05-23Fix various benign cases of Coverity [UNUSED]: 996,995,956,936,899,1133,1000Bill Meier1-9/+1
svn path=/trunk/; revision=37371
2011-04-10Rename ws_stat to ws_stat64, and make it take a pointer to a ws_statb64Guy Harris1-2/+2
as an argument, along the lines of ws_fstat64, and, on Windows, make it use _wstati64, to handle 64-bit file sizes. svn path=/trunk/; revision=36547
2011-01-15Replace ip_to_str((tvb_get_ptr(...)) with tvb_ip_to_str().Jeff Morriss1-1/+1
Replace ip6_to_str((tvb_get_ptr(...)) with tvb_ip6_to_str(). svn path=/trunk/; revision=35543
2010-12-20Rename the routines that handle dissector tables with unsigned integerGuy Harris1-2/+2
keys to have _uint in their names, to match the routines that handle dissector tables with string keys. (Using _port can confuse people into thinking they're intended solely for use with TCP/UDP/etc. ports when, in fact, they work better for things such as Ethernet types, where the binding of particular values to particular protocols are a lot stronger.) svn path=/trunk/; revision=35224
2010-10-10Define some fcns & vars as static; Some #includes not req'd; packet-mikey.h ↵Bill Meier1-4/+3
not req'd. svn path=/trunk/; revision=34464
2010-09-24(Refining the regexp...) Replace blurbs that match the name (case ↵Jeff Morriss1-1/+1
insensitive) with NULL. svn path=/trunk/; revision=34230
2010-09-23Replace blurbs that match the name (case insensitive) with NULL.Jeff Morriss1-3/+3
svn path=/trunk/; revision=34227
2010-05-27Reword two error messages as per Bug #4518.Bill Meier1-2/+2
See: https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4518 svn path=/trunk/; revision=32994
2010-05-20From Hadar Shoham:Jaap Keuter1-1/+9
Add support to AP request option reserved bit. svn path=/trunk/; revision=32910
2010-05-11Use consistent indentation; Whitespace & formatting cleanup.Bill Meier1-2982/+2979
svn path=/trunk/; revision=32754
2010-05-11Fix handling of pa-data-type KRB5_PA_PAC_REQUEST (& KRB5_PA_S4U2SELF).Bill Meier1-7/+11
-Define pa-data-type KRB5_PA_PAC_REQUEST properly so that it is recognized. Fixes bug #4752 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4752) -Also revert definition of KRB5_PA_S4U2SELF (to be a positive number). (All of the above reverts part of SVN #31400). -Display pa-data-type as FT_INT32. -Display the value for pa-data-type KRB5_PA_PAC_REQUEST as Boolean (not Int). svn path=/trunk/; revision=32752
2010-01-22In our case, not being able to read the Kerberos configuration fileGerald Combs1-1/+1
isn't a big deal. svn path=/trunk/; revision=31626
2010-01-19Fix a double-free bug which was causing a crash. Our decryption bufferGerald Combs1-9/+11
length doesn't change, so allocate it just once. Add an expert item for a successful decryption. svn path=/trunk/; revision=31571
2010-01-18Fix some gcc -Wshadow warnings ....Bill Meier1-30/+30
svn path=/trunk/; revision=31559
2010-01-13Try to fix a memory leak.Anders Broman1-0/+1
svn path=/trunk/; revision=31514
2010-01-02From Jakub Zawadzki:Anders Broman1-8/+4
Cleanup dissector code - use proper memory functions. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4164 svn path=/trunk/; revision=31408
2010-01-01Fix Bug #4363: wireshark decodes kerberos AS-REQ PADATA incorrectly.Bill Meier1-7/+7
See https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4363 svn path=/trunk/; revision=31400
2009-12-19For fields of type FT_ABSOLUTE_TIME, have the "display" value be one ofGuy Harris1-1/+1
ABSOLUTE_TIME_LOCAL or ABSOLUTE_TIME_UTC, indicating whether to display the date/time in local time or UTC. (int)ABSOLUTE_TIME_LOCAL == (int)BASE_NONE, so there's no source or binary compatiblity issue, although we might want to eliminate BASE_NONE at some point and have the BASE_ values used with integral types start at 0, so that you can't specify BASE_NONE for an integral field. svn path=/trunk/; revision=31319
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-09If we're on Windows and we don't have kerberos, define a dummy version of ↵Jeff Morriss1-2/+12
read_keytab_file_from_preferences to keep the linker happy (since this function is in libwireshark.def). svn path=/trunk/; revision=30445
2009-10-07add a new function read_keytab_file_from_preferences(void)Ronnie Sahlberg1-18/+30
that can be called by dissectoirs using kerberos keytab files. This function will load a new keytab file on demand, if it is changed in the preferences. The previous code had you save the preferences and then restart wireshark which is suboptimal from a user friendly perspective svn path=/trunk/; revision=30384
2009-10-04we must create a fake dcerpc_call_value structure when we call into the Ronnie Sahlberg1-4/+8
dcerpc helpers svn path=/trunk/; revision=30286