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

Diff for /src/usr.bin/ssh/gss-serv.c between version 1.3 and 1.3.4.2

version 1.3, 2003/08/31 13:31:57 version 1.3.4.2, 2004/03/04 18:18:15
Line 232 
Line 232 
         return (ctx->major);          return (ctx->major);
 }  }
   
 /* As user - called through fatal cleanup hook */  /* As user - called on fatal/exit */
 void  void
 ssh_gssapi_cleanup_creds(void *ignored)  ssh_gssapi_cleanup_creds(void)
 {  {
         if (gssapi_client.store.filename != NULL) {          if (gssapi_client.store.filename != NULL) {
                 /* Unlink probably isn't sufficient */                  /* Unlink probably isn't sufficient */
Line 249 
Line 249 
 {  {
         if (gssapi_client.mech && gssapi_client.mech->storecreds) {          if (gssapi_client.mech && gssapi_client.mech->storecreds) {
                 (*gssapi_client.mech->storecreds)(&gssapi_client);                  (*gssapi_client.mech->storecreds)(&gssapi_client);
                 if (options.gss_cleanup_creds)  
                         fatal_add_cleanup(ssh_gssapi_cleanup_creds, NULL);  
         } else          } else
                 debug("ssh_gssapi_storecreds: Not a GSSAPI mechanism");                  debug("ssh_gssapi_storecreds: Not a GSSAPI mechanism");
 }  }
Line 287 
Line 285 
         else          else
                 debug("ssh_gssapi_userok: Unknown GSSAPI mechanism");                  debug("ssh_gssapi_userok: Unknown GSSAPI mechanism");
         return (0);          return (0);
   }
   
   /* Priviledged */
   OM_uint32
   ssh_gssapi_checkmic(Gssctxt *ctx, gss_buffer_t gssbuf, gss_buffer_t gssmic)
   {
           ctx->major = gss_verify_mic(&ctx->minor, ctx->context,
               gssbuf, gssmic, NULL);
   
           return (ctx->major);
 }  }
   
 #endif  #endif

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.3.4.2