summaryrefslogtreecommitdiff
path: root/core/net_crypto.h
diff options
context:
space:
mode:
authorMaxim Biro <nurupo.contributions@gmail.com>2013-07-22 18:06:24 -0400
committerMaxim Biro <nurupo.contributions@gmail.com>2013-07-22 18:06:24 -0400
commit52f3b1553fec56a7d558a013cef5e6afd0ed5aaf (patch)
treeff7a31673c7628e08528d81fa554fb694d7389ff /core/net_crypto.h
parentd0b4fa56a3f8334cfffce45a9eadfcd8143f7944 (diff)
Added support of linkage with C++ code
Diffstat (limited to 'core/net_crypto.h')
-rw-r--r--core/net_crypto.h7
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
30extern "C" {
31#endif
32
29/* Our public key. */ 33/* Our public key. */
30extern uint8_t self_public_key[crypto_box_PUBLICKEYBYTES]; 34extern uint8_t self_public_key[crypto_box_PUBLICKEYBYTES];
31extern uint8_t self_secret_key[crypto_box_SECRETKEYBYTES]; 35extern uint8_t self_secret_key[crypto_box_SECRETKEYBYTES];
@@ -129,5 +133,8 @@ void initNetCrypto();
129/* main loop */ 133/* main loop */
130void doNetCrypto(); 134void doNetCrypto();
131 135
136#ifdef __cplusplus
137}
138#endif
132 139
133#endif 140#endif