Lines Matching full:resp
60 struct sshbuf *resp; in reply_error() local
71 if ((resp = sshbuf_new()) == NULL) in reply_error()
73 if (sshbuf_put_u32(resp, SSH_SK_HELPER_ERROR) != 0 || in reply_error()
74 sshbuf_put_u32(resp, (u_int)-r) != 0) in reply_error()
76 return resp; in reply_error()
94 struct sshbuf *resp, *kbuf; in process_sign() local
127 resp = reply_error(r, "Signing failed: %s", ssh_err(r)); in process_sign()
131 if ((resp = sshbuf_new()) == NULL) in process_sign()
134 if ((r = sshbuf_put_u32(resp, SSH_SK_HELPER_SIGN)) != 0 || in process_sign()
135 (r = sshbuf_put_string(resp, sig, siglen)) != 0) in process_sign()
145 return resp; in process_sign()
155 struct sshbuf *challenge, *attest, *kbuf, *resp; in process_enroll() local
186 resp = reply_error(r, "Enrollment failed: %s", ssh_err(r)); in process_enroll()
190 if ((resp = sshbuf_new()) == NULL) in process_enroll()
194 if ((r = sshbuf_put_u32(resp, SSH_SK_HELPER_ENROLL)) != 0 || in process_enroll()
195 (r = sshbuf_put_stringb(resp, kbuf)) != 0 || in process_enroll()
196 (r = sshbuf_put_stringb(resp, attest)) != 0) in process_enroll()
209 return resp; in process_enroll()
217 struct sshbuf *kbuf, *resp; in process_load_resident() local
238 resp = reply_error(r, "sshsk_load_resident failed: %s", in process_load_resident()
243 if ((resp = sshbuf_new()) == NULL) in process_load_resident()
246 if ((r = sshbuf_put_u32(resp, SSH_SK_HELPER_LOAD_RESIDENT)) != 0) in process_load_resident()
256 if ((r = sshbuf_put_stringb(resp, kbuf)) != 0 || in process_load_resident()
257 (r = sshbuf_put_cstring(resp, "")) != 0 || /* comment */ in process_load_resident()
258 (r = sshbuf_put_string(resp, srks[i]->user_id, in process_load_resident()
270 return resp; in process_load_resident()
278 struct sshbuf *req, *resp; in main() local
337 resp = process_sign(req); in main()
340 resp = process_enroll(req); in main()
343 resp = process_load_resident(req); in main()
349 debug_f("reply len %zu", sshbuf_len(resp)); in main()
351 if (ssh_msg_send(out, SSH_SK_HELPER_VERSION, resp) == -1) in main()
353 sshbuf_free(resp); in main()