diff options
author | Guy Harris <guy@alum.mit.edu> | 2002-09-08 01:43:44 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2002-09-08 01:43:44 +0000 |
commit | 849e1c6866578dd513960456af72c6e6e9534c76 (patch) | |
tree | d88c5d528a9ec42984949f74e4641a87b37eb268 /packet-gssapi.h | |
parent | c949d231430a6dd33e4d2e8d7927870c1fdf70a3 (diff) |
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
Diffstat (limited to 'packet-gssapi.h')
-rw-r--r-- | packet-gssapi.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/packet-gssapi.h b/packet-gssapi.h index ca00987d90..62f3433968 100644 --- a/packet-gssapi.h +++ b/packet-gssapi.h @@ -2,7 +2,7 @@ * Dissector for GSS-API tokens as described in rfc2078, section 3.1 * Copyright 2002, Tim Potter <tpot@samba.org> * - * $Id: packet-gssapi.h,v 1.6 2002/09/04 21:34:38 sharpe Exp $ + * $Id: packet-gssapi.h,v 1.7 2002/09/08 01:43:44 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -35,13 +35,12 @@ typedef struct _gssapi_oid_value { gchar *comment; /* For the comment */ } gssapi_oid_value; -/* externs ... */ - -extern GHashTable *gssapi_oids; - /* Function prototypes */ void gssapi_init_oid(char *oid, int proto, int ett, dissector_handle_t handle, gchar *comment); +gssapi_oid_value * +gssapi_lookup_oid(subid_t *oid, guint oid_len); + #endif /* __PACKET_GSSAPI_H */ |