Author: metze
Date: 2007-09-30 07:12:10 +0000 (Sun, 30 Sep 2007)
New Revision: 25433

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=25433

Log:
- dcerpc_AuthType is a 8bit enum not 32bit
- also add dcerpc_AuthLevel enum

metze
Modified:
   branches/SAMBA_4_0/source/librpc/idl/dcerpc.idl


Changeset:
Modified: branches/SAMBA_4_0/source/librpc/idl/dcerpc.idl
===================================================================
--- branches/SAMBA_4_0/source/librpc/idl/dcerpc.idl     2007-09-29 23:54:32 UTC 
(rev 25432)
+++ branches/SAMBA_4_0/source/librpc/idl/dcerpc.idl     2007-09-30 07:12:10 UTC 
(rev 25433)
@@ -118,7 +118,7 @@
        } dcerpc_fault;
 
        /* the auth types we know about */
-       typedef [v1_enum] enum {
+       typedef [enum8bit] enum {
                DCERPC_AUTH_TYPE_NONE     = 0,
                /* this seems to be not krb5! */
                DCERPC_AUTH_TYPE_KRB5_1   = 1,
@@ -132,17 +132,20 @@
                DCERPC_AUTH_TYPE_MSMQ     = 100
        } dcerpc_AuthType;
 
+       typedef [enum8bit] enum {
+               DCERPC_AUTH_LEVEL_NONE      = 1,
+               DCERPC_AUTH_LEVEL_CONNECT   = 2,
+               DCERPC_AUTH_LEVEL_CALL      = 3,
+               DCERPC_AUTH_LEVEL_PACKET    = 4,
+               DCERPC_AUTH_LEVEL_INTEGRITY = 5,
+               DCERPC_AUTH_LEVEL_PRIVACY   = 6
+       } dcerpc_AuthLevel;
+
        const uint8 DCERPC_AUTH_LEVEL_DEFAULT   = DCERPC_AUTH_LEVEL_CONNECT;
-       const uint8 DCERPC_AUTH_LEVEL_NONE      = 1;
-       const uint8 DCERPC_AUTH_LEVEL_CONNECT   = 2;
-       const uint8 DCERPC_AUTH_LEVEL_CALL      = 3;
-       const uint8 DCERPC_AUTH_LEVEL_PACKET    = 4;
-       const uint8 DCERPC_AUTH_LEVEL_INTEGRITY = 5;
-       const uint8 DCERPC_AUTH_LEVEL_PRIVACY   = 6;
 
        typedef [public] struct {
-               uint8  auth_type; 
-               uint8  auth_level;
+               dcerpc_AuthType auth_type; 
+               dcerpc_AuthLevel auth_level;
                uint8  auth_pad_length;
                uint8  auth_reserved;
                uint32 auth_context_id;

Reply via email to