Commit graph

6308 commits

Author SHA1 Message Date
Guy Harris
9207c4b0c3 Add Microsoft's RC4-HMAC and exportable(?) RC4-HMAC encryption types.
svn path=/trunk/; revision=6242
2002-09-10 02:15:55 +00:00
Guy Harris
8b5beb7817 If we see SASL authentication in a bind request, attach to the
conversation a data structure containing the authentication type and
mechanism, and use that to dissect the credentials in subsequent bind
responses.

Call the bind request and response dissectors regardless of whether
we're building a protocol tree or not, so that we call the
authentication subdissectors.

"read_string()" doesn't return anything through the string-pointer
argument if the string is zero-length; handle those cases.

svn path=/trunk/; revision=6241
2002-09-09 23:41:12 +00:00
Guy Harris
3b0ab19194 Dissect the autentication verifier for Kerberos 5 authentication in
connectionless PDUs.

svn path=/trunk/; revision=6240
2002-09-09 22:11:33 +00:00
Guy Harris
ac69a72fda "dfilter_prime_proto_tree()" doesn't modify the "dfilter_t" to which
it's handed a pointer, which means that "epan_dissect_prime_dfilter()"
doesn't do so either; make that argument a "const dfilter_t *" in both
cases.

svn path=/trunk/; revision=6239
2002-09-09 21:04:15 +00:00
Guy Harris
5e8ecbaf46 From Graeme Hewson:
Currently Ethereal sets and uses a default directory for reading
	and writing, but only in some places.  This set of patches extends
	the setting of the default directory to the -w option as well as
	the -r option, and causes all file dialogs to use and set the
	default consistently.  (I haven't changed the
	Preferences/Printing/File dialog, though, as that's a special
	case.)

	There's also a fix for a bug where Ethereal was issuing the
	message "Ring buffer requested, but capture isn't being saved to
	a permanent file" even though a file was specified with -w.

There also appear to be some other cleanups in his patch.

svn path=/trunk/; revision=6238
2002-09-09 20:39:01 +00:00
Jörg Mayer
49425de396 Add/fix cvs id tags
svn path=/trunk/; revision=6237
2002-09-09 20:32:32 +00:00
Guy Harris
e70dea7b3e From Matthew Smart:
o Added support for v1 and v7

     o Use proto_tree_add_item() instead of proto_tree_add_text() to
       enable filtering.  Thanks sahlberg AT optushome.com.au for
       pointing that out.

svn path=/trunk/; revision=6236
2002-09-09 20:22:51 +00:00
Guy Harris
7283f9b347 Put back missing include of <stdio.h>.
Fix the RCS ID.

svn path=/trunk/; revision=6235
2002-09-09 20:16:12 +00:00
Guy Harris
dbdb12e91e Allow the "manuf" file to contain well-known MAC addresses and address
ranges specified with a mask, as well as manufacturer OUIs.  Match the
address range values, as well as MAC addresses and manufacturer OUIs,
when translating MAC addresses to names.

Have "make-manuf" read a file containing the well-known addresses and
append it to the list of OUIs.

svn path=/trunk/; revision=6234
2002-09-09 19:53:38 +00:00
Guy Harris
91ecc404e9 Allow the "manuf" file to contain well-known MAC addresses and address
ranges specified with a mask, as well as manufacturer OUIs.  Match the
address range values, as well as MAC addresses and manufacturer OUIs,
when translating MAC addresses to names.

Have "make-manuf" read a file containing the well-known addresses and
append it to the list of OUIs.

svn path=/trunk/; revision=6233
2002-09-09 19:38:11 +00:00
Guy Harris
9390e0591a Use -1, rather than "tvb_length_remaining(tvb, offset)", as the length
for items that should run to the end of the tvbuff.

Make the next level dissector handle local to "dissect_spnego()".

Handle negTokenInit's with mechTokens, by, when processing the mechTypes
sequence in a negTokenInit, remembering the first MechType and telling
"dissect_spnego_mechTypes()"'s caller about it, and having that caller
use that mechType to dissect the mechToken.

svn path=/trunk/; revision=6232
2002-09-08 22:47:43 +00:00
Guy Harris
deb560618d KRB_DECODE_STRING_OR_DIE, and variants thereof, set "val_len" to the
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.

