pts/sm_test: also simulate incorrect passkey entry

This commit is contained in:
Matthias Ringwald 2018-03-31 20:33:00 +02:00
parent 1a9063585d
commit 45a7413e73

View File

@ -322,6 +322,9 @@ static void stdin_process(char c){
printf("\n");
fflush(stdout);
sm_keypress_notification(connection_handle, SM_KEYPRESS_PASSKEY_ENTRY_COMPLETED);
if (sm_failure == SM_REASON_PASSKEY_ENTRY_FAILED){
ui_passkey--;
}
sm_passkey_input(connection_handle, ui_passkey);
}
return;