Lines Matching refs:combuf
108 struct admin_com *combuf; local
134 if ((combuf = (struct admin_com *)racoon_malloc(com.ac_len)) == NULL) {
141 while ((len = recvfrom(sock, (char *)combuf,
158 *bufp = (struct privsep_com_msg *)combuf;
287 struct privsep_com_msg *combuf; in privsep_init() local
295 if (privsep_recv(privsep_sock[0], &combuf, &len) != 0) in privsep_init()
299 if (len < sizeof(*combuf)) { in privsep_init()
305 data = (char *)(combuf + 1); in privsep_init()
306 totallen = sizeof(*combuf); in privsep_init()
309 data += combuf->bufs.buflen[i]; in privsep_init()
310 totallen += combuf->bufs.buflen[i]; in privsep_init()
327 reply->hdr.ac_cmd = combuf->hdr.ac_cmd; in privsep_init()
330 switch(combuf->hdr.ac_cmd) { in privsep_init()
343 if (safety_check(combuf, 0) != 0) in privsep_init()
345 bufs[0][combuf->bufs.buflen[0] - 1] = '\0'; in privsep_init()
390 if (safety_check(combuf, 0) != 0) in privsep_init()
392 bufs[0][combuf->bufs.buflen[0] - 1] = '\0'; in privsep_init()
398 if (combuf->bufs.buflen[count] == 0) in privsep_init()
401 [combuf->bufs.buflen[count] - 1] = '\0'; in privsep_init()
433 if (combuf->bufs.buflen[count] != sizeof(name)) { in privsep_init()
440 for (i = 0; combuf->bufs.buflen[count]; count++) in privsep_init()
472 if (safety_check(combuf, 0) != 0) in privsep_init()
474 bufs[0][combuf->bufs.buflen[0] - 1] = '\0'; in privsep_init()
476 if (combuf->bufs.buflen[1] != sizeof(keylen)) { in privsep_init()
513 if (safety_check(combuf, 0) != 0) in privsep_init()
515 if (safety_check(combuf, 1) != 0) in privsep_init()
517 if (safety_check(combuf, 2) != 0) in privsep_init()
519 if (safety_check(combuf, 3) != 0) in privsep_init()
525 bufs[2][combuf->bufs.buflen[2] - 1] = '\0'; in privsep_init()
546 if (safety_check(combuf, 0) != 0) in privsep_init()
548 bufs[0][combuf->bufs.buflen[0] - 1] = '\0'; in privsep_init()
550 if (safety_check(combuf, 1) != 0) in privsep_init()
552 bufs[1][combuf->bufs.buflen[1] - 1] = '\0'; in privsep_init()
573 if (safety_check(combuf, 0) != 0) in privsep_init()
575 if (safety_check(combuf, 1) != 0) in privsep_init()
577 if (safety_check(combuf, 2) != 0) in privsep_init()
610 if (safety_check(combuf, 0) != 0) in privsep_init()
612 if (safety_check(combuf, 1) != 0) in privsep_init()
614 if (safety_check(combuf, 2) != 0) in privsep_init()
616 if (safety_check(combuf, 3) != 0) in privsep_init()
618 if (safety_check(combuf, 4) != 0) in privsep_init()
625 bufs[3][combuf->bufs.buflen[3] - 1] = '\0'; in privsep_init()
626 bufs[4][combuf->bufs.buflen[4] - 1] = '\0'; in privsep_init()
654 if (safety_check(combuf, 0) != 0) in privsep_init()
656 if (safety_check(combuf, 1) != 0) in privsep_init()
683 combuf->hdr.ac_cmd); in privsep_init()
693 racoon_free(combuf); in privsep_init()