token, kex: Add functions to handle tokens lists

The added functions allow splitting chains of tokens separated by a
given character (usually ','), and extracting matching parts between two
chains of tokens.

The previously existing functions in kex.c were replaced by the
introduced ones.

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-15 17:48:41 +02:00
committed by Andreas Schneider
parent b0ff64bf1b
commit 2c4850cbbd
6 changed files with 472 additions and 111 deletions

View File

@@ -20,6 +20,7 @@ set(LIBSSH_UNIT_TESTS
torture_temp_file
torture_push_pop_dir
torture_session_keys
torture_tokens
)
set(LIBSSH_THREAD_UNIT_TESTS