diff options
author | Stefan Metzmacher <metze@samba.org> | 2011-04-30 17:39:48 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2011-06-15 19:06:24 +0200 |
commit | 9ba10877aa558c016e2a40f209d1eaf694e47965 (patch) | |
tree | a22ac1cf34b86744078d17e289419ee12ea18a84 /auth/kerberos | |
parent | 8d12649b3144daa5e8eb141967a753354abdd330 (diff) | |
download | samba-9ba10877aa558c016e2a40f209d1eaf694e47965.tar.gz |
auth/kerberos/gssapi_pac: fix compiler warnings
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Jun 15 19:06:24 CEST 2011 on sn-devel-104
Diffstat (limited to 'auth/kerberos')
-rw-r--r-- | auth/kerberos/gssapi_pac.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/auth/kerberos/gssapi_pac.c b/auth/kerberos/gssapi_pac.c index e115cfe85c4..70bc9e576a0 100644 --- a/auth/kerberos/gssapi_pac.c +++ b/auth/kerberos/gssapi_pac.c @@ -52,11 +52,6 @@ const gss_OID_desc * const gss_mech_krb5_wrong = krb5_gss_oid_array+2; /* EXTRACTION OID AUTHZ ID */ #define EXTRACT_PAC_AUTHZ_DATA_FROM_SEC_CONTEXT_OID "\x2a\x85\x70\x2b\x0d\x03" "\x81\x00" -static gss_OID_desc pac_data_oid = { - EXTRACT_PAC_AUTHZ_DATA_FROM_SEC_CONTEXT_OID_LENGTH, - (void *)EXTRACT_PAC_AUTHZ_DATA_FROM_SEC_CONTEXT_OID -}; - NTSTATUS gssapi_obtain_pac_blob(TALLOC_CTX *mem_ctx, gss_ctx_id_t gssapi_context, gss_name_t gss_client_name, @@ -68,7 +63,7 @@ NTSTATUS gssapi_obtain_pac_blob(TALLOC_CTX *mem_ctx, gss_buffer_desc pac_buffer; gss_buffer_desc pac_display_buffer; gss_buffer_desc pac_name = { - .value = "urn:mspac:", + .value = discard_const("urn:mspac:"), .length = sizeof("urn:mspac:")-1 }; int more = -1; @@ -107,6 +102,10 @@ NTSTATUS gssapi_obtain_pac_blob(TALLOC_CTX *mem_ctx, } #elif defined(HAVE_GSS_INQUIRE_SEC_CONTEXT_BY_OID) + gss_OID_desc pac_data_oid = { + .elements = discard_const(EXTRACT_PAC_AUTHZ_DATA_FROM_SEC_CONTEXT_OID), + .length = EXTRACT_PAC_AUTHZ_DATA_FROM_SEC_CONTEXT_OID_LENGTH + }; gss_buffer_set_t set = GSS_C_NO_BUFFER_SET; |