Lines Matching refs:ap
251 struct auth *ap, *res = NULL;
258 if ((ap = ifp->int_auth) == NULL)
261 for (i = 0; i < MAX_AUTH_KEYS; i++, ap++) {
263 if (ap->type == RIP_AUTH_NONE)
267 if ((ulong_t)ap->start > (ulong_t)clk.tv_sec)
270 if ((ulong_t)ap->end < (ulong_t)clk.tv_sec) {
273 (((ulong_t)ap->end > (ulong_t)res->end)) &&
275 res = ap;
280 if (res == NULL || (ulong_t)res->end < (ulong_t)ap->end)
281 res = ap;
288 clr_ws_buf(struct ws_buf *wb, struct auth *ap)
299 if (ap == NULL)
303 if (ap->type == RIP_AUTH_PW) {
306 (void) memcpy(na->au.au_pw, ap->key, sizeof (na->au.au_pw));
309 } else if (ap->type == RIP_AUTH_MD5) {
312 na->au.a_md5.md5_keyid = ap->keyid;
322 end_md5_auth(struct ws_buf *wb, struct auth *ap)
337 MD5Update(&md5_ctx, ap->key, RIP_AUTH_MD5_LEN);