aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-kerberos.c
AgeCommit message (Collapse)AuthorFilesLines
2012-07-29From Weijun Wang via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7481alagoutte1-1/+1
Description for Kerberos 5's ENC-TKT-IN-SKEY is wrong http://tools.ietf.org/html/rfc4120#section-2.9.2 #Backport git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@44108 f5534014-38df-0310-8fa8-9805f1628bb7
2012-06-28Update Free Software Foundation address.darkjames1-1/+1
(COPYING will be updated in next commit) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@43536 f5534014-38df-0310-8fa8-9805f1628bb7
2012-06-20Use separate filters for the RTT found on a SACK and the RTT found on amorriss1-5/+4
DATA chunk: having them in both places is helpful when looking at the messages but having them separate is helpful when graphing the RTTs. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@43406 f5534014-38df-0310-8fa8-9805f1628bb7
2012-01-15Rename crypt-xxx to xxxjmayer1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@40511 f5534014-38df-0310-8fa8-9805f1628bb7
2011-12-16PAC: rename CONSTRAINED_DELEGATION to S4U_DELEGATION_INFOsahlberg1-16/+16
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@40225 f5534014-38df-0310-8fa8-9805f1628bb7
2011-12-16Kerberos: rename the pa type 129 to the correct name PA_FOR_USER and ↵sahlberg1-13/+9
describe where this type is specified git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@40224 f5534014-38df-0310-8fa8-9805f1628bb7
2011-12-14Fix tvb memory leak.wmeier1-0/+1
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3917 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@40199 f5534014-38df-0310-8fa8-9805f1628bb7
2011-10-23Replace use of tvb_get_ephemeral_faked_unicode() by use of ↵wmeier1-1/+1
tvb_get_ephemeral_unicode_string(); Fix encoding arg as needed. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39530 f5534014-38df-0310-8fa8-9805f1628bb7
2011-10-21For proto_tree_add_item(..., proto_xxx, ...)use ENC_NA as the encoding arg.wmeier1-2/+2
Also: remove trailing whitespace for a number of files. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39503 f5534014-38df-0310-8fa8-9805f1628bb7
2011-10-10 Convert 'encoding' parameter of certain proto_tree_add_item() calls in ↵wmeier1-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) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39328 f5534014-38df-0310-8fa8-9805f1628bb7
2011-10-06Convert 'encoding' parameter of certain proto_tree_add_item() calls in ↵wmeier1-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 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39288 f5534014-38df-0310-8fa8-9805f1628bb7
2011-10-04Use ENC_NA as encoding for proto_tree_add_item() calls which directly ↵wmeier1-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 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39260 f5534014-38df-0310-8fa8-9805f1628bb7
2011-05-23Fix various benign cases of Coverity [UNUSED]: 996,995,956,936,899,1133,1000wmeier1-9/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@37371 f5534014-38df-0310-8fa8-9805f1628bb7
2011-04-10Rename ws_stat to ws_stat64, and make it take a pointer to a ws_statb64guy1-2/+2
as an argument, along the lines of ws_fstat64, and, on Windows, make it use _wstati64, to handle 64-bit file sizes. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@36547 f5534014-38df-0310-8fa8-9805f1628bb7
2011-01-15Replace ip_to_str((tvb_get_ptr(...)) with tvb_ip_to_str().morriss1-1/+1
Replace ip6_to_str((tvb_get_ptr(...)) with tvb_ip6_to_str(). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35543 f5534014-38df-0310-8fa8-9805f1628bb7
2010-12-20Rename the routines that handle dissector tables with unsigned integerguy1-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.) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35224 f5534014-38df-0310-8fa8-9805f1628bb7
2010-10-10Define some fcns & vars as static; Some #includes not req'd; packet-mikey.h ↵wmeier1-4/+3
not req'd. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@34464 f5534014-38df-0310-8fa8-9805f1628bb7
2010-09-24(Refining the regexp...) Replace blurbs that match the name (case ↵morriss1-1/+1
insensitive) with NULL. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@34230 f5534014-38df-0310-8fa8-9805f1628bb7
2010-09-23Replace blurbs that match the name (case insensitive) with NULL.morriss1-3/+3
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@34227 f5534014-38df-0310-8fa8-9805f1628bb7
2010-05-27Reword two error messages as per Bug #4518.wmeier1-2/+2
See: https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4518 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32994 f5534014-38df-0310-8fa8-9805f1628bb7
2010-05-20From Hadar Shoham:jake1-1/+9
Add support to AP request option reserved bit. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32910 f5534014-38df-0310-8fa8-9805f1628bb7
2010-05-11Use consistent indentation; Whitespace & formatting cleanup.wmeier1-2982/+2979
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32754 f5534014-38df-0310-8fa8-9805f1628bb7
2010-05-11Fix handling of pa-data-type KRB5_PA_PAC_REQUEST (& KRB5_PA_S4U2SELF).wmeier1-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). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32752 f5534014-38df-0310-8fa8-9805f1628bb7
2010-01-22In our case, not being able to read the Kerberos configuration filegerald1-1/+1
isn't a big deal. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@31626 f5534014-38df-0310-8fa8-9805f1628bb7
2010-01-19Fix a double-free bug which was causing a crash. Our decryption buffergerald1-9/+11
length doesn't change, so allocate it just once. Add an expert item for a successful decryption. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@31571 f5534014-38df-0310-8fa8-9805f1628bb7
2010-01-18Fix some gcc -Wshadow warnings ....wmeier1-30/+30
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@31559 f5534014-38df-0310-8fa8-9805f1628bb7
2010-01-13Try to fix a memory leak.etxrab1-0/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@31514 f5534014-38df-0310-8fa8-9805f1628bb7
2010-01-02From Jakub Zawadzki:etxrab1-8/+4
Cleanup dissector code - use proper memory functions. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4164 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@31408 f5534014-38df-0310-8fa8-9805f1628bb7
2010-01-01Fix Bug #4363: wireshark decodes kerberos AS-REQ PADATA incorrectly.wmeier1-7/+7
See https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4363 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@31400 f5534014-38df-0310-8fa8-9805f1628bb7
2009-12-19For fields of type FT_ABSOLUTE_TIME, have the "display" value be one ofguy1-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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@31319 f5534014-38df-0310-8fa8-9805f1628bb7
2009-10-25From Jakub Zawadzki:etxrab1-2/+1
Cleanup dissector code - use proper memory functions. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4164 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@30691 f5534014-38df-0310-8fa8-9805f1628bb7
2009-10-09If we're on Windows and we don't have kerberos, define a dummy version of ↵morriss1-2/+12
read_keytab_file_from_preferences to keep the linker happy (since this function is in libwireshark.def). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@30445 f5534014-38df-0310-8fa8-9805f1628bb7
2009-10-07add a new function read_keytab_file_from_preferences(void)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 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@30384 f5534014-38df-0310-8fa8-9805f1628bb7
2009-10-04we must create a fake dcerpc_call_value structure when we call into the sahlberg1-4/+8
dcerpc helpers git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@30286 f5534014-38df-0310-8fa8-9805f1628bb7
2009-08-09Don't guard col_set_str (COL_INFO/COL_PROTOCOL) with col_checkkrj1-3/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29345 f5534014-38df-0310-8fa8-9805f1628bb7
2009-08-09Don't guard col_clear with col_checkkrj1-4/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29344 f5534014-38df-0310-8fa8-9805f1628bb7
2009-08-09Don't guard col_set_str (COL_PROTOCOL) with col_checkkrj1-6/+3
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29340 f5534014-38df-0310-8fa8-9805f1628bb7
2009-07-28When we passed the crytobuffer to krb5_c_decrypt() we never actually 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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29213 f5534014-38df-0310-8fa8-9805f1628bb7
2009-06-18From Kovarththanan Rajaratnam via bug 3548:stig1-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 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28770 f5534014-38df-0310-8fa8-9805f1628bb7
2009-05-14Apply some of the patches from:etxrab1-16/+8
http://wiki.wireshark.org/Development/Optimization git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28363 f5534014-38df-0310-8fa8-9805f1628bb7
2009-05-08The convention is to use TFS(...) when specifying a true_false_string with ↵wmeier1-3/+1
an FT_BOOLEAN field; Also: use the global true_false_string tfs_yes_no in place of a static local string. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28321 f5534014-38df-0310-8fa8-9805f1628bb7
2009-04-08Don't assemble asm_utils_win32_x86 on x64. Export a dummy read_keytab_filegerald1-0/+6
if we're not using any encryption libraries on Windows. This fixes the last Win64 compilation problems in epan. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28008 f5534014-38df-0310-8fa8-9805f1628bb7
2009-04-08(Trivial) Fix some spelling & etc in commentswmeier1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27996 f5534014-38df-0310-8fa8-9805f1628bb7
2009-03-18 From Jakub Zawadzki: g_gnprintf & etc: Use size of buffer [not size -1];wmeier1-6/+7
From me: - As suggested by Jakub actually use sizeof(...) rather than a numeric constant in various places; git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27775 f5534014-38df-0310-8fa8-9805f1628bb7
2009-03-13From Jakub Zawadzki (bug 3331):stig1-5/+5
g_free() is NULL safe, so we don't need check against it. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27718 f5534014-38df-0310-8fa8-9805f1628bb7
2008-12-20Fix various typos and spelling errors (mostly in text strings)wmeier1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27065 f5534014-38df-0310-8fa8-9805f1628bb7
2008-12-18Fix various typos and spelling errors (mostly in text strings)wmeier1-14/+14
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27050 f5534014-38df-0310-8fa8-9805f1628bb7
2008-12-17Fix some typos and spelling (mostly in text strings)wmeier1-4/+4
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27037 f5534014-38df-0310-8fa8-9805f1628bb7
2008-12-17Fix typos and spelling (mostly in text strings) wmeier1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27028 f5534014-38df-0310-8fa8-9805f1628bb7
2008-12-15Trivial change to use gboolean & etc for TRUE/FALSE variableswmeier1-9/+9
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27007 f5534014-38df-0310-8fa8-9805f1628bb7