aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcryptobox/keypair.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-02-05 17:27:24 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-02-05 17:27:24 +0000
commit094529b9cd48a56f1cbd154bb626795ac865388e (patch)
tree7311e83271f17a6f3b6f9c327be183e00ab5231c /src/libcryptobox/keypair.h
parent40d7391a2a7a2568ddf5c9fb526a39616b75ecee (diff)
downloadrspamd-094529b9cd48a56f1cbd154bb626795ac865388e.tar.gz
rspamd-094529b9cd48a56f1cbd154bb626795ac865388e.zip
Implement keypairs creation
Diffstat (limited to 'src/libcryptobox/keypair.h')
-rw-r--r--src/libcryptobox/keypair.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/libcryptobox/keypair.h b/src/libcryptobox/keypair.h
index fb4aa9d9c..4208cf372 100644
--- a/src/libcryptobox/keypair.h
+++ b/src/libcryptobox/keypair.h
@@ -61,4 +61,18 @@ struct rspamd_cryptobox_keypair* rspamd_keypair_ref (
*/
void rspamd_keypair_unref (struct rspamd_cryptobox_keypair *kp);
+/**
+ * Increase refcount for the specific pubkey
+ * @param kp
+ * @return
+ */
+struct rspamd_cryptobox_pubkey* rspamd_pubkey_ref (
+ struct rspamd_cryptobox_pubkey *kp);
+
+/**
+ * Decrease refcount for the specific pubkey (or destroy when refcount == 0)
+ * @param kp
+ */
+void rspamd_pubkey_unref (struct rspamd_cryptobox_pubkey *kp);
+
#endif /* SRC_LIBCRYPTOBOX_KEYPAIR_H_ */