Lines Matching defs:req

91 process_sign(struct sshbuf *req)
102 if ((r = sshbuf_froms(req, &kbuf)) != 0 ||
103 (r = sshbuf_get_cstring(req, &provider, NULL)) != 0 ||
104 (r = sshbuf_get_string_direct(req, &message, &msglen)) != 0 ||
105 (r = sshbuf_get_cstring(req, NULL, NULL)) != 0 || /* alg */
106 (r = sshbuf_get_u32(req, &compat)) != 0 ||
107 (r = sshbuf_get_cstring(req, &pin, NULL)) != 0)
109 if (sshbuf_len(req) != 0)
149 process_enroll(struct sshbuf *req)
162 if ((r = sshbuf_get_u32(req, &type)) != 0 ||
163 (r = sshbuf_get_cstring(req, &provider, NULL)) != 0 ||
164 (r = sshbuf_get_cstring(req, &device, NULL)) != 0 ||
165 (r = sshbuf_get_cstring(req, &application, NULL)) != 0 ||
166 (r = sshbuf_get_cstring(req, &userid, NULL)) != 0 ||
167 (r = sshbuf_get_u8(req, &flags)) != 0 ||
168 (r = sshbuf_get_cstring(req, &pin, NULL)) != 0 ||
169 (r = sshbuf_froms(req, &challenge)) != 0)
171 if (sshbuf_len(req) != 0)
213 process_load_resident(struct sshbuf *req)
225 if ((r = sshbuf_get_cstring(req, &provider, NULL)) != 0 ||
226 (r = sshbuf_get_cstring(req, &device, NULL)) != 0 ||
227 (r = sshbuf_get_cstring(req, &pin, NULL)) != 0 ||
228 (r = sshbuf_get_u32(req, &flags)) != 0)
230 if (sshbuf_len(req) != 0)
278 struct sshbuf *req, *resp;
313 if ((req = sshbuf_new()) == NULL)
315 if (ssh_msg_recv(in, req) < 0)
318 debug_f("received message len %zu", sshbuf_len(req));
320 if ((r = sshbuf_get_u8(req, &version)) != 0)
327 if ((r = sshbuf_get_u32(req, &rtype)) != 0 ||
328 (r = sshbuf_get_u8(req, &log_stderr)) != 0 ||
329 (r = sshbuf_get_u32(req, &ll)) != 0)
337 resp = process_sign(req);
340 resp = process_enroll(req);
343 resp = process_load_resident(req);
348 sshbuf_free(req);