aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJakub Jelen <jjelen@redhat.com>2018-08-07 11:34:30 +0200
committerAndreas Schneider <asn@cryptomilk.org>2018-08-31 14:18:34 +0200
commit594c62d718ced4706a545c2ff21add5e3e1b652f (patch)
tree19be799cf20f64abebde570ac8e463b6851667ea /src
parent4169be45eb5262a1a4aba775740b65206906e772 (diff)
downloadlibssh-594c62d718ced4706a545c2ff21add5e3e1b652f.tar.gz
libssh-594c62d718ced4706a545c2ff21add5e3e1b652f.tar.xz
libssh-594c62d718ced4706a545c2ff21add5e3e1b652f.zip
tests: PUBLICKEY_ACCEPTED_TYPES are effective
Verify the PUBLICKEY_ACCEPTED_TYPES option is handled correctly and affects the signature algorithm selection based on the extensions and can be used to limit list of offered mechanisms to the server. Signed-off-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'src')
-rw-r--r--src/pki.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pki.c b/src/pki.c
index 69d76c27..9e1bfc43 100644
--- a/src/pki.c
+++ b/src/pki.c
@@ -303,7 +303,7 @@ int ssh_key_algorithm_allowed(ssh_session session, const char *type)
*
* @return A hash type to be used.
*/
-static enum ssh_digest_e ssh_key_type_to_hash(ssh_session session,
+enum ssh_digest_e ssh_key_type_to_hash(ssh_session session,
enum ssh_keytypes_e type)
{
switch (type) {