diff options
Diffstat (limited to 'src/hashtables.h')
-rw-r--r-- | src/hashtables.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/hashtables.h b/src/hashtables.h index 5a87a72..fd3ff8b 100644 --- a/src/hashtables.h +++ b/src/hashtables.h @@ -13,18 +13,18 @@ struct wireguard_peer; struct pubkey_hashtable { DECLARE_HASHTABLE(hashtable, 8); - uint8_t key[SIPHASH24_KEY_LEN]; + u8 key[SIPHASH24_KEY_LEN]; struct mutex lock; }; void pubkey_hashtable_init(struct pubkey_hashtable *table); void pubkey_hashtable_add(struct pubkey_hashtable *table, struct wireguard_peer *peer); void pubkey_hashtable_remove(struct pubkey_hashtable *table, struct wireguard_peer *peer); -struct wireguard_peer *pubkey_hashtable_lookup(struct pubkey_hashtable *table, const uint8_t pubkey[NOISE_PUBLIC_KEY_LEN]); +struct wireguard_peer *pubkey_hashtable_lookup(struct pubkey_hashtable *table, const u8 pubkey[NOISE_PUBLIC_KEY_LEN]); struct index_hashtable { DECLARE_HASHTABLE(hashtable, 10); - uint8_t key[SIPHASH24_KEY_LEN]; + u8 key[SIPHASH24_KEY_LEN]; spinlock_t lock; }; |