File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1809,12 +1809,16 @@ static word32 kbResponseLength = 4;
18091809
18101810static int keyboardUserAuth (byte authType , WS_UserAuthData * authData , void * ctx )
18111811{
1812- (void ) ctx ;
18131812 int ret = WOLFSSH_USERAUTH_INVALID_AUTHTYPE ;
18141813
1814+ (void )ctx ;
1815+
18151816 if (authType == WOLFSSH_USERAUTH_KEYBOARD ) {
18161817 AssertIntEQ (1 , authData -> sf .keyboard .promptCount );
1817- AssertStrEQ ("KB Auth Password: " , authData -> sf .keyboard .prompts [0 ]);
1818+ AssertNotNull (authData -> sf .keyboard .prompts );
1819+ AssertNotNull (authData -> sf .keyboard .prompts [0 ]);
1820+ AssertStrEQ ("KB Auth Password: " ,
1821+ (const char * )authData -> sf .keyboard .prompts [0 ]);
18181822
18191823 authData -> sf .keyboard .responseCount = 1 ;
18201824 authData -> sf .keyboard .responseLengths = & kbResponseLength ;
@@ -1902,6 +1906,7 @@ static void test_wolfSSH_KeyboardInteractive(void)
19021906 THREAD_TYPE serThread ;
19031907
19041908 WMEMSET (& ser , 0 , sizeof (func_args ));
1909+ WMEMSET (& ready , 0 , sizeof (tcp_ready ));
19051910
19061911 argsCount = 0 ;
19071912 args [argsCount ++ ] = "." ;
You can’t perform that action at this time.
0 commit comments