As per a suggestion by Olivier Biot, note that objects pointed to by
[obnox/wireshark/wip.git] / packet-rpc.h
index 1c6125f95f8274498139b5ac69d661c993ab646b..b01f2b469aad133ff5c2d18a5871d3b0168403ea 100644 (file)
@@ -1,6 +1,6 @@
 /* packet-rpc.h
  *
- * $Id: packet-rpc.h,v 1.38 2002/09/04 09:40:24 sahlberg Exp $
+ * $Id: packet-rpc.h,v 1.43 2003/09/05 10:26:43 sahlberg Exp $
  *
  * (c) 1999 Uwe Girlich
  *
@@ -8,7 +8,6 @@
  * By Gerald Combs <gerald@ethereal.com>
  * Copyright 1998 Gerald Combs
  *
- *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License
  * as published by the Free Software Foundation; either version 2
@@ -39,6 +38,7 @@
 #define AUTH_SHORT 2
 #define AUTH_DES 3
 #define RPCSEC_GSS 6
+#define AUTH_GSSAPI 300001
 
 #define MSG_ACCEPTED 0
 #define MSG_DENIED 1
 #define RPCSEC_GSS_CONTINUE_INIT 2
 #define RPCSEC_GSS_DESTROY 3
 
+#define        AUTH_GSSAPI_EXIT 0
+#define        AUTH_GSSAPI_INIT 1
+#define        AUTH_GSSAPI_CONTINUE_INIT 2
+#define        AUTH_GSSAPI_MSG 3
+#define        AUTH_GSSAPI_DESTROY 4
+
 #define RPCSEC_GSS_SVC_NONE 1
 #define RPCSEC_GSS_SVC_INTEGRITY 2
 #define RPCSEC_GSS_SVC_PRIVACY 3
@@ -77,7 +83,9 @@ typedef enum {
        FLAVOR_UNKNOWN,         /* authentication flavor unknown */
        FLAVOR_NOT_GSSAPI,      /* flavor isn't GSSAPI */
        FLAVOR_GSSAPI_NO_INFO,  /* flavor is GSSAPI, procedure & service unknown */
-       FLAVOR_GSSAPI           /* flavor is GSSAPI, procedure & service known */
+       FLAVOR_GSSAPI,          /* flavor is GSSAPI, procedure & service known */
+       FLAVOR_AUTHGSSAPI,      /* AUTH_GSSAPI flavor */
+       FLAVOR_AUTHGSSAPI_MSG   /* AUTH_GSSAPI flavor, AUTH_GSSAPI message */
 } flavor_t;
 
 typedef struct _rpc_call_info_value {
@@ -108,18 +116,30 @@ typedef struct _vsff {
 
 extern const value_string rpc_auth_flavor[];
 
-extern void rpc_init_proc_table(guint prog, guint vers, const vsff *proc_table);
+extern void rpc_init_proc_table(guint prog, guint vers, const vsff *proc_table,
+    int procedure_hf);
 extern void rpc_init_prog(int proto, guint32 prog, int ett);
 extern char *rpc_prog_name(guint32 prog);
 extern char *rpc_proc_name(guint32 prog, guint32 vers, guint32 proc);
+extern int rpc_prog_hf(guint32 prog, guint32 vers);
 
 extern unsigned int rpc_roundup(unsigned int a);
 extern int dissect_rpc_bool(tvbuff_t *tvb,
        proto_tree *tree, int hfindex, int offset);
 extern int dissect_rpc_string(tvbuff_t *tvb,
        proto_tree *tree, int hfindex, int offset, char **string_buffer_ret);
+int dissect_rpc_opaque_data(tvbuff_t *tvb, int offset,
+    proto_tree *tree,
+    packet_info *pinfo,
+    int hfindex,
+    gboolean fixed_length, guint32 length,
+    gboolean string_data, char **string_buffer_ret,
+    dissect_function_t *dissect_it);
 extern int dissect_rpc_data(tvbuff_t *tvb,
        proto_tree *tree, int hfindex, int offset);
+extern int dissect_rpc_bytes(tvbuff_t *tvb,
+       proto_tree *tree, int hfindex, int offset, guint32 length,
+       gboolean string_data, char **string_buffer_ret);
 extern int dissect_rpc_list(tvbuff_t *tvb, packet_info *pinfo,
        proto_tree *tree, int offset, dissect_function_t *rpc_list_dissector);
 extern int dissect_rpc_array(tvbuff_t *tvb, packet_info *pinfo,
@@ -146,6 +166,7 @@ typedef struct _rpc_prog_info_value {
        int proto;
        int ett;
        char* progname;
+       GArray *procedure_hfs;
 } rpc_prog_info_value;
 
 extern GHashTable *rpc_progs;