1
0
mirror of https://github.com/libssh2/libssh2.git synced 2025-11-20 02:42:09 +03:00

wincng: fix unused variables with LIBSSH2_RSA_SHA2 disabled

Tested in #979
This commit is contained in:
Viktor Szakats
2023-04-19 18:16:48 +00:00
parent d1bf8fadf7
commit 31acf57299

View File

@@ -2723,6 +2723,9 @@ _libssh2_supported_key_sign_algorithms(LIBSSH2_SESSION *session,
memcmp(key_method, "ssh-rsa", key_method_len) == 0) { memcmp(key_method, "ssh-rsa", key_method_len) == 0) {
return "rsa-sha2-512,rsa-sha2-256,ssh-rsa"; return "rsa-sha2-512,rsa-sha2-256,ssh-rsa";
} }
#else
(void)key_method;
(void)key_method_len;
#endif #endif
return NULL; return NULL;