From fb2bceea6e2d44f86f014a2d969591f462ee27bc Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Sun, 30 Oct 2005 10:39:52 +0000 Subject: r11400: fix compiler warnings metze (This used to be commit a29a107d95b67248ccd6036084829b080c892e40) --- source4/auth/gensec/gensec_krb5.c | 2 +- source4/auth/kerberos/kerberos.h | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/source4/auth/gensec/gensec_krb5.c b/source4/auth/gensec/gensec_krb5.c index a4ad3aa811..43187939bb 100644 --- a/source4/auth/gensec/gensec_krb5.c +++ b/source4/auth/gensec/gensec_krb5.c @@ -175,7 +175,7 @@ static NTSTATUS gensec_krb5_client_start(struct gensec_security *gensec_security const char *hostname; krb5_flags ap_req_options = AP_OPTS_USE_SUBKEY | AP_OPTS_MUTUAL_REQUIRED; - char *principal; + const char *principal; krb5_data in_data; hostname = gensec_get_target_hostname(gensec_security); diff --git a/source4/auth/kerberos/kerberos.h b/source4/auth/kerberos/kerberos.h index f52c32f0c4..070293df68 100644 --- a/source4/auth/kerberos/kerberos.h +++ b/source4/auth/kerberos/kerberos.h @@ -35,11 +35,11 @@ struct keytab_container { }; /* not really ASN.1, but RFC 1964 */ -#define TOK_ID_KRB_AP_REQ "\x01\x00" -#define TOK_ID_KRB_AP_REP "\x02\x00" -#define TOK_ID_KRB_ERROR "\x03\x00" -#define TOK_ID_GSS_GETMIC "\x01\x01" -#define TOK_ID_GSS_WRAP "\x02\x01" +#define TOK_ID_KRB_AP_REQ ((const uint8_t *)"\x01\x00") +#define TOK_ID_KRB_AP_REP ((const uint8_t *)"\x02\x00") +#define TOK_ID_KRB_ERROR ((const uint8_t *)"\x03\x00") +#define TOK_ID_GSS_GETMIC ((const uint8_t *)"\x01\x01") +#define TOK_ID_GSS_WRAP ((const uint8_t *)"\x02\x01") #ifdef HAVE_KRB5_KEYBLOCK_KEYVALUE #define KRB5_KEY_TYPE(k) ((k)->keytype) -- cgit