From ad9c24fa5bb7f7944f0af220f53e2150c443f642 Mon Sep 17 00:00:00 2001 From: John Kohl Date: Fri, 19 Oct 1990 10:46:20 +0000 Subject: [PATCH] no need for keyprocarg to be const need to cast things sent to krb5_principal_compare.. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1294 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/krb/rd_req_dec.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/lib/krb5/krb/rd_req_dec.c b/src/lib/krb5/krb/rd_req_dec.c index 48052d875..ee19939cd 100644 --- a/src/lib/krb5/krb/rd_req_dec.c +++ b/src/lib/krb5/krb/rd_req_dec.c @@ -65,7 +65,7 @@ krb5_error_code (*keyproc) PROTOTYPE((krb5_pointer, krb5_principal, krb5_kvno, krb5_keyblock **)); -krb5_const_pointer keyprocarg; +krb5_pointer keyprocarg; krb5_rcache rcache; krb5_tkt_authent *tktauthent; { @@ -75,7 +75,8 @@ krb5_tkt_authent *tktauthent; krb5_timestamp currenttime; - if (!krb5_principal_compare(server, req->ticket->server)) + if (!krb5_principal_compare(server, + (krb5_const_principal) req->ticket->server)) return KRB5KRB_AP_WRONG_PRINC; /* if (req->ap_options & AP_OPTS_USE_SESSION_KEY) @@ -122,8 +123,8 @@ krb5_tkt_authent *tktauthent; } #define clean_authenticator() {(void) krb5_free_authenticator(tktauthent->authenticator); tktauthent->authenticator = 0;} - if (!krb5_principal_compare(tktauthent->authenticator->client, - req->ticket->enc_part2->client)) { + if (!krb5_principal_compare((krb5_const_principal)tktauthent->authenticator->client, + (krb5_const_principal)req->ticket->enc_part2->client)) { clean_authenticator(); return KRB5KRB_AP_ERR_BADMATCH; } -- 2.26.2