rename foo to ap_msg

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16502 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
2006-01-09 16:40:11 +00:00
parent 9bd626b2eb
commit 1b8bdba909

View File

@@ -198,7 +198,7 @@ kerberos5_send(char *name, Authenticator *ap)
krb5_ccache ccache; krb5_ccache ccache;
int ap_opts; int ap_opts;
krb5_data cksum_data; krb5_data cksum_data;
char foo[2]; char ap_msg[2];
if (!UserNameRequested) { if (!UserNameRequested) {
if (auth_debug_mode) { if (auth_debug_mode) {
@@ -246,11 +246,11 @@ kerberos5_send(char *name, Authenticator *ap)
krb5_auth_con_setkeytype (context, auth_context, KEYTYPE_DES); krb5_auth_con_setkeytype (context, auth_context, KEYTYPE_DES);
foo[0] = ap->type; ap_msg[0] = ap->type;
foo[1] = ap->way; ap_msg[1] = ap->way;
cksum_data.length = sizeof(foo); cksum_data.length = sizeof(ap_msg);
cksum_data.data = foo; cksum_data.data = ap_msg;
{ {
@@ -420,15 +420,15 @@ kerberos5_is(Authenticator *ap, unsigned char *data, int cnt)
} }
{ {
char foo[2]; char ap_msg[2];
foo[0] = ap->type; ap_msg[0] = ap->type;
foo[1] = ap->way; ap_msg[1] = ap->way;
ret = krb5_verify_authenticator_checksum(context, ret = krb5_verify_authenticator_checksum(context,
auth_context, auth_context,
foo, ap_msg,
sizeof(foo)); sizeof(ap_msg));
if (ret) { if (ret) {
const char *errbuf2 = "Bad checksum"; const char *errbuf2 = "Bad checksum";