1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-05-20 17:53:40 +03:00

torture_options: Add test for '@' in login name

Signed-off-by: Norbert Pocs <npocs@redhat.com>
Reviewed-by: Jakub Jelen <jjelen@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
(cherry picked from commit 964df4dc290c631fe2ece74600e510ca6c0a7385)
This commit is contained in:
Norbert Pocs 2022-07-11 12:34:34 +02:00 committed by Andreas Schneider
parent d17c635617
commit 33e12317c3

View File

@ -66,6 +66,13 @@ static void torture_options_set_host(void **state) {
assert_string_equal(session->opts.host, "meditation");
assert_non_null(session->opts.username);
assert_string_equal(session->opts.username, "guru");
rc = ssh_options_set(session, SSH_OPTIONS_HOST, "at@login@hostname");
assert_true(rc == 0);
assert_non_null(session->opts.host);
assert_string_equal(session->opts.host, "hostname");
assert_non_null(session->opts.username);
assert_string_equal(session->opts.username, "at@login");
}
static void torture_options_set_ciphers(void **state) {