src/contrib/ntp/libntp/authkeys.c
/*
 * authistrusted - determine whether a key is trusted
 */
determine whether a key is trusted
determine whether a key is trusted
int
authistrusted(
	keyid_t		id
	)
{
	symkey *	sk;
	if (id == cache_keyid)
		return !!(KEY_TRUSTED & cache_flags);
	authkeyuncached++;
	sk = auth_findkey(id);
	if (sk == NULL || !(KEY_TRUSTED & sk->flags)) {
		authkeynotfound++;
		return FALSE;
	}
	return TRUE;
}
int authistrusted ( keyid_t id ) { symkey * sk ; if ( id == cache_keyid ) return ! ! ( KEY_TRUSTED & cache_flags ) ; authkeyuncached ++ ; sk = auth_findkey ( id ) ; if ( sk == NULL || ! ( KEY_TRUSTED & sk -> flags ) ) { authkeynotfound ++ ; return FALSE ; } return TRUE ; }
authistrusted - determine whether a key is trusted
authistrusted - determine whether a key is trusted