FreeBSD/contrib/ntp/libntp/authkeys.c
/*
 * auth_agekeys - delete keys whose lifetimes have expired
 */
delete keys whose lifetimes have expired
delete keys whose lifetimes have expired
void
auth_agekeys(void)
{
	symkey *	sk;
	ITER_DLIST_BEGIN(key_listhead, sk, llink, symkey)
		if (sk->lifetime > 0 && current_time > sk->lifetime) {
			freesymkey(sk);
			authkeyexpired++;
		}
	ITER_DLIST_END()
	DPRINTF(1, ("auth_agekeys: at %lu keys %lu expired %lu\n",
		    current_time, authnumkeys, authkeyexpired));
}
void auth_agekeys ( void ) { symkey * sk ; ITER_DLIST_BEGIN ( key_listhead , sk , llink , symkey ) if ( sk -> lifetime > 0 && current_time > sk -> lifetime ) { freesymkey ( sk ) ; authkeyexpired ++ ; } ITER_DLIST_END ( ) DPRINTF ( 1 , ( " \n " , current_time , authnumkeys , authkeyexpired ) ) ; }
auth_agekeys - delete keys whose lifetimes have expired
auth_agekeys - delete keys whose lifetimes have expired