• Home
  • Raw
  • Download

Lines Matching refs:resp

61 	struct sshbuf *resp;  in reply_error()  local
72 if ((resp = sshbuf_new()) == NULL) in reply_error()
74 if (sshbuf_put_u32(resp, SSH_SK_HELPER_ERROR) != 0 || in reply_error()
75 sshbuf_put_u32(resp, (u_int)-r) != 0) in reply_error()
77 return resp; in reply_error()
95 struct sshbuf *resp, *kbuf; in process_sign() local
126 resp = reply_error(r, "Signing failed: %s", ssh_err(r)); in process_sign()
130 if ((resp = sshbuf_new()) == NULL) in process_sign()
133 if ((r = sshbuf_put_u32(resp, SSH_SK_HELPER_SIGN)) != 0 || in process_sign()
134 (r = sshbuf_put_string(resp, sig, siglen)) != 0) in process_sign()
141 return resp; in process_sign()
151 struct sshbuf *challenge, *attest, *kbuf, *resp; in process_enroll() local
182 resp = reply_error(r, "Enrollment failed: %s", ssh_err(r)); in process_enroll()
186 if ((resp = sshbuf_new()) == NULL) in process_enroll()
190 if ((r = sshbuf_put_u32(resp, SSH_SK_HELPER_ENROLL)) != 0 || in process_enroll()
191 (r = sshbuf_put_stringb(resp, kbuf)) != 0 || in process_enroll()
192 (r = sshbuf_put_stringb(resp, attest)) != 0) in process_enroll()
205 return resp; in process_enroll()
213 struct sshbuf *kbuf, *resp; in process_load_resident() local
232 resp = reply_error(r, " sshsk_load_resident failed: %s", in process_load_resident()
237 if ((resp = sshbuf_new()) == NULL) in process_load_resident()
240 if ((r = sshbuf_put_u32(resp, SSH_SK_HELPER_LOAD_RESIDENT)) != 0) in process_load_resident()
250 if ((r = sshbuf_put_stringb(resp, kbuf)) != 0 || in process_load_resident()
251 (r = sshbuf_put_cstring(resp, "")) != 0) /* comment */ in process_load_resident()
263 return resp; in process_load_resident()
271 struct sshbuf *req, *resp; in main() local
330 resp = process_sign(req); in main()
333 resp = process_enroll(req); in main()
336 resp = process_load_resident(req); in main()
342 debug("%s: reply len %zu", __progname, sshbuf_len(resp)); in main()
344 if (ssh_msg_send(out, SSH_SK_HELPER_VERSION, resp) == -1) in main()
346 sshbuf_free(resp); in main()