mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-07-31 00:03:07 +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 964df4dc29
)
This commit is contained in:
committed by
Andreas Schneider
parent
d17c635617
commit
33e12317c3
@ -66,6 +66,13 @@ static void torture_options_set_host(void **state) {
|
|||||||
assert_string_equal(session->opts.host, "meditation");
|
assert_string_equal(session->opts.host, "meditation");
|
||||||
assert_non_null(session->opts.username);
|
assert_non_null(session->opts.username);
|
||||||
assert_string_equal(session->opts.username, "guru");
|
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) {
|
static void torture_options_set_ciphers(void **state) {
|
||||||
|
Reference in New Issue
Block a user