(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
#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,
#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,
* 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;