aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-kerberos.c
AgeCommit message (Collapse)AuthorFilesLines
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
2009-08-09Don't guard col_set_str (COL_INFO/COL_PROTOCOL) with col_checkKovarththanan Rajaratnam1-3/+1
svn path=/trunk/; revision=29345
2009-08-09Don't guard col_clear with col_checkKovarththanan Rajaratnam1-4/+2
svn path=/trunk/; revision=29344
2009-08-09Don't guard col_set_str (COL_PROTOCOL) with col_checkKovarththanan Rajaratnam1-6/+3
svn path=/trunk/; revision=29340
2009-07-28When we passed the crytobuffer to krb5_c_decrypt() we never actually Ronnie Sahlberg1-18/+60
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-06-18From Kovarththanan Rajaratnam via bug 3548:Stig Bjørlykke1-84/+84
(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-14Apply some of the patches from:Anders Broman1-16/+8
http://wiki.wireshark.org/Development/Optimization svn path=/trunk/; revision=28363
2009-05-08The convention is to use TFS(...) when specifying a true_false_string with ↵Bill Meier1-3/+1
an FT_BOOLEAN field; Also: use the global true_false_string tfs_yes_no in place of a static local string. svn path=/trunk/; revision=28321
2009-04-08Don't assemble asm_utils_win32_x86 on x64. Export a dummy read_keytab_fileGerald Combs1-0/+6
if we're not using any encryption libraries on Windows. This fixes the last Win64 compilation problems in epan. svn path=/trunk/; revision=28008
2009-04-08(Trivial) Fix some spelling & etc in commentsBill Meier1-1/+1
svn path=/trunk/; revision=27996