Author: metze
Date: 2005-10-30 10:39:52 +0000 (Sun, 30 Oct 2005)
New Revision: 11400

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

Log:
fix compiler warnings

metze
Modified:
   branches/SAMBA_4_0/source/auth/gensec/gensec_krb5.c
   branches/SAMBA_4_0/source/auth/kerberos/kerberos.h


Changeset:
Modified: branches/SAMBA_4_0/source/auth/gensec/gensec_krb5.c
===================================================================
--- branches/SAMBA_4_0/source/auth/gensec/gensec_krb5.c 2005-10-30 00:56:39 UTC 
(rev 11399)
+++ branches/SAMBA_4_0/source/auth/gensec/gensec_krb5.c 2005-10-30 10:39:52 UTC 
(rev 11400)
@@ -175,7 +175,7 @@
        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);

Modified: branches/SAMBA_4_0/source/auth/kerberos/kerberos.h
===================================================================
--- branches/SAMBA_4_0/source/auth/kerberos/kerberos.h  2005-10-30 00:56:39 UTC 
(rev 11399)
+++ branches/SAMBA_4_0/source/auth/kerberos/kerberos.h  2005-10-30 10:39:52 UTC 
(rev 11400)
@@ -35,11 +35,11 @@
 };
 
 /* 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)

Reply via email to