* recvauth.c (sendauth_version): Now a const array.
authorKen Raeburn <raeburn@mit.edu>
Fri, 12 Apr 2002 08:24:54 +0000 (08:24 +0000)
committerKen Raeburn <raeburn@mit.edu>
Fri, 12 Apr 2002 08:24:54 +0000 (08:24 +0000)
* sendauth.c (sendauth_version): Now a const array.
(krb5_sendauth): Cast address when assigning to outbuf data field.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14392 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/krb/ChangeLog
src/lib/krb5/krb/recvauth.c
src/lib/krb5/krb/sendauth.c

index 4a1a765205ad636e03abd31c632da45959808d68..76d88a0af35489176b3ac5590873bcb8b06ef8af 100644 (file)
@@ -5,6 +5,11 @@
        (sconv_list): Use them.
        (krb5_524_conv_principal): Compare lengths and then use memcmp.
 
+       * recvauth.c (sendauth_version): Now a const array.
+       * sendauth.c (sendauth_version): Now a const array.
+       (krb5_sendauth): Cast address when assigning to outbuf data
+       field.
+
 2002-04-05  Ken Raeburn  <raeburn@mit.edu>
 
        * decrypt_tk.c (krb5_decrypt_tkt_part): Call krb5_c_valid_enctype
index e7b135704ec205215dc2e6593d3706a43bbb3c12..dbb1f4f72698a21335057c0fd56de0bbcf883029 100644 (file)
@@ -35,7 +35,7 @@
 #include <stdio.h>
 #include <string.h>
 
-static char *sendauth_version = "KRB5_SENDAUTH_V1.0";
+static const char sendauth_version[] = "KRB5_SENDAUTH_V1.0";
 
 static krb5_error_code
 recvauth_common(krb5_context context,
index 6e8ded8369217071580cfb531a63f73b5533d374..f8117495e0dd25f44d3cc1ada0234ceb50d6b119 100644 (file)
@@ -49,7 +49,7 @@
 #define GETSOCKNAME_ARG3_TYPE size_t
 #endif
 
-static char *sendauth_version = "KRB5_SENDAUTH_V1.0";
+static const char sendauth_version[] = "KRB5_SENDAUTH_V1.0";
 
 krb5_error_code KRB5_CALLCONV
 krb5_sendauth(context, auth_context,
@@ -93,7 +93,7 @@ krb5_sendauth(context, auth_context,
         * by the string itself.  
         */
        outbuf.length = strlen(sendauth_version) + 1;
-       outbuf.data = sendauth_version;
+       outbuf.data = (char *) sendauth_version;
        if ((retval = krb5_write_message(context, fd, &outbuf)))
                return(retval);
        outbuf.length = strlen(appl_version) + 1;