src/contrib/ntp/libntp/authkeys.c
/*
 * auth_findkey - find a key in the hash table
 */
find a key in the hash table
find a key in the hash table
struct savekey *
auth_findkey(
	keyid_t		id
	)
{
	symkey *	sk;
	for (sk = key_hash[KEYHASH(id)]; sk != NULL; sk = sk->hlink)
		if (id == sk->keyid)
			return sk;
	return NULL;
}
struct savekey * auth_findkey ( keyid_t id ) { symkey * sk ; for ( sk = key_hash [ KEYHASH ( id ) ] ; sk != NULL ; sk = sk -> hlink ) if ( id == sk -> keyid ) return sk ; return NULL ; }
auth_findkey - find a key in the hash table
auth_findkey - find a key in the hash table