mirror of
https://github.com/libssh2/libssh2.git
synced 2025-07-29 13:01:14 +03:00
test_auth_keyboard_info_request: fix indentation
Cherry-picked from #1037
This commit is contained in:
@ -101,7 +101,8 @@ static const struct test_case
|
|||||||
"\0\0\0\0"
|
"\0\0\0\0"
|
||||||
"\0\0\0\x7f"
|
"\0\0\0\x7f"
|
||||||
"\0\0\0\0", 17,
|
"\0\0\0\0", 17,
|
||||||
{FAIL, -6, "Unable to decode keyboard-interactive 'language tag' "
|
{FAIL, -6,
|
||||||
|
"Unable to decode keyboard-interactive 'language tag' "
|
||||||
"request field"}},
|
"request field"}},
|
||||||
/* underrun prompt number */
|
/* underrun prompt number */
|
||||||
{
|
{
|
||||||
@ -129,18 +130,21 @@ static const struct test_case
|
|||||||
"\0\0\0\0"
|
"\0\0\0\0"
|
||||||
"\0\0\0\x01"
|
"\0\0\0\x01"
|
||||||
"\0\0\0\0"
|
"\0\0\0\0"
|
||||||
"\0", 22, {PASS, 0, ""}},
|
"\0", 22,
|
||||||
|
{PASS, 0, ""}},
|
||||||
/* copied from OpenSSH */
|
/* copied from OpenSSH */
|
||||||
{
|
{
|
||||||
"<"
|
"<"
|
||||||
"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\x01"
|
"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\x01"
|
||||||
"\0\0\0\x0aPassword: \0", 32, {PASS, 0, ""}},
|
"\0\0\0\x0aPassword: \0", 32,
|
||||||
|
{PASS, 0, ""}},
|
||||||
/* overrun in prompt text */
|
/* overrun in prompt text */
|
||||||
{
|
{
|
||||||
"<"
|
"<"
|
||||||
"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\x01"
|
"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\x01"
|
||||||
"\0\0\0\x7bPassword: \0", 32,
|
"\0\0\0\x7bPassword: \0", 32,
|
||||||
{FAIL, -6, "Unable to decode keyboard-interactive "
|
{FAIL, -6,
|
||||||
|
"Unable to decode keyboard-interactive "
|
||||||
"prompt message"}},
|
"prompt message"}},
|
||||||
/* no echo prompt boolean */
|
/* no echo prompt boolean */
|
||||||
{
|
{
|
||||||
@ -164,15 +168,15 @@ static const struct test_case
|
|||||||
"\0\0\0\x01"
|
"\0\0\0\x01"
|
||||||
"\0\0\0\x0aResponse: "
|
"\0\0\0\x0aResponse: "
|
||||||
"\x01"
|
"\x01"
|
||||||
, 89, {PASS, 0, ""}},
|
, 89,
|
||||||
|
{PASS, 0, ""}},
|
||||||
/* three prompts, 3rd missing */
|
/* three prompts, 3rd missing */
|
||||||
{
|
{
|
||||||
"<"
|
"<"
|
||||||
"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\x03"
|
"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\x03"
|
||||||
"\0\0\0\x0aPassword: \0"
|
"\0\0\0\x0aPassword: \0"
|
||||||
"\0\0\0\x07Token: \1", 44,
|
"\0\0\0\x07Token: \1", 44,
|
||||||
{FAIL, -6,
|
{FAIL, -6, "Unable to decode keyboard-interactive prompt message"}},
|
||||||
"Unable to decode keyboard-interactive prompt message"}},
|
|
||||||
/* overflow language on 32 bit platform */
|
/* overflow language on 32 bit platform */
|
||||||
{
|
{
|
||||||
"<"
|
"<"
|
||||||
|
Reference in New Issue
Block a user