From ab0cbf9bbac6c7a9450f26e2eeb4f8e794db8d89 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 6 Oct 2015 13:24:41 +0200 Subject: [PATCH] auth: Fix picky const warnings in gssapi_pac Signed-off-by: Andreas Schneider Reviewed-by: Guenther Deschner --- auth/kerberos/gssapi_pac.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/auth/kerberos/gssapi_pac.c b/auth/kerberos/gssapi_pac.c index c6fa9092080..685d0ec251a 100644 --- a/auth/kerberos/gssapi_pac.c +++ b/auth/kerberos/gssapi_pac.c @@ -113,7 +113,11 @@ NTSTATUS gssapi_obtain_pac_blob(TALLOC_CTX *mem_ctx, if (gss_maj != 0) { DEBUG(0, ("obtaining PAC via GSSAPI gss_get_name_attribute failed: %s\n", - gssapi_error_string(mem_ctx, gss_maj, gss_min, gss_mech_krb5))); + gssapi_error_string(mem_ctx, + gss_maj, + gss_min, + discard_const_p(struct gss_OID_desc_struct, + gss_mech_krb5)))); return NT_STATUS_ACCESS_DENIED; } else if (authenticated && complete) { /* The PAC blob is returned directly */ @@ -199,7 +203,11 @@ NTSTATUS gssapi_get_session_key(TALLOC_CTX *mem_ctx, &gse_sesskey_inq_oid, &set); if (gss_maj) { DEBUG(0, ("gss_inquire_sec_context_by_oid failed [%s]\n", - gssapi_error_string(mem_ctx, gss_maj, gss_min, gss_mech_krb5))); + gssapi_error_string(mem_ctx, + gss_maj, + gss_min, + discard_const_p(struct gss_OID_desc_struct, + gss_mech_krb5)))); return NT_STATUS_NO_USER_SESSION_KEY; }