xrtSshAuthKeyboardWrite
使用空 language tag 写入 ssh-connection keyboard-interactive 请求。
xsshcode xrtSshAuthKeyboardWrite( xsshwriter* pWriter, xstrview User, xstrview Submethods );
| 参数 | 说明 |
|---|---|
| xsshwriter* pWriter | 写入器 |
| xstrview User | 用户名 |
| xstrview Submethods | Submethods 参数 |
返回:使用空 language tag 写入 ssh-connection keyboard-interactive 请求。
示例已编译验证
/* 使用空 language tag 写入 ssh-connection keyboard-interactive 请求。 */ result = xrtSshAuthKeyboardWrite(pWriter, User, Submethods);
xrtSshAuthKeyboardWriteLanguage
写入带显式 language tag 的 keyboard-interactive 请求。
xsshcode xrtSshAuthKeyboardWriteLanguage( xsshwriter* pWriter, xstrview User, xstrview Language, xstrview Submethods );
| 参数 | 说明 |
|---|---|
| xsshwriter* pWriter | 写入器 |
| xstrview User | 用户名 |
| xstrview Language | Language 参数 |
| xstrview Submethods | Submethods 参数 |
返回:写入带显式 language tag 的 keyboard-interactive 请求。
示例已编译验证
/* 写入带显式 language tag 的 keyboard-interactive 请求。 */ result = xrtSshAuthKeyboardWriteLanguage(pWriter, User, Language, Submethods);
xrtSshAuthKeyboardRead
严格读取 keyboard-interactive 请求。
xsshcode xrtSshAuthKeyboardRead( xbytesview Payload, xsshauthkeyboard* pKeyboard );
| 参数 | 说明 |
|---|---|
| xbytesview Payload | 负载 |
| xsshauthkeyboard* pKeyboard | Keyboard 参数 |
返回:严格读取 keyboard-interactive 请求。
示例已编译验证
/* 严格读取 keyboard-interactive 请求。 */ result = xrtSshAuthKeyboardRead(Payload, pKeyboard);
xrtSshAuthKeyboardChallengeWrite
写入、验证并迭代服务端交互挑战。
xsshcode xrtSshAuthKeyboardChallengeWrite( xsshwriter* pWriter, xstrview Name, xstrview Instruction, xstrview Language, const xsshauthkeyboardprompt* pPrompts, size_t iCount );
| 参数 | 说明 |
|---|---|
| xsshwriter* pWriter | 写入器 |
| xstrview Name | 名称(xstrview) |
| xstrview Instruction | Instructon 参数 |
| xstrview Language | Language 参数 |
| const xsshauthkeyboardprompt* pPrompts | Promts 参数 |
| size_t iCount | 数量 |
返回:写入、验证并迭代服务端交互挑战。
示例已编译验证
/* 写入、验证并迭代服务端交互挑战。 */ result = xrtSshAuthKeyboardChallengeWrite(pWriter, Name, Instruction, Language, pPrompts, iCount);
xrtSshAuthKeyboardChallengeRead
XRT_API xsshcode xrtSshAuthKeyboardChallengeRead( xbytesview Payload, xsshauthkeyboardchallenge* pChallenge );
;
返回:XRT_API xsshcode xrtSshAuthKeyboardChallengeRead( xbytesview Payload, xsshauthkeyboardchallenge* pChallenge );
示例已编译验证
/* XRT_API xsshcode xrtSshAuthKeyboardChallengeRead( xbytesview Payload, xsshauthkeyboardchallenge* pChallenge ); */ result = xrtSshAuthKeyboardChallengeRead();
xrtSshAuthKeyboardChallengeNext
XRT_API bool xrtSshAuthKeyboardChallengeNext( xsshauthkeyboardchallenge* pChallenge, xsshauthkeyboardprompt* pPrompt );
;
返回:XRT_API bool xrtSshAuthKeyboardChallengeNext( xsshauthkeyboardchallenge* pChallenge, xsshauthkeyboardprompt* pPrompt );
示例已编译验证
/* XRT_API bool xrtSshAuthKeyboardChallengeNext( xsshauthkeyboardchallenge* pChallenge, xsshauthkeyboardprompt* pPrompt ); */ result = xrtSshAuthKeyboardChallengeNext();
xrtSshAuthKeyboardResponseWrite
写入、验证并迭代客户端交互响应。
xsshcode xrtSshAuthKeyboardResponseWrite( xsshwriter* pWriter, const xstrview* pResponses, size_t iCount );
| 参数 | 说明 |
|---|---|
| xsshwriter* pWriter | 写入器 |
| const xstrview* pResponses | Resonses 参数 |
| size_t iCount | 数量 |
返回:写入、验证并迭代客户端交互响应。
示例已编译验证
/* 写入、验证并迭代客户端交互响应。 */ result = xrtSshAuthKeyboardResponseWrite(pWriter, pResponses, iCount);
xrtSshAuthKeyboardResponseRead
XRT_API xsshcode xrtSshAuthKeyboardResponseRead( xbytesview Payload, xsshauthkeyboardresponses* pResponses );
;
返回:XRT_API xsshcode xrtSshAuthKeyboardResponseRead( xbytesview Payload, xsshauthkeyboardresponses* pResponses );
示例已编译验证
/* XRT_API xsshcode xrtSshAuthKeyboardResponseRead( xbytesview Payload, xsshauthkeyboardresponses* pResponses ); */ result = xrtSshAuthKeyboardResponseRead();
xrtSshAuthKeyboardResponseNext
XRT_API bool xrtSshAuthKeyboardResponseNext( xsshauthkeyboardresponses* pResponses, xstrview* pResponse );
;
返回:XRT_API bool xrtSshAuthKeyboardResponseNext( xsshauthkeyboardresponses* pResponses, xstrview* pResponse );
示例已编译验证
/* XRT_API bool xrtSshAuthKeyboardResponseNext( xsshauthkeyboardresponses* pResponses, xstrview* pResponse ); */ result = xrtSshAuthKeyboardResponseNext();