[BACK]Return to auth-krb5.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / ssh

Diff for /src/usr.bin/ssh/auth-krb5.c between version 1.19 and 1.20

version 1.19, 2006/08/03 03:34:41 version 1.20, 2013/07/20 01:55:13
Line 69 
Line 69 
 {  {
         krb5_error_code problem;          krb5_error_code problem;
         krb5_ccache ccache = NULL;          krb5_ccache ccache = NULL;
           const char *errmsg;
   
         temporarily_use_uid(authctxt->pw);          temporarily_use_uid(authctxt->pw);
   
Line 81 
Line 82 
         if (problem)          if (problem)
                 goto out;                  goto out;
   
         problem = krb5_cc_gen_new(authctxt->krb5_ctx, &krb5_mcc_ops, &ccache);          problem = krb5_cc_new_unique(authctxt->krb5_ctx,
                krb5_mcc_ops.prefix, NULL, &ccache);
         if (problem)          if (problem)
                 goto out;                  goto out;
   
Line 100 
Line 102 
         if (problem)          if (problem)
                 goto out;                  goto out;
   
         problem = krb5_cc_gen_new(authctxt->krb5_ctx, &krb5_fcc_ops,          problem = krb5_cc_new_unique(authctxt->krb5_ctx,
             &authctxt->krb5_fwd_ccache);               krb5_fcc_ops.prefix, NULL, &authctxt->krb5_fwd_ccache);
         if (problem)          if (problem)
                 goto out;                  goto out;
   
Line 122 
Line 124 
                 if (ccache)                  if (ccache)
                         krb5_cc_destroy(authctxt->krb5_ctx, ccache);                          krb5_cc_destroy(authctxt->krb5_ctx, ccache);
   
                 if (authctxt->krb5_ctx != NULL)                  if (authctxt->krb5_ctx != NULL) {
                           errmsg = krb5_get_error_message(authctxt->krb5_ctx,
                               problem);
                         debug("Kerberos password authentication failed: %s",                          debug("Kerberos password authentication failed: %s",
                             krb5_get_err_text(authctxt->krb5_ctx, problem));                              errmsg);
                 else                          krb5_free_error_message(authctxt->krb5_ctx, errmsg);
                   } else
                         debug("Kerberos password authentication failed: %d",                          debug("Kerberos password authentication failed: %d",
                             problem);                              problem);
   

Legend:
Removed from v.1.19  
changed lines
  Added in v.1.20