summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRonnie Sahlberg <sahlberg@samba.org>2007-09-27 03:40:04 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 15:07:21 -0500
commit19e417aefd72d0ccf82e507a4f497e90c6985176 (patch)
treec9c9f8055adfea975195f6318f6d596e2b52d45a
parentca8f2fbe2e25db860bea4fe072c7d03dd11ec8f0 (diff)
downloadsamba-19e417aefd72d0ccf82e507a4f497e90c6985176.tar.gz
samba-19e417aefd72d0ccf82e507a4f497e90c6985176.tar.bz2
samba-19e417aefd72d0ccf82e507a4f497e90c6985176.zip
r25374: create an enum for the authentication types instead of defining them as
constants (This used to be commit 0c3d38b0d9c2a335c6449955a137627ba16623a4)
-rw-r--r--source4/librpc/idl/dcerpc.idl24
1 files changed, 13 insertions, 11 deletions
diff --git a/source4/librpc/idl/dcerpc.idl b/source4/librpc/idl/dcerpc.idl
index 7a5827b6f1..350bf0a404 100644
--- a/source4/librpc/idl/dcerpc.idl
+++ b/source4/librpc/idl/dcerpc.idl
@@ -118,17 +118,19 @@ interface dcerpc
} 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;