svn path=/trunk/; revision=6231
2002-09-08 22:41:23 +00:00
Tim Potter
0e5cdab1da Auth type 8 is NETLOGON secure channel used for BDC replication.
svn path=/trunk/; revision=6230
2002-09-08 12:04:42 +00:00
Richard Sharpe
c5c8aed3d6 Fix documentation comments to reflext reality.
svn path=/trunk/; revision=6229
2002-09-08 02:45:26 +00:00
Guy Harris
849e1c6866 Add a "gssapi_lookup_oid()" that takes a binary OID (pointer and length)
as an argument, and looks up that OID in the GSSAPI OID hash table.

Always use that routine to look up OIDs, so that we never use the result
of "format_oid()" as the key (as that doesn't necessarily work).

Make "gssapi_oids" static, as one should only look up GSSAPI
authentication mechanism OIDs with "gssapi_lookup_oid()".

In the SPNEGO dissector, free up the OID strings when we're done with
them, and don't advance the offset past the OID until after we put the
OID into the protocol tree.

svn path=/trunk/; revision=6228
2002-09-08 01:43:44 +00:00
Guy Harris
c949d23143 Explain the GTK+ developers' thinking about detecting fixed-width fonts
and about making some tree view item behaviors settable by applications.

svn path=/trunk/; revision=6227
2002-09-08 01:20:02 +00:00
Richard Sharpe
d3be9940c1 Add a copyright :-)
svn path=/trunk/; revision=6226
2002-09-08 01:07:40 +00:00
Guy Harris
24f888c088 Do *N*O*T* use the result of "format_oid()" as a key to look up a entry
in the gssapi_oids hash table; the keys are just text representations of
the numbers in the OID, but "format_oid()" can add a formatted
description of the OID to the end of the string it returns, which means
it won't match.

Use -1 rather than "tvb_length_remaining(tvb, 0)" as the length to say
"this item goes to the end of the tvbuff.

svn path=/trunk/; revision=6225
2002-09-08 00:40:44 +00:00
Guy Harris
edd663a93e All the multi-byte integral quantities are big-endian, so let's pretend
that the desired authentication type is, too.

Don't bother updating the offset after dissecting the desired
authentication type - we don't update it after dissecting the identity
or notification.

svn path=/trunk/; revision=6224
2002-09-08 00:07:40 +00:00
Ronnie Sahlberg
2d3a5612f6 From Jouni Malinen, bug fix for EAP NAK packets.
svn path=/trunk/; revision=6223
2002-09-07 23:49:58 +00:00
Olivier Abad
f4f1c891dc GtkCList to GtkTreeView conversion.
svn path=/trunk/; revision=6222
2002-09-07 21:21:56 +00:00
Olivier Abad
51b942e186 Add missing gtk_tree_path_free()
svn path=/trunk/; revision=6221
2002-09-07 21:21:14 +00:00
Olivier Abad
eea71f4b6d Strings copied from a TreeModel must be freed after usage.
svn path=/trunk/; revision=6220
2002-09-07 18:35:16 +00:00
Richard Sharpe
428c514ba6 Fix a spelling mistake.
svn path=/trunk/; revision=6219
2002-09-07 15:45:28 +00:00
Jörg Mayer
6872097e8f Add back stdio.h
svn path=/trunk/; revision=6218
2002-09-07 14:56:57 +00:00
Olivier Abad
1cfc7d562c GtkList to GtkTreeView conversion.
svn path=/trunk/; revision=6217
2002-09-07 10:48:07 +00:00
Jörg Mayer
d3202fcc7d make dist needs to include gtk and gtk2 no matter what the configure opitons were
svn path=/trunk/; revision=6216
2002-09-07 10:04:41 +00:00
Ronnie Sahlberg
5b2510fb8e Tap system supprot for Gtk1 and both rpc_stat and rpc_progs
Gtk1 is still single threaded so if the tap extensions need to do something
time consuming or cpu intensive, then the main application will suffer.

It is better than nothing.

