Lines Matching refs:hdr
363 reply->hdr.ac_cmd = combuf->hdr.ac_cmd;
364 reply->hdr.ac_len = sizeof(*reply);
366 switch(combuf->hdr.ac_cmd) {
393 reply->hdr.ac_errno = errno;
398 reply->hdr.ac_len = sizeof(*reply) + privkey->l;
399 reply = racoon_realloc(reply, reply->hdr.ac_len);
523 reply->hdr.ac_errno = errno;
528 reply->hdr.ac_len = sizeof(*reply) + psk->l;
529 reply = racoon_realloc(reply, reply->hdr.ac_len);
570 reply->hdr.ac_errno = errno;
630 reply->hdr.ac_errno = errno;
684 reply->hdr.ac_errno = errno;
723 reply->hdr.ac_errno = EINVAL;
725 reply->hdr.ac_errno = errno;
745 reply->hdr.ac_errno = EINVAL;
747 reply->hdr.ac_errno = errno;
782 reply->hdr.ac_errno = EINVAL;
784 reply->hdr.ac_errno = errno;
827 reply->hdr.ac_errno = EINVAL;
829 reply->hdr.ac_errno = errno;
857 reply->hdr.ac_errno = 0;
867 combuf->hdr.ac_cmd);
874 reply, reply->hdr.ac_len) != 0) {
907 msg->hdr.ac_cmd = PRIVSEP_EAY_GET_PKCS1PRIVKEY;
908 msg->hdr.ac_len = len;
918 if (msg->hdr.ac_errno != 0) {
919 errno = msg->hdr.ac_errno;
957 msg->hdr.ac_cmd = PRIVSEP_SCRIPT_EXEC;
958 msg->hdr.ac_len = sizeof(*msg);
988 msg->hdr.ac_len += msg->bufs.buflen[count++];
991 msg->hdr.ac_len += msg->bufs.buflen[count++];
995 msg->hdr.ac_len += msg->bufs.buflen[count++];
999 msg->hdr.ac_len += msg->bufs.buflen[count++];
1001 if ((msg = racoon_realloc(msg, msg->hdr.ac_len)) == NULL) {
1029 if (privsep_send(privsep_sock[1], msg, msg->hdr.ac_len) != 0)
1035 if (msg->hdr.ac_errno != 0) {
1036 errno = msg->hdr.ac_errno;
1066 msg->hdr.ac_cmd = PRIVSEP_GETPSK;
1067 msg->hdr.ac_len = len;
1083 if (msg->hdr.ac_errno != 0) {
1084 errno = msg->hdr.ac_errno;
1128 msg->hdr.ac_cmd = PRIVSEP_SOCKET;
1129 msg->hdr.ac_len = len;
1150 if (msg->hdr.ac_errno != 0) {
1151 errno = msg->hdr.ac_errno;
1197 msg->hdr.ac_cmd = PRIVSEP_BIND;
1198 msg->hdr.ac_len = len;
1223 if (msg->hdr.ac_errno != 0) {
1224 errno = msg->hdr.ac_errno;
1275 msg->hdr.ac_cmd = PRIVSEP_SETSOCKOPTS;
1276 msg->hdr.ac_len = len;
1305 if (msg->hdr.ac_errno != 0) {
1306 errno = msg->hdr.ac_errno;
1338 msg->hdr.ac_cmd = PRIVSEP_XAUTH_LOGIN_SYSTEM;
1339 msg->hdr.ac_len = len;
1356 if (msg->hdr.ac_errno != 0) {
1393 msg->hdr.ac_cmd = PRIVSEP_ACCOUNTING_SYSTEM;
1394 msg->hdr.ac_len = len;
1419 if (msg->hdr.ac_errno != 0) {
1420 errno = msg->hdr.ac_errno;
1647 msg->hdr.ac_cmd = PRIVSEP_ACCOUNTING_PAM;
1648 msg->hdr.ac_len = len;
1668 if (msg->hdr.ac_errno != 0) {
1669 errno = msg->hdr.ac_errno;
1709 msg->hdr.ac_cmd = PRIVSEP_XAUTH_LOGIN_PAM;
1710 msg->hdr.ac_len = len;
1739 if (msg->hdr.ac_errno != 0) {
1740 errno = msg->hdr.ac_errno;
1774 msg->hdr.ac_cmd = PRIVSEP_CLEANUP_PAM;
1775 msg->hdr.ac_len = len;
1792 if (msg->hdr.ac_errno != 0)
1793 errno = msg->hdr.ac_errno;