Lines Matching refs:nh
116 static void validate_one_alg(const struct nlmsghdr *nh) in validate_one_alg() argument
118 const struct crypto_user_alg *alg = NLMSG_DATA(nh); in validate_one_alg()
120 size_t remaining = NLMSG_PAYLOAD(nh, sizeof(*alg)); in validate_one_alg()
136 const struct nlmsghdr *nh; in validate_alg_list() local
138 for (nh = buf; NLMSG_OK(nh, remaining); in validate_alg_list()
139 nh = NLMSG_NEXT(nh, remaining)) { in validate_alg_list()
140 if (nh->nlmsg_seq != ses.seq_num) { in validate_alg_list()
143 nh->nlmsg_type, nh->nlmsg_seq, ses.seq_num); in validate_alg_list()
145 if (nh->nlmsg_type == NLMSG_DONE) in validate_alg_list()
147 if (nh->nlmsg_type != CRYPTO_MSG_GETALG) { in validate_alg_list()
150 nh->nlmsg_type, nh->nlmsg_seq); in validate_alg_list()
152 validate_one_alg(nh); in validate_alg_list()
159 struct nlmsghdr nh = { in run() local
176 SAFE_NETLINK_SEND(ses.fd, &nh, &payload); in run()