mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-04 12:20:42 +09:00
CMakeLists: Shorten the keys lists passed to the ssh command
Signed-off-by: Jakub Jelen <jjelen@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
(cherry picked from commit c106cd1f83)
This commit is contained in:
committed by
Anderson Toshiyuki Sasaki
parent
d4b07d1675
commit
737ba4a680
@@ -65,7 +65,13 @@ if (SSH_EXECUTABLE)
|
||||
execute_process(COMMAND ${SSH_EXECUTABLE} -Q kex OUTPUT_VARIABLE OPENSSH_KEX)
|
||||
execute_process(COMMAND ${SSH_EXECUTABLE} -Q key OUTPUT_VARIABLE OPENSSH_KEYS)
|
||||
execute_process(COMMAND ${SSH_EXECUTABLE} -Q sig OUTPUT_VARIABLE OPENSSH_SIGS ERROR_QUIET)
|
||||
|
||||
# We need both of them, but lets get rid of duplicate items presented in both lists
|
||||
# to avoid processing too long arguments in pkd
|
||||
set(OPENSSH_KEYS "${OPENSSH_KEYS}${OPENSSH_SIGS}")
|
||||
string(REPLACE "\n" ";" OPENSSH_KEYS "${OPENSSH_KEYS}")
|
||||
list(REMOVE_DUPLICATES OPENSSH_KEYS)
|
||||
string(REPLACE ";" "\n" OPENSSH_KEYS "${OPENSSH_KEYS}")
|
||||
endif()
|
||||
|
||||
set(SSH_ALGORITHMS
|
||||
|
||||
Reference in New Issue
Block a user