Home | History | Annotate | Download | only in racoon

Lines Matching refs:reply

288 		struct privsep_com_msg *reply;
319 /* Prepare the reply buffer */
320 if ((reply = racoon_malloc(sizeof(*reply))) == NULL) {
322 "Cannot allocate reply buffer: %s\n",
326 bzero(reply, sizeof(*reply));
327 reply->hdr.ac_cmd = combuf->hdr.ac_cmd;
328 reply->hdr.ac_len = sizeof(*reply);
357 reply->hdr.ac_errno = errno;
361 reply->bufs.buflen[0] = privkey->l;
362 reply->hdr.ac_len = sizeof(*reply) + privkey->l;
363 reply = racoon_realloc(reply, reply->hdr.ac_len);
364 if (reply == NULL) {
366 "Cannot allocate reply buffer: %s\n",
371 memcpy(reply + 1, privkey->v, privkey->l);
487 reply->hdr.ac_errno = errno;
491 reply->bufs.buflen[0] = psk->l;
492 reply->hdr.ac_len = sizeof(*reply) + psk->l;
493 reply = racoon_realloc(reply, reply->hdr.ac_len);
494 if (reply == NULL) {
496 "Cannot allocate reply buffer: %s\n",
501 memcpy(reply + 1, psk->v, psk->l);
539 reply->hdr.ac_errno = EINVAL;
541 reply->hdr.ac_errno = errno;
561 reply->hdr.ac_errno = EINVAL;
563 reply->hdr.ac_errno = errno;
598 reply->hdr.ac_errno = EINVAL;
600 reply->hdr.ac_errno = errno;
643 reply->hdr.ac_errno = EINVAL;
645 reply->hdr.ac_errno = errno;
673 reply->hdr.ac_errno = 0;
688 /* This frees reply */
690 reply, reply->hdr.ac_len) != 0)