From ccc1fd63ca58d1a75ccd65f1aea418d008ad117f Mon Sep 17 00:00:00 2001 From: John Carr Date: Wed, 3 Apr 1991 15:06:11 +0000 Subject: [PATCH] Second argument to process_v4 should be const git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1985 dc483132-0cff-0310-8789-dd5450dbe970 --- src/kdc/kdc_util.h | 2 +- src/kdc/kerberos_v4.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/kdc/kdc_util.h b/src/kdc/kdc_util.h index 10bc56a5f..e710b1017 100644 --- a/src/kdc/kdc_util.h +++ b/src/kdc/kdc_util.h @@ -74,7 +74,7 @@ void kdc_insert_lookaside PROTOTYPE((krb5_data *, krb5_data *)); #define realm_of_tgt(ticket) krb5_princ_realm(ticket->server) #ifdef KRB4 krb5_error_code process_v4 PROTOTYPE((const krb5_data *, - krb5_fulladdr *, + const krb5_fulladdr *, krb5_data **)); #else #define process_v4(foo,bar,foobar) KRB5KRB_AP_ERR_BADVERSION diff --git a/src/kdc/kerberos_v4.c b/src/kdc/kerberos_v4.c index d9fac46aa..0640c1307 100644 --- a/src/kdc/kerberos_v4.c +++ b/src/kdc/kerberos_v4.c @@ -380,7 +380,7 @@ krb5_error_code krb5_timeofday(), krb5_get_default_realm(); krb5_error_code process_v4( pkt, client_fulladdr, resp) const krb5_data *pkt; -krb5_fulladdr *client_fulladdr; +const krb5_fulladdr *client_fulladdr; krb5_data **resp; { struct sockaddr_in client_sockaddr; @@ -831,13 +831,13 @@ kerberos_v4(client, pkt) tk->length = 0; k_flags = 0; /* various kerberos flags */ - auth->length = 4 + strlen(pkt->dat + 3); + auth->length = 4 + strlen((char *)pkt->dat + 3); auth->length += (int) *(pkt->dat + auth->length) + (int) *(pkt->dat + auth->length + 1) + 2; bcopy(pkt->dat, auth->dat, auth->length); - strncpy(tktrlm, auth->dat + 3, REALM_SZ); + strncpy(tktrlm, (char *)auth->dat + 3, REALM_SZ); if (set_tgtkey(tktrlm)) { lt = klog(L_ERR_UNK, "FAILED realm %s unknown. Host: %s ", -- 2.26.2