aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/cookie.c
diff options
context:
space:
mode:
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.c
parentnetlink: do not stuff index into nla type (diff)
downloadwireguard-monolithic-historical-06b12364716b4f7b8f561877b90dc43619f30874.tar.xz
wireguard-monolithic-historical-06b12364716b4f7b8f561877b90dc43619f30874.zip
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.c')
-rw-r--r--src/cookie.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/cookie.c b/src/cookie.c
index 3ac05e6..2aa4cae 100644
--- a/src/cookie.c
+++ b/src/cookie.c
@@ -17,7 +17,7 @@
#include <crypto/algapi.h>
void wg_cookie_checker_init(struct cookie_checker *checker,
- struct wireguard_device *wg)
+ struct wg_device *wg)
{
init_rwsem(&checker->secret_lock);
checker->secret_birthdate = ktime_get_boot_fast_ns();
@@ -58,7 +58,7 @@ 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)
{
precompute_key(peer->latest_cookie.cookie_decryption_key,
peer->handshake.remote_static, cookie_key_label);
@@ -154,7 +154,7 @@ out:
}
void wg_cookie_add_mac_to_packet(void *message, size_t len,
- struct wireguard_peer *peer)
+ struct wg_peer *peer)
{
struct message_macs *macs = (struct message_macs *)
((u8 *)message + len - sizeof(*macs));
@@ -196,9 +196,9 @@ void wg_cookie_message_create(struct message_handshake_cookie *dst,
}
void wg_cookie_message_consume(struct message_handshake_cookie *src,
- struct wireguard_device *wg)
+ struct wg_device *wg)
{
- struct wireguard_peer *peer = NULL;
+ struct wg_peer *peer = NULL;
u8 cookie[COOKIE_LEN];
bool ret;