summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJohn Kohl <jtkohl@mit.edu>1990-10-19 10:46:20 +0000
committerJohn Kohl <jtkohl@mit.edu>1990-10-19 10:46:20 +0000
commitad9c24fa5bb7f7944f0af220f53e2150c443f642 (patch)
tree9d1759ac400c7268afb65e96fb9e50cfcbb99a5a /src
parent9044354ccc9fac50fddd57e92997788870d3a44d (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/lib/krb5/krb/rd_req_dec.c9
1 files 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;
}