aboutsummaryrefslogtreecommitdiffstats
path: root/packet-kerberos.c
AgeCommit message (Collapse)AuthorFilesLines
2004-06-15From Jean-Baptiste Marchand: fix up a couple of #defines that collidedguy1-5/+5
with existing defines. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@11150 f5534014-38df-0310-8fa8-9805f1628bb7
2004-06-10some more encryption types and checksum typessahlberg1-2/+78
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@11135 f5534014-38df-0310-8fa8-9805f1628bb7
2004-06-04get rid of a compiler warningsahlberg1-2/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@11105 f5534014-38df-0310-8fa8-9805f1628bb7
2004-06-04Add a mechanism where one can provide callbacks to the kerbgeros dissectorsahlberg1-8/+34
to pass back dissection of application specific fields (octet strings) This can later be used to pick up session keys by dcerpc and similar. Currently it will initially be used by packetcable. PacketCable additions by Thomas Anders git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@11101 f5534014-38df-0310-8fa8-9805f1628bb7
2004-05-27make KRB_SAFE more consistent with the other PDUs by removing the SAFE ↵sahlberg1-9/+5
expansion. cosmetic: Put the application type on the kerberos subtree git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@11012 f5534014-38df-0310-8fa8-9805f1628bb7
2004-05-26remove the SAFE_BODY expansion to make KRB5_MSG_SAFE look more consistentsahlberg1-8/+2
with the other application dissectors. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@11007 f5534014-38df-0310-8fa8-9805f1628bb7
2004-05-26implementation of the KRB_SAFE applicationsahlberg1-1/+109
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@11005 f5534014-38df-0310-8fa8-9805f1628bb7
2004-05-25Get rid of some extra blanks.guy1-4/+4
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10991 f5534014-38df-0310-8fa8-9805f1628bb7
2004-05-18New protocol : PacketCable : PKTCsahlberg1-1/+3
The AP-REQ and AP_REP packets are partially dissected up to and including the kerberos blob. work in progress git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10916 f5534014-38df-0310-8fa8-9805f1628bb7
2004-05-17rename the NOT_DECODED_YET macros to avoid a name clashsahlberg1-4/+4
for those sources that include both packet-ber.h and packet-per.h git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10912 f5534014-38df-0310-8fa8-9805f1628bb7
2004-05-14More updates to packetcable kerberossahlberg1-10/+37
in particular, packetcable use a slightly diufferent KDC-REQ-BODY where the field till[5] is optional. Make it optional in the dissector as well since ethereal will still be able to dissecto normal kerberos pdus where it is not optional git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10899 f5534014-38df-0310-8fa8-9805f1628bb7
2004-05-14work in progress started implementing PA-PK-AS-REQsahlberg1-1/+82
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10886 f5534014-38df-0310-8fa8-9805f1628bb7
2004-05-14add dissection of pa-prov-srv-location preauthentication type used by ↵sahlberg1-2/+24
packetcable. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10883 f5534014-38df-0310-8fa8-9805f1628bb7
2004-05-11Kerberos encryption types are ASN.1 integers, meaning signed values, andguy1-3/+3
at least one mail message: http://mailman.mit.edu/pipermail/kerberos/2004-February/004653.html shows some of the weird Microsoft encryption type values logged by some KDC implementation as negative integers. Also, show them as decimal in the top-level line for encryption types, just as we do in the lines for each encryption type. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10848 f5534014-38df-0310-8fa8-9805f1628bb7
2004-04-15decryption and dissection of PA_ENC_TIMESTAMPsahlberg1-4/+80
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10604 f5534014-38df-0310-8fa8-9805f1628bb7
2004-04-15dissect EncKDCRepPart applications 25 and 26sahlberg1-1/+131
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10603 f5534014-38df-0310-8fa8-9805f1628bb7
2004-04-05Add support to decrypt the encrypted part of AS/TSG -REP PDUs.sahlberg1-4/+62
Now we only need application 25/26 to be dissected as well for it to be useful ... git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10553 f5534014-38df-0310-8fa8-9805f1628bb7
2004-04-05Added some more principal name types from the kerberos draftsahlberg1-8/+14
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10552 f5534014-38df-0310-8fa8-9805f1628bb7
2004-04-01add dissection of the canonicalize bit which some windows clients usesahlberg1-1/+14
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10536 f5534014-38df-0310-8fa8-9805f1628bb7
2004-03-26Fix a typo.guy1-2/+2
Clean up white space. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10492 f5534014-38df-0310-8fa8-9805f1628bb7
2004-03-26From Tomas Kukosa: use the "proto_item_get_parent()" andguy1-4/+4
"proto_item_get_parent_nth()" routines, and use the new name for some of the constants for universal tags. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10490 f5534014-38df-0310-8fa8-9805f1628bb7
2004-03-25From Tomas Kukosa: BER dissector enhancements and proto.c updates toguy1-194/+1562
support them. From Ronnie Sahlberg: Kerberos updates with new constants from the current draft, decryption and dissection of Kerberos blobs, and changes to work with the changed BER dissector. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10479 f5534014-38df-0310-8fa8-9805f1628bb7
2004-02-25for netbios type addresses in kerberossahlberg1-2/+2
print the netbios type as hex and not decimal git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10235 f5534014-38df-0310-8fa8-9805f1628bb7
2004-02-23update to kerberos. now also decrypting the KRB_PRIB blobssahlberg1-8/+75
(application 21) of kerberos v5. there are commonly found in Kpasswd packets. Not too interesting yet until we start supporting decryption of kerberos blobs using mit/heimdal kerveros shared libraries. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10197 f5534014-38df-0310-8fa8-9805f1628bb7
2004-02-20Update to Kerberos.sahlberg1-1163/+1319
Split kerberos prototype into two halves: helpers to dissect ASN.1 BER in packet-ber.c and kerberos stuff using those helpers in packet-kerberos.c This new kerberos thing places filterable items for every single field and also dissects the bitstring Option fields. It is hoped that this will make it easier to extend kerberos to do decryption of service tickets. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10122 f5534014-38df-0310-8fa8-9805f1628bb7
2004-01-23"%.*" requires an "int" argument for the length.guy1-7/+7
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9803 f5534014-38df-0310-8fa8-9805f1628bb7
2004-01-21Fix a check.guy1-2/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9761 f5534014-38df-0310-8fa8-9805f1628bb7
2004-01-20The offset argument to a "get_pdu_len" function is an "int", not aguy1-3/+3
"guint". git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9759 f5534014-38df-0310-8fa8-9805f1628bb7
2004-01-20signed/unsigned warning fixesjmayer1-83/+85
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9754 f5534014-38df-0310-8fa8-9805f1628bb7
2003-12-04update to kerberossahlberg1-1/+8
if the kerberos blob contains a krb error, print the error string to COL_INFO git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9170 f5534014-38df-0310-8fa8-9805f1628bb7
2003-07-08As "dissect_ap_options()" isn't compiled in, don't mark its arguments asguy1-2/+2
unused; presumably it'll either 1) get written, in which case if an argument isn't used it shouldn't be supplied or 2) be removed, in which case there aren't any arguments. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@7983 f5534014-38df-0310-8fa8-9805f1628bb7
2003-07-08Fix some unused parameter and function warnings.tpot1-2/+6
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@7981 f5534014-38df-0310-8fa8-9805f1628bb7
2003-06-01Fix a small segmentation fault if we get an ASN.1 parse error, andsharpe1-1/+15
start to work on kerberos flags etc. Also prettied up the case where the responseToken was an empty string. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@7767 f5534014-38df-0310-8fa8-9805f1628bb7
2003-04-25Show the URL of the I-D giving information on Kerberos-over-TCP.guy1-1/+5
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@7565 f5534014-38df-0310-8fa8-9805f1628bb7
2003-04-25From Tony Schene: Kerberos-over-TCP support.guy1-27/+167
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@7564 f5534014-38df-0310-8fa8-9805f1628bb7
2002-09-10Fix a typo in Richard's name.guy1-5/+30
Add some additional information from http://www.isi.edu/people/bcn/krb-revisions/krbclar8-1.html git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6245 f5534014-38df-0310-8fa8-9805f1628bb7
2002-09-10Add Microsoft's RC4-HMAC and exportable(?) RC4-HMAC encryption types.guy1-2/+14
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6242 f5534014-38df-0310-8fa8-9805f1628bb7
2002-09-08KRB_DECODE_STRING_OR_DIE, and variants thereof, set "val_len" to theguy1-8/+8
length of the string value and "item_len" to the length of the entire BER item, including the type header. As such, "val_len", not "item_len", should be used when formatting the value, and "item_len", not "val_len", should be used as the length when putting the item into the protocol tree and when advancing the offset. The kvno in an encryptedData item is unsigned; display it as such. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6231 f5534014-38df-0310-8fa8-9805f1628bb7
2002-09-07Decode AP-REQ and AP-REP KRB5 message types ...sharpe1-6/+55
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6211 f5534014-38df-0310-8fa8-9805f1628bb7
2002-09-07OK, now have KRB5 dissector playing nice.sharpe1-7/+7
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6209 f5534014-38df-0310-8fa8-9805f1628bb7
2002-09-05Commit my changes to handle KRB5 in SPNEGO ...sharpe1-8/+3
Turns out it is a KRB5 AP-REQ ASN1 encoded, and the Kerberos dissector is going to need to be re-architected to deal with this. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6187 f5534014-38df-0310-8fa8-9805f1628bb7
2002-09-04Add some level of OID naming etc ...sharpe1-5/+4
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6180 f5534014-38df-0310-8fa8-9805f1628bb7
2002-09-01Add the OID that MS created for KRB5 in mistake.sharpe1-1/+5
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6164 f5534014-38df-0310-8fa8-9805f1628bb7
2002-08-31Make "gssapi_init_oid()" take a dissector handle rather than aguy1-2/+3
registered dissector name; that means you don't have to register a dissector by name to associate it with a GSS-API security mechanism OID. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6163 f5534014-38df-0310-8fa8-9805f1628bb7
2002-08-30Include "packet-gssapi.h" to declare routines we call.guy1-1/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6142 f5534014-38df-0310-8fa8-9805f1628bb7
2002-08-30Some more SPNEGO fixes. Getting much closer ...sharpe1-1/+3
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6140 f5534014-38df-0310-8fa8-9805f1628bb7
2002-08-28Removed trailing whitespaces from .h and .c files using thejmayer1-16/+16
winapi_cleanup tool written by Patrik Stridvall for the wine project. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6117 f5534014-38df-0310-8fa8-9805f1628bb7
2002-08-22Display NetBIOS names in standard NetBIOS-name style if they have theguy1-3/+19
right length, and display them with an error indication and using "format_text()" if they're not ("format_text()" deals with the string not being null-terminated, and handles non-printable characters). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6061 f5534014-38df-0310-8fa8-9805f1628bb7
2002-08-02Replace the types from sys/types.h and netinet/in.h by their glib.hjmayer1-5/+1
equivalents for the toplevel directory. The removal of winsock2.h will hopefully not cause any problems under MSVC++, as those files using struct timeval still include wtap.h, which still includes winsock2.h. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@5932 f5534014-38df-0310-8fa8-9805f1628bb7
2002-07-29Committing Kerberos NetBIOS address type stuff from Jim McDonough.sharpe1-1/+8
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@5908 f5534014-38df-0310-8fa8-9805f1628bb7