diff options
Diffstat (limited to 'core/net_crypto.h')
-rw-r--r-- | core/net_crypto.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/net_crypto.h b/core/net_crypto.h index 5a282002..b497f1fb 100644 --- a/core/net_crypto.h +++ b/core/net_crypto.h | |||
@@ -26,6 +26,10 @@ | |||
26 | 26 | ||
27 | #include "Lossless_UDP.h" | 27 | #include "Lossless_UDP.h" |
28 | 28 | ||
29 | #ifdef __cplusplus | ||
30 | extern "C" { | ||
31 | #endif | ||
32 | |||
29 | /* Our public key. */ | 33 | /* Our public key. */ |
30 | extern uint8_t self_public_key[crypto_box_PUBLICKEYBYTES]; | 34 | extern uint8_t self_public_key[crypto_box_PUBLICKEYBYTES]; |
31 | extern uint8_t self_secret_key[crypto_box_SECRETKEYBYTES]; | 35 | extern uint8_t self_secret_key[crypto_box_SECRETKEYBYTES]; |
@@ -129,5 +133,8 @@ void initNetCrypto(); | |||
129 | /* main loop */ | 133 | /* main loop */ |
130 | void doNetCrypto(); | 134 | void doNetCrypto(); |
131 | 135 | ||
136 | #ifdef __cplusplus | ||
137 | } | ||
138 | #endif | ||
132 | 139 | ||
133 | #endif | 140 | #endif |