svn path=/trunk/; revision=6215
2002-09-07 10:02:36 +00:00
Jörg Mayer
f4ba9d929c Add back stdio.h
svn path=/trunk/; revision=6214
2002-09-07 10:01:55 +00:00
Ronnie Sahlberg
e0ccffe293 remove old files we have renamed to proper names
svn path=/trunk/; revision=6213
2002-09-07 09:29:46 +00:00
Ronnie Sahlberg
244b20d868 Change naming for rpcstat and rpcprogs
svn path=/trunk/; revision=6212
2002-09-07 09:28:05 +00:00
Richard Sharpe
95c2dfb4b3 Decode AP-REQ and AP-REP KRB5 message types ...
svn path=/trunk/; revision=6211
2002-09-07 08:43:04 +00:00
Jörg Mayer
3c4499c972 This file is not packet-gssapi.h, although it was cloned from it
svn path=/trunk/; revision=6210
2002-09-07 08:29:13 +00:00
Richard Sharpe
5739c418b7 OK, now have KRB5 dissector playing nice.
svn path=/trunk/; revision=6209
2002-09-07 03:32:49 +00:00
Jörg Mayer
0a749ca6b4 Include wtap.h to declare wtap_pseudo_header
svn path=/trunk/; revision=6208
2002-09-07 00:41:26 +00:00
Jörg Mayer
546a605e75 Declare dissect_Ticket in packet-kerberos.h and include that into packet-spnego.c
svn path=/trunk/; revision=6207
2002-09-07 00:29:29 +00:00
Jörg Mayer
67a9ecc9b4 Use g_ntohXXX instead of ntohXXX
svn path=/trunk/; revision=6206
2002-09-07 00:08:02 +00:00
Jörg Mayer
2e0595ad63 Add back more string.h includes
svn path=/trunk/; revision=6205
2002-09-07 00:02:24 +00:00
Ronnie Sahlberg
8e876bf574 Forgot to add two files
svn path=/trunk/; revision=6204
2002-09-06 23:14:04 +00:00
Ronnie Sahlberg
4bf8ffa040 Patch from Oliver Abad to reduce CPU used by the redraw thread. Use g_sleep()
instead of a crude busy-wait loop.

svn path=/trunk/; revision=6203
2002-09-06 22:53:19 +00:00
Ronnie Sahlberg
429b24827b From Vassilii Khachaturov, cleanup of redundant code.
svn path=/trunk/; revision=6202
2002-09-06 22:45:44 +00:00
Guy Harris
ce6eb43912 Put needed include back in (<string.h>, to declare "memset()").
svn path=/trunk/; revision=6201
2002-09-06 21:27:57 +00:00
Guy Harris
73e1310d82 From Hannes Gredler: decode the sample rate factor in cflowd5 headers.
svn path=/trunk/; revision=6200
2002-09-06 21:22:37 +00:00
Jörg Mayer
f8c12c2520 Remove unused include
svn path=/trunk/; revision=6199
2002-09-06 18:29:41 +00:00
Ronnie Sahlberg
207cca1ce5 Forgot to point to tap.c for more documentation.
svn path=/trunk/; revision=6198
2002-09-06 14:05:59 +00:00
Ronnie Sahlberg
19433dcc4b A better than nothing doc for tapping.
svn path=/trunk/; revision=6197
2002-09-06 14:04:25 +00:00
Ronnie Sahlberg
a8fd6b2fae Moved two other functions from gtk2-rpc[stat|progs].c into main.c so it
will be easier to reuse these functions on non-threaded gtk1-ethereal.

svn path=/trunk/; revision=6196
2002-09-06 13:24:45 +00:00
Ronnie Sahlberg
694eba5dbd Gtk2 port of RPCPROGS
svn path=/trunk/; revision=6195
2002-09-06 10:14:14 +00:00
Ronnie Sahlberg
6ccf93089e Gtk2 port of RPCPROGS statistics
svn path=/trunk/; revision=6194
2002-09-06 10:13:17 +00:00
Ronnie Sahlberg
e318b2ff8a Moved access of the mutex protecting the critical region into gtk2/main.c
so that it would be possible to share an unmodified gtk2-rpcstat.c with
any future gtk1-ethereal support for the tap system.

Anyone reading this cvs entry:
Perhaps someone could just try to add a draw_all_listeners() to the place in
file.c where it has finished reading or rescanning all packets.
That might work though it wouldnt update in semi-real time but would
be simple and better than nothing.

svn path=/trunk/; revision=6193
2002-09-06 08:58:20 +00:00