svn commit: samba r25374 - in branches/SAMBA_4_0/source/librpc/idl: .

sahlberg at samba.org sahlberg at samba.org
Thu Sep 27 03:40:05 GMT 2007


Author: sahlberg
Date: 2007-09-27 03:40:04 +0000 (Thu, 27 Sep 2007)
New Revision: 25374

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

Log:
create an enum for the authentication types instead of defining them as
constants


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-27 03:17:24 UTC (rev 25373)
+++ branches/SAMBA_4_0/source/librpc/idl/dcerpc.idl	2007-09-27 03:40:04 UTC (rev 25374)
@@ -118,17 +118,19 @@
 	} dcerpc_fault;
 
 	/* the auth types we know about */
-	const uint8 DCERPC_AUTH_TYPE_NONE     = 0;
-	/* this seems to be not krb5! */
-	const uint8 DCERPC_AUTH_TYPE_KRB5_1   = 1;
-	const uint8 DCERPC_AUTH_TYPE_SPNEGO   = 9;
-	const uint8 DCERPC_AUTH_TYPE_NTLMSSP  = 10;
-	const uint8 DCERPC_AUTH_TYPE_KRB5     = 16;
-	const uint8 DCERPC_AUTH_TYPE_DPA      = 17;
-	const uint8 DCERPC_AUTH_TYPE_MSN      = 18;
-	const uint8 DCERPC_AUTH_TYPE_DIGEST   = 21;
-	const uint8 DCERPC_AUTH_TYPE_SCHANNEL = 68;
-	const uint8 DCERPC_AUTH_TYPE_MSMQ     = 100;
+	typedef [v1_enum] enum {
+		DCERPC_AUTH_TYPE_NONE     = 0,
+		/* this seems to be not krb5! */
+		DCERPC_AUTH_TYPE_KRB5_1   = 1,
+		DCERPC_AUTH_TYPE_SPNEGO   = 9,
+		DCERPC_AUTH_TYPE_NTLMSSP  = 10,
+		DCERPC_AUTH_TYPE_KRB5     = 16,
+		DCERPC_AUTH_TYPE_DPA      = 17,
+		DCERPC_AUTH_TYPE_MSN      = 18,
+		DCERPC_AUTH_TYPE_DIGEST   = 21,
+		DCERPC_AUTH_TYPE_SCHANNEL = 68,
+		DCERPC_AUTH_TYPE_MSMQ     = 100
+	} dcerpc_AuthType;
 
 	const uint8 DCERPC_AUTH_LEVEL_DEFAULT	= DCERPC_AUTH_LEVEL_CONNECT;
 	const uint8 DCERPC_AUTH_LEVEL_NONE      = 1;



More information about the samba-cvs mailing list