From: Ken Raeburn Date: Fri, 12 Apr 2002 08:24:54 +0000 (+0000) Subject: * recvauth.c (sendauth_version): Now a const array. X-Git-Tag: krb5-1.3-alpha1~768 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9f556f8b6659f14301a30b6e28349958e21bc2d7;p=krb5.git * 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. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14392 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/krb/ChangeLog b/src/lib/krb5/krb/ChangeLog index 4a1a76520..76d88a0af 100644 --- a/src/lib/krb5/krb/ChangeLog +++ b/src/lib/krb5/krb/ChangeLog @@ -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 * decrypt_tk.c (krb5_decrypt_tkt_part): Call krb5_c_valid_enctype diff --git a/src/lib/krb5/krb/recvauth.c b/src/lib/krb5/krb/recvauth.c index e7b135704..dbb1f4f72 100644 --- a/src/lib/krb5/krb/recvauth.c +++ b/src/lib/krb5/krb/recvauth.c @@ -35,7 +35,7 @@ #include #include -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, diff --git a/src/lib/krb5/krb/sendauth.c b/src/lib/krb5/krb/sendauth.c index 6e8ded836..f8117495e 100644 --- a/src/lib/krb5/krb/sendauth.c +++ b/src/lib/krb5/krb/sendauth.c @@ -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;