Lines Matching full:len
80 privsep_send(sock, buf, len)
83 size_t len;
88 if (sendto(sock, (char *)buf, len, 0, NULL, 0) == -1) {
109 size_t len;
115 while ((len = recvfrom(sock, (char *)&com,
127 if (len < sizeof(com)) {
141 while ((len = recvfrom(sock, (char *)combuf,
151 /* We expect len to match */
152 if (len != com.ac_len) {
159 *lenp = len;
286 size_t len;
295 if (privsep_recv(privsep_sock[0], &combuf, &len) != 0)
299 if (len < sizeof(*combuf)) {
313 if (totallen > len) {
708 size_t len;
713 len = sizeof(*msg) + strlen(path) + 1;
714 if ((msg = racoon_malloc(len)) == NULL) {
719 bzero(msg, len);
721 msg->hdr.ac_len = len;
722 msg->bufs.buflen[0] = len - sizeof(*msg);
725 if (privsep_send(privsep_sock[1], msg, len) != 0)
728 if (privsep_recv(privsep_sock[1], &msg, &len) != 0)
736 if ((privkey = vmalloc(len - sizeof(*msg))) == NULL)
788 size_t len;
876 if (privsep_recv(privsep_sock[1], &msg, &len) != 0)
896 size_t len;
903 len = sizeof(*msg) + strlen(str) + 1 + sizeof(keylen);
904 if ((msg = racoon_malloc(len)) == NULL) {
909 bzero(msg, len);
911 msg->hdr.ac_len = len;
921 if (privsep_send(privsep_sock[1], msg, len) != 0)
924 if (privsep_recv(privsep_sock[1], &msg, &len) != 0)
932 if ((psk = vmalloc(len - sizeof(*msg))) == NULL)
951 size_t len;
957 len = sizeof(*msg) + strlen(usr) + 1 + strlen(pwd) + 1;
958 if ((msg = racoon_malloc(len)) == NULL) {
963 bzero(msg, len);
965 msg->hdr.ac_len = len;
975 if (privsep_send(privsep_sock[1], msg, len) != 0)
978 if (privsep_recv(privsep_sock[1], &msg, &len) != 0)
998 size_t len;
1006 len = sizeof(*msg)
1012 if ((msg = racoon_malloc(len)) == NULL) {
1017 bzero(msg, len);
1019 msg->hdr.ac_len = len;
1037 if (privsep_send(privsep_sock[1], msg, len) != 0)
1040 if (privsep_recv(privsep_sock[1], &msg, &len) != 0)
1127 size_t len;
1144 len = strlen(path);
1145 if (strncmp(path, rpath, len) != 0)
1171 size_t len;
1180 len = sizeof(*msg)
1185 if ((msg = racoon_malloc(len)) == NULL) {
1190 bzero(msg, len);
1192 msg->hdr.ac_len = len;
1205 if (privsep_send(privsep_sock[1], msg, len) != 0)
1208 if (privsep_recv(privsep_sock[1], &msg, &len) != 0)
1232 size_t len;
1239 len = sizeof(*msg)
1246 if ((msg = racoon_malloc(len)) == NULL) {
1251 bzero(msg, len);
1253 msg->hdr.ac_len = len;
1275 if (privsep_send(privsep_sock[1], msg, len) != 0)
1278 if (privsep_recv(privsep_sock[1], &msg, &len) != 0)
1299 size_t len;
1306 len = sizeof(*msg)
1310 if ((msg = racoon_malloc(len)) == NULL) {
1315 bzero(msg, len);
1317 msg->hdr.ac_len = len;
1327 if (privsep_send(privsep_sock[1], msg, len) != 0)
1330 if (privsep_recv(privsep_sock[1], &msg, &len) != 0)