path: root/src/cookie.h
diff options
authorJason A. Donenfeld <Jason@zx2c4.com>2018-10-08 03:36:20 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2018-10-08 03:38:12 +0200
commit06b12364716b4f7b8f561877b90dc43619f30874 (patch)
tree8f5f5e066d82993134bf47490c6f820a67164410 /src/cookie.h
parentnetlink: do not stuff index into nla type (diff)
global: rename struct wireguard_ to struct wg_
This required a bit of pruning of our christmas trees. Suggested-by: Jiri Pirko <jiri@resnulli.us>
Diffstat (limited to 'src/cookie.h')
1 files changed, 6 insertions, 6 deletions
diff --git a/src/cookie.h b/src/cookie.h
index 409093f..856ede8 100644
--- a/src/cookie.h
+++ b/src/cookie.h
@@ -9,7 +9,7 @@
#include "messages.h"
#include <linux/rwsem.h>
-struct wireguard_peer;
+struct wg_peer;
struct cookie_checker {
u8 secret[NOISE_HASH_LEN];
@@ -17,7 +17,7 @@ struct cookie_checker {
u8 message_mac1_key[NOISE_SYMMETRIC_KEY_LEN];
u64 secret_birthdate;
struct rw_semaphore secret_lock;
- struct wireguard_device *device;
+ struct wg_device *device;
struct cookie {
@@ -39,21 +39,21 @@ enum cookie_mac_state {
void wg_cookie_checker_init(struct cookie_checker *checker,
- struct wireguard_device *wg);
+ struct wg_device *wg);
void wg_cookie_checker_precompute_device_keys(struct cookie_checker *checker);
-void wg_cookie_checker_precompute_peer_keys(struct wireguard_peer *peer);
+void wg_cookie_checker_precompute_peer_keys(struct wg_peer *peer);
void wg_cookie_init(struct cookie *cookie);
enum cookie_mac_state wg_cookie_validate_packet(struct cookie_checker *checker,
struct sk_buff *skb,
bool check_cookie);
void wg_cookie_add_mac_to_packet(void *message, size_t len,
- struct wireguard_peer *peer);
+ struct wg_peer *peer);
void wg_cookie_message_create(struct message_handshake_cookie *src,
struct sk_buff *skb, __le32 index,
struct cookie_checker *checker);
void wg_cookie_message_consume(struct message_handshake_cookie *src,
- struct wireguard_device *wg);
+ struct wg_device *wg);
#endif /* _WG_COOKIE_H */