Fail fast if not authenticated
This commit is contained in:
parent
c00668b914
commit
235681263d
|
@ -223,10 +223,14 @@ int initial_client_token(gss_buffer_t outgoing_tok) {
|
||||||
}
|
}
|
||||||
|
|
||||||
char *client_principal(void) {
|
char *client_principal(void) {
|
||||||
|
if (!complete)
|
||||||
|
fatal("authentication checked before finishing");
|
||||||
return peer_principal;
|
return peer_principal;
|
||||||
}
|
}
|
||||||
|
|
||||||
char *client_username(void) {
|
char *client_username(void) {
|
||||||
|
if (!complete)
|
||||||
|
fatal("authentication checked before finishing");
|
||||||
return peer_username;
|
return peer_username;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue