xref: /freebsd/contrib/ntp/include/ntp_keyacc.h (revision af6a5351a1fdb1130f18be6c782c4d48916eb971)
1 /*
2  *  ntp_keyacc.h - key access stuff
3  */
4 #ifndef NTP_KEYACC_H
5 #define NTP_KEYACC_H
6 
7 typedef struct keyaccess KeyAccT;
8 struct keyaccess {
9 	KeyAccT *	next;
10 	sockaddr_u	addr;
11 };
12 
13 extern KeyAccT* keyacc_new_push(KeyAccT *head, const sockaddr_u *addr);
14 extern KeyAccT* keyacc_pop_free(KeyAccT *head);
15 extern KeyAccT* keyacc_all_free(KeyAccT *head);
16 extern int      keyacc_contains(const KeyAccT *head, const sockaddr_u *addr,
17 				int res_on_empty_list);
18 
19 #endif	/* NTP_KEYACC_H */
20