aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/contrib/examples/embeddable-wg-library/wireguard.h
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-02-21 19:19:50 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2018-03-02 16:42:29 +0100
commitec65415b231bc9a0fd5c72ab16d98153ae426177 (patch)
treeea802b4e2bac3e0174354e9938ef882fe76f9c77 /contrib/examples/embeddable-wg-library/wireguard.h
parentallowedips: fix comment style (diff)
downloadwireguard-monolithic-historical-ec65415b231bc9a0fd5c72ab16d98153ae426177.tar.xz
wireguard-monolithic-historical-ec65415b231bc9a0fd5c72ab16d98153ae426177.zip
contrib: embedded-wg-library: add key generation functions
Diffstat (limited to '')
-rw-r--r--contrib/examples/embeddable-wg-library/wireguard.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/examples/embeddable-wg-library/wireguard.h b/contrib/examples/embeddable-wg-library/wireguard.h
index 350de7d..53d9d5d 100644
--- a/contrib/examples/embeddable-wg-library/wireguard.h
+++ b/contrib/examples/embeddable-wg-library/wireguard.h
@@ -90,5 +90,8 @@ char *wg_list_device_names(void); /* first\0second\0third\0forth\0last\0\0 */
void wg_key_to_base64(wg_key_b64_string base64, const wg_key key);
int wg_key_from_base64(wg_key key, const wg_key_b64_string base64);
bool wg_key_is_zero(const wg_key key);
+void wg_generate_public_key(wg_key public_key, const wg_key private_key);
+void wg_generate_private_key(wg_key private_key);
+void wg_generate_preshared_key(wg_key preshared_key);
#endif