no need for keyprocarg to be const
authorJohn Kohl <jtkohl@mit.edu>
Fri, 19 Oct 1990 10:46:20 +0000 (10:46 +0000)
committerJohn Kohl <jtkohl@mit.edu>
Fri, 19 Oct 1990 10:46:20 +0000 (10:46 +0000)
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

index 48052d87501cd9afd285bdbcecc2f06e942c646e..ee19939cd04b6711193eabe7a70d45dc2bf0059c 100644 (file)
@@ -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;
     }