Fail fast if not authenticated

This commit is contained in:
Michael Spang 2009-10-24 12:24:07 -04:00
parent c00668b914
commit 235681263d
1 changed files with 4 additions and 0 deletions

View File

@ -223,10 +223,14 @@ int initial_client_token(gss_buffer_t outgoing_tok) {
}
char *client_principal(void) {
if (!complete)
fatal("authentication checked before finishing");
return peer_principal;
}
char *client_username(void) {
if (!complete)
fatal("authentication checked before finishing");
return peer_username;
}