1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-07-31 00:03:07 +03:00

tests: Test server pubkey authentication

The default pubkey authentication callback is not checking
anything.

Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
Anderson Toshiyuki Sasaki
2019-01-09 14:29:57 +01:00
committed by Andreas Schneider
parent 29445e4ff1
commit db1a999852
3 changed files with 86 additions and 6 deletions

View File

@ -268,7 +268,8 @@ static int init_server_state(struct server_state_st *state,
if (arguments->auth_methods) {
state->auth_methods = atoi(arguments->auth_methods);
} else {
state->auth_methods = 0;
state->auth_methods = SSH_AUTH_METHOD_PASSWORD |
SSH_AUTH_METHOD_PUBLICKEY;
}
state->with_pcap = arguments->with_pcap;