From Jaime Fournier: DCE/RPC KRB5RPC interface
authorRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>
Fri, 13 Sep 2002 09:59:21 +0000 (09:59 -0000)
committerRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>
Fri, 13 Sep 2002 09:59:21 +0000 (09:59 -0000)
svn path=/trunk/; revision=6289

AUTHORS
Makefile.am
Makefile.nmake
packet-dcerpc-krb5rpc.c [new file with mode: 0644]

diff --git a/AUTHORS b/AUTHORS
index e5f0387334d880d082a657212f19eaf2a609041c..8b45ddeac4df72d63db4a89fd1d053b99b94fcd0 100644 (file)
--- a/AUTHORS
+++ b/AUTHORS
@@ -1413,7 +1413,8 @@ Jamie Fournier <jafour1[AT]yahoo.com>
        DCE/RPC dissectors for RSEC_LOGIN, RS_ACCT, RS_ATTR, RS_MISC, RS_PGO, 
                RS_REPLIST, RS_UNIX, RPRIV, ROVERRIDE, RS_REPADM,
                DTSSTIME_REQ, CDS_SOLICIT, CPRPC_SERVER, DTSPROVIDER,
-               UBIKDISK, UBIKVOTE, BOSSVR, FTSERVER, CDS_CLERKSERVER
+               UBIKDISK, UBIKVOTE, BOSSVR, FTSERVER, CDS_CLERKSERVER,
+               KRB5RPC
 
 Alain Magloire <alainm[AT]rcsm.ece.mcgill.ca> was kind enough to
 give his permission to use his version of snprintf.c.
index 9da6c895ec1659cf3b507d4e90d4d0b5c494903d..022db29c64570e8d884b3e3e659743a218d006dd 100644 (file)
@@ -1,7 +1,7 @@
 # Makefile.am
 # Automake file for Ethereal
 #
-# $Id: Makefile.am,v 1.493 2002/09/12 09:29:50 sahlberg Exp $
+# $Id: Makefile.am,v 1.494 2002/09/13 09:59:21 sahlberg Exp $
 #
 # Ethereal - Network traffic analyzer
 # By Gerald Combs <gerald@ethereal.com>
@@ -126,6 +126,7 @@ DISSECTOR_SRC = \
        packet-dcerpc-dtsstime_req.c \
        packet-dcerpc-epm.c  \
        packet-dcerpc-ftserver.c \
+       packet-dcerpc-krb5rpc.c \
        packet-dcerpc-lsa.c \
        packet-dcerpc-mapi.c  \
        packet-dcerpc-mgmt.c  \
index f66a7fcdd7f8385c93c3b865171ceeedf49faff1..33890f93cf0c8089f079141db265aac59b52ec85 100644 (file)
@@ -1,7 +1,7 @@
 ## Makefile for building ethereal.exe with Microsoft C and nmake
 ## Use: $(MAKE) /$(MAKEFLAGS) -f makefile.nmake
 #
-# $Id: Makefile.nmake,v 1.230 2002/09/12 09:29:51 sahlberg Exp $
+# $Id: Makefile.nmake,v 1.231 2002/09/13 09:59:21 sahlberg Exp $
 
 include config.nmake
 include <win32.mak>
@@ -68,6 +68,7 @@ DISSECTOR_SRC = \
        packet-dcerpc-dtsstime_req.c \
        packet-dcerpc-epm.c  \
        packet-dcerpc-ftserver.c \
+       packet-dcerpc-krb5rpc.c \
        packet-dcerpc-lsa.c \
        packet-dcerpc-mapi.c  \
        packet-dcerpc-mgmt.c  \
diff --git a/packet-dcerpc-krb5rpc.c b/packet-dcerpc-krb5rpc.c
new file mode 100644 (file)
index 0000000..1ecf6b5
--- /dev/null
@@ -0,0 +1,89 @@
+/* packet-dcerpc-krb5rpc.c\r
+ *\r
+ * Routines for dcerpc DCE/KRB5 interface\r
+ * Copyright 2002, Jaime Fournier <jafour1@yahoo.com>\r
+ * This information is based off the released idl files from opengroup.\r
+ * ftp://ftp.opengroup.org/pub/dce122/dce/src/security.tar.gz security/idl/krb5rpc.idl\r
+ *\r
+ *\r
+ * $Id: packet-dcerpc-krb5rpc.c,v 1.1 2002/09/13 09:59:21 sahlberg Exp $\r
+ *\r
+ * Ethereal - Network traffic analyzer\r
+ * By Gerald Combs <gerald@ethereal.com>\r
+ * Copyright 1998 Gerald Combs\r
+ *\r
+ * This program is free software; you can redistribute it and/or\r
+ * modify it under the terms of the GNU General Public License\r
+ * as published by the Free Software Foundation; either version 2\r
+ * of the License, or (at your option) any later version.\r
+ *\r
+ * This program is distributed in the hope that it will be useful,\r
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
+ * GNU General Public License for more details.\r
+ *\r
+ * You should have received a copy of the GNU General Public License\r
+ * along with this program; if not, write to the Free Software\r
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.\r
+ */\r
+\r
+#ifdef HAVE_CONFIG_H\r
+#include "config.h"\r
+#endif\r
+\r
+\r
+#ifdef HAVE_SYS_TYPES_H\r
+#include <sys/types.h>\r
+#endif\r
+\r
+#include <string.h>\r
+\r
+#include <glib.h>\r
+#include <epan/packet.h>\r
+#include "packet-dcerpc.h"\r
+\r
+\r
+static int proto_krb5rpc = -1;\r
+static int hf_krb5rpc_opnum = -1;\r
+\r
+\r
+static gint ett_krb5rpc = -1;\r
+\r
+\r
+static e_uuid_t uuid_krb5rpc = { 0x8f73de50, 0x768c, 0x11ca, { 0xbf, 0xfc, 0x08, 0x00, 0x1e, 0x03, 0x94, 0x31 } };\r
+static guint16  ver_krb5rpc = 1;\r
+\r
+\r
+static dcerpc_sub_dissector krb5rpc_dissectors[] = {\r
+       { 0, "rsec_krb5rpc_sendto_kdc", NULL, NULL },\r
+       { 0, NULL, NULL, NULL }\r
+};\r
+\r
+static const value_string krb5rpc_opnum_vals[] = {\r
+       { 0, "rsec_krb5rpc_sendto_kdc" },\r
+       { 0, NULL }\r
+};\r
+\r
+void\r
+proto_register_krb5rpc (void)\r
+{\r
+       static hf_register_info hf[] = {\r
+         { &hf_krb5rpc_opnum,\r
+           { "Operation", "krb5rpc.opnum", FT_UINT16, BASE_DEC,\r
+             VALS(krb5rpc_opnum_vals), 0x0, "Operation", HFILL }}\r
+       };\r
+\r
+       static gint *ett[] = {\r
+               &ett_krb5rpc,\r
+       };\r
+       proto_krb5rpc = proto_register_protocol ("DCE/RPC Kerberos V", "KRB5RPC", "krb5rpc");\r
+       proto_register_field_array (proto_krb5rpc, hf, array_length (hf));\r
+       proto_register_subtree_array (ett, array_length (ett));\r
+}\r
+\r
+void\r
+proto_reg_handoff_krb5rpc (void)\r
+{\r
+       /* Register the protocol as dcerpc */\r
+       dcerpc_init_uuid (proto_krb5rpc, ett_krb5rpc, &uuid_krb5rpc, ver_krb5rpc, krb5rpc_dissectors, hf_krb5rpc_opnum);\r
+}\r