X-Git-Url: http://andersk.mit.edu/gitweb/gssapi-openssh.git/blobdiff_plain/c7931c9aedd8e12fdd0df715dcefce0e0c95be6a..22ce3a3becb01f9487f7fa12b859100c162e231c:/openssh/gss-serv-gsi.c diff --git a/openssh/gss-serv-gsi.c b/openssh/gss-serv-gsi.c index e77db62..196f4b6 100644 --- a/openssh/gss-serv-gsi.c +++ b/openssh/gss-serv-gsi.c @@ -49,6 +49,8 @@ extern ServerOptions options; static int ssh_gssapi_gsi_userok(ssh_gssapi_client *client, char *name); static int ssh_gssapi_gsi_localname(ssh_gssapi_client *client, char **user); static void ssh_gssapi_gsi_storecreds(ssh_gssapi_client *client); +static int ssh_gssapi_gsi_updatecreds(ssh_gssapi_ccache *store, + ssh_gssapi_client *client); ssh_gssapi_mech gssapi_gsi_mech = { "dZuIebMjgUqaxvbF7hDbAw==", @@ -58,7 +60,7 @@ ssh_gssapi_mech gssapi_gsi_mech = { &ssh_gssapi_gsi_userok, &ssh_gssapi_gsi_localname, &ssh_gssapi_gsi_storecreds, - NULL + &ssh_gssapi_gsi_updatecreds }; /* @@ -222,5 +224,15 @@ ssh_gssapi_gsi_storecreds(ssh_gssapi_client *client) gss_release_buffer(&minor_status, &export_cred); } +/* + * Export updated GSI credentials to disk. + */ +static int +ssh_gssapi_gsi_updatecreds(ssh_gssapi_ccache *store,ssh_gssapi_client *client) +{ + ssh_gssapi_gsi_storecreds(client); + return 1; +} + #endif /* GSI */ #endif /* GSSAPI */