pki: Check if the key is allowed against right list

Previously when generating the signature in server side the key was
checked against the wrong list, potentially making the server to select
the wrong algorithm to sign (e.g. rsa-sha2-512 instead of rsa-sha2-256).

Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
Reviewed-by: Jakub Jelen <jjelen@redhat.com>
This commit is contained in:
Anderson Toshiyuki Sasaki
2019-05-16 17:07:57 +02:00
committed by Andreas Schneider
parent d013a94f37
commit b0ff64bf1b
2 changed files with 20 additions and 3 deletions

View File

@@ -36,6 +36,8 @@ static int setup(void **state)
verbosity = torture_libssh_verbosity();
ssh_options_set(session, SSH_OPTIONS_LOG_VERBOSITY, &verbosity);
session->client = 1;
*state = session;
return 0;