* krb_auth_su.c krb5_auth_check()) Call krb5_get_cred_from_kdc()
authorChris Provenzano <proven@mit.edu>
Thu, 23 Feb 1995 13:26:23 +0000 (13:26 +0000)
committerChris Provenzano <proven@mit.edu>
Thu, 23 Feb 1995 13:26:23 +0000 (13:26 +0000)
with new calling convention.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4988 dc483132-0cff-0310-8789-dd5450dbe970

src/clients/ksu/ChangeLog
src/clients/ksu/krb_auth_su.c

index 93ccbd533157056ab7dbc13535d879eae845e79f..92a17a0a5d050bf58580aba5fe26ad51d813d236 100644 (file)
@@ -1,3 +1,8 @@
+Fri Feb 17 18:10:04 1995 Chris Provenzano  (proven@mit.edu)
+
+       * krb_auth_su.c krb5_auth_check()) Call krb5_get_cred_from_kdc()
+               with new calling convention.
+
 Mon Feb 06 17:19:04 1995 Chris Provenzano  (proven@mit.edu)
 
         * krb_auth_su.c Removed krb5_keytype, changed krb5_enctype to
index 9e7e153daf967134f3b6a23625a5230f032fa580..cc413bec8438d840bd932c9cdbd5570199c65acf 100644 (file)
@@ -62,7 +62,7 @@ krb5_boolean krb5_auth_check(context, client_pname, hostname, options,
     int *path_passwd;
 {
 krb5_principal client, server;
-krb5_creds tgt, tgtq, cred;
+krb5_creds tgt, tgtq, in_creds, * out_creds;
 krb5_creds **tgts = NULL; /* list of ticket granting tickets */       
 
 krb5_ticket * target_tkt; /* decrypted ticket for server */                
@@ -73,7 +73,7 @@ krb5_boolean zero_password;
        *path_passwd = 0;
        memset((char *) &tgtq, 0, sizeof(tgtq)); 
        memset((char *) &tgt, 0, sizeof(tgt)); 
-       memset((char *) &cred, 0, sizeof(cred)); 
+       memset((char *) &in_creds, 0, sizeof(krb5_creds)); 
 
        
        if (retval= krb5_copy_principal(context,  client_pname, &client)){
@@ -162,17 +162,18 @@ krb5_boolean zero_password;
 
        }
 
-       if (retval= krb5_copy_principal(context, client, &cred.client)){
+       if (retval= krb5_copy_principal(context, client, &in_creds.client)){
                com_err(prog_name, retval,"while copying client principal");   
                return (FALSE) ;        
        }
 
-       if (retval= krb5_copy_principal(context, server, &cred.server)){
+       if (retval= krb5_copy_principal(context, server, &in_creds.server)){
                com_err(prog_name, retval,"while copying client principal");   
                return (FALSE) ;        
        }
        
-       if (retval = krb5_get_cred_from_kdc(context, cc, &cred, &tgts)){
+       if (retval = krb5_get_cred_from_kdc(context, cc, &in_creds, 
+                                           &out_creds, &tgts)){
                com_err(prog_name, retval, "while geting credentials from kdc");  
                return (FALSE);
        }
@@ -180,7 +181,7 @@ krb5_boolean zero_password;
 
        if (auth_debug){ 
                fprintf(stderr,"krb5_auth_check: got ticket for end server \n"); 
-               dump_principal("cred.server", cred.server ); 
+               dump_principal("out_creds->server", out_creds->server ); 
        }       
 
 
@@ -201,13 +202,14 @@ krb5_boolean zero_password;
                krb5_free_tgt_creds(context, tgts);
        }
 
-       if (retval = krb5_verify_tkt_def(context, client, server,&cred.keyblock, 
-                                       &cred.ticket, &target_tkt)){
+       if (retval = krb5_verify_tkt_def(context, client, server, 
+                                        &out_creds->keyblock, 
+                                        &out_creds->ticket, &target_tkt)){
                com_err(prog_name, retval, "while verifing ticket for server"); 
                return (FALSE);
        }
 
-       if (retval = krb5_cc_store_cred(context,  cc, &cred)){
+       if (retval = krb5_cc_store_cred(context,  cc, out_creds)){
                com_err(prog_name, retval,
                        "While storing credentials");
                return (FALSE);