Lines Matching refs:realm_len
114 size_t realm_len; in dhcp_auth_validate() local
175 realm_len = 0; in dhcp_auth_validate()
197 realm_len = dlen - (sizeof(secretid) + sizeof(hmac)); in dhcp_auth_validate()
198 if (realm_len) { in dhcp_auth_validate()
200 d += realm_len; in dhcp_auth_validate()
201 dlen -= realm_len; in dhcp_auth_validate()
233 state->reconf->realm_len = 0; in dhcp_auth_validate()
276 t->realm_len == realm_len && in dhcp_auth_validate()
277 (t->realm_len == 0 || in dhcp_auth_validate()
278 memcmp(t->realm, realm, t->realm_len) == 0)) in dhcp_auth_validate()
298 state->token->realm_len != t->realm_len || in dhcp_auth_validate()
299 memcmp(state->token->realm, t->realm, t->realm_len))) in dhcp_auth_validate()
362 if (t->realm_len) { in dhcp_auth_validate()
363 state->token->realm = malloc(t->realm_len); in dhcp_auth_validate()
365 state->token->realm_len = t->realm_len; in dhcp_auth_validate()
367 t->realm_len); in dhcp_auth_validate()
376 state->token->realm_len = 0; in dhcp_auth_validate()
488 t->realm_len == 0) in dhcp_auth_encode()
549 dlen += t->realm_len; in dhcp_auth_encode()
613 if (dlen < t->realm_len) { in dhcp_auth_encode()
617 memcpy(data, t->realm, t->realm_len); in dhcp_auth_encode()
618 data += t->realm_len; in dhcp_auth_encode()
619 dlen -= t->realm_len; in dhcp_auth_encode()