|
Lines 2478-2485
do_cleanup(Authctxt *authctxt)
Link Here
|
| 2478 |
return; |
2478 |
return; |
| 2479 |
called = 1; |
2479 |
called = 1; |
| 2480 |
|
2480 |
|
| 2481 |
if (authctxt == NULL || !authctxt->authenticated) |
2481 |
if (authctxt == NULL) |
| 2482 |
return; |
2482 |
return; |
|
|
2483 |
|
| 2484 |
#ifdef USE_PAM |
| 2485 |
if (options.use_pam) { |
| 2486 |
sshpam_cleanup(); |
| 2487 |
sshpam_thread_cleanup(); |
| 2488 |
} |
| 2489 |
#endif |
| 2490 |
|
| 2491 |
if (!authctxt->authenticated) |
| 2492 |
return; |
| 2493 |
|
| 2483 |
#ifdef KRB5 |
2494 |
#ifdef KRB5 |
| 2484 |
if (options.kerberos_ticket_cleanup && |
2495 |
if (options.kerberos_ticket_cleanup && |
| 2485 |
authctxt->krb5_ctx) |
2496 |
authctxt->krb5_ctx) |
|
Lines 2489-2501
do_cleanup(Authctxt *authctxt)
Link Here
|
| 2489 |
#ifdef GSSAPI |
2500 |
#ifdef GSSAPI |
| 2490 |
if (compat20 && options.gss_cleanup_creds) |
2501 |
if (compat20 && options.gss_cleanup_creds) |
| 2491 |
ssh_gssapi_cleanup_creds(); |
2502 |
ssh_gssapi_cleanup_creds(); |
| 2492 |
#endif |
|
|
| 2493 |
|
| 2494 |
#ifdef USE_PAM |
| 2495 |
if (options.use_pam) { |
| 2496 |
sshpam_cleanup(); |
| 2497 |
sshpam_thread_cleanup(); |
| 2498 |
} |
| 2499 |
#endif |
2503 |
#endif |
| 2500 |
|
2504 |
|
| 2501 |
/* remove agent socket */ |
2505 |
/* remove agent socket */ |