diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-07-08 15:22:05 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-07-08 15:22:05 +0100 |
commit | c271eb36656a4ff88a9c8c1d59934949260275a3 (patch) | |
tree | 3dd586e38b5b37cfebc7c12b6ff6f434904167c7 /src/libcryptobox/keypair_private.h | |
parent | b266445f47dec06392a7e058f499325fa3c052b9 (diff) | |
download | rspamd-c271eb36656a4ff88a9c8c1d59934949260275a3.tar.gz rspamd-c271eb36656a4ff88a9c8c1d59934949260275a3.zip |
[Rework] Add C++ guards to all headers
Diffstat (limited to 'src/libcryptobox/keypair_private.h')
-rw-r--r-- | src/libcryptobox/keypair_private.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/libcryptobox/keypair_private.h b/src/libcryptobox/keypair_private.h index 98af52b4c..8d259faaa 100644 --- a/src/libcryptobox/keypair_private.h +++ b/src/libcryptobox/keypair_private.h @@ -20,6 +20,9 @@ #include "ref.h" #include "cryptobox.h" +#ifdef __cplusplus +extern "C" { +#endif /* * KEX cached data */ @@ -32,7 +35,7 @@ struct rspamd_cryptobox_nm { /* * Generic keypair */ -struct rspamd_cryptobox_keypair { +struct rspamd_cryptobox_keypair { guchar id[rspamd_cryptobox_HASHBYTES]; enum rspamd_cryptobox_keypair_type type; enum rspamd_cryptobox_mode alg; @@ -127,7 +130,13 @@ struct rspamd_cryptobox_pubkey_sig_25519 { }; void rspamd_cryptobox_nm_dtor (struct rspamd_cryptobox_nm *nm); + void rspamd_cryptobox_keypair_dtor (struct rspamd_cryptobox_keypair *kp); + void rspamd_cryptobox_pubkey_dtor (struct rspamd_cryptobox_pubkey *p); +#ifdef __cplusplus +} +#endif + #endif /* KEYPAIR_PRIVATE_H_ */ |