From: Ken Raeburn Date: Mon, 2 Feb 2009 22:28:34 +0000 (+0000) Subject: TWRITE_STR casts second argument; don't add redundant casting X-Git-Tag: krb5-1.8-alpha1~730 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2fbe8a9edf3b69e68c226a79dad0747f19decd0b;p=krb5.git TWRITE_STR casts second argument; don't add redundant casting git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@21874 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/gssapi/krb5/init_sec_context.c b/src/lib/gssapi/krb5/init_sec_context.c index 2175e9ecd..f91c7525e 100644 --- a/src/lib/gssapi/krb5/init_sec_context.c +++ b/src/lib/gssapi/krb5/init_sec_context.c @@ -252,7 +252,7 @@ make_gss_checksum (krb5_context context, krb5_auth_context auth_context, ptr = (unsigned char *)data->checksum_data.data; TWRITE_INT(ptr, data->md5.length, 0); - TWRITE_STR(ptr, (unsigned char *) data->md5.contents, data->md5.length); + TWRITE_STR(ptr, data->md5.contents, data->md5.length); TWRITE_INT(ptr, data->ctx->gss_flags, 0); /* done with this, free it */ @@ -261,7 +261,7 @@ make_gss_checksum (krb5_context context, krb5_auth_context auth_context, if (credmsg.data) { TWRITE_INT16(ptr, KRB5_GSS_FOR_CREDS_OPTION, 0); TWRITE_INT16(ptr, credmsg.length, 0); - TWRITE_STR(ptr, (unsigned char *) credmsg.data, credmsg.length); + TWRITE_STR(ptr, credmsg.data, credmsg.length); /* free credmsg data */ krb5_free_data_contents(context, &credmsg); @@ -365,7 +365,7 @@ make_ap_req_v1(context, ctx, cred, k_cred, chan_bindings, mech_type, token) g_make_token_header(mech_type, ap_req.length, &ptr, KG_TOK_CTX_AP_REQ); - TWRITE_STR(ptr, (unsigned char *) ap_req.data, ap_req.length); + TWRITE_STR(ptr, ap_req.data, ap_req.length); /* pass it back */