Lines Matching refs:secretid
112 uint32_t secretid; in dhcp_auth_validate() local
181 secretid = 0; in dhcp_auth_validate()
184 if (dlen < sizeof(secretid) + sizeof(hmac)) { in dhcp_auth_validate()
188 memcpy(&secretid, d, sizeof(secretid)); in dhcp_auth_validate()
189 d += sizeof(secretid); in dhcp_auth_validate()
190 dlen -= sizeof(secretid); in dhcp_auth_validate()
193 if (dlen < sizeof(secretid) + sizeof(hmac)) { in dhcp_auth_validate()
197 realm_len = dlen - (sizeof(secretid) + sizeof(hmac)); in dhcp_auth_validate()
203 memcpy(&secretid, d, sizeof(secretid)); in dhcp_auth_validate()
204 d += sizeof(secretid); in dhcp_auth_validate()
205 dlen -= sizeof(secretid); in dhcp_auth_validate()
230 state->reconf->secretid = 0; in dhcp_auth_validate()
273 secretid = ntohl(secretid); in dhcp_auth_validate()
275 if (t->secretid == secretid && in dhcp_auth_validate()
297 (state->token->secretid != t->secretid || in dhcp_auth_validate()
352 state->token->secretid = t->secretid; in dhcp_auth_validate()
483 uint32_t giaddr, secretid; in dhcp_auth_encode() local
487 if (t->secretid == 0 && in dhcp_auth_encode()
553 dlen += sizeof(t->secretid) + sizeof(hmac); in dhcp_auth_encode()
626 if (dlen < sizeof(t->secretid)) { in dhcp_auth_encode()
630 secretid = htonl(t->secretid); in dhcp_auth_encode()
631 memcpy(data, &secretid, sizeof(secretid)); in dhcp_auth_encode()
632 data += sizeof(secretid); in dhcp_auth_encode()
633 dlen -= sizeof(secretid); in dhcp_auth_encode()