aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/librdns/curve.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-07-08 17:41:31 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-07-08 17:41:31 +0100
commit9026da71bb262886a275a3e24b1db51ab3395240 (patch)
tree6050f1a73472b3251b9fd18db7e8c96a7cca276c /contrib/librdns/curve.c
parentc271eb36656a4ff88a9c8c1d59934949260275a3 (diff)
downloadrspamd-9026da71bb262886a275a3e24b1db51ab3395240.tar.gz
rspamd-9026da71bb262886a275a3e24b1db51ab3395240.zip
[Rework] Use libsodium instead of hand crafted crypto implementations
Diffstat (limited to 'contrib/librdns/curve.c')
-rw-r--r--contrib/librdns/curve.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/contrib/librdns/curve.c b/contrib/librdns/curve.c
index f53d078b2..c6479c31e 100644
--- a/contrib/librdns/curve.c
+++ b/contrib/librdns/curve.c
@@ -446,8 +446,13 @@ rdns_curve_dtor (struct rdns_resolver *resolver, void *plugin_data)
#include "cryptobox.h"
+
+#ifndef crypto_box_ZEROBYTES
#define crypto_box_ZEROBYTES 32
+#endif
+#ifndef crypto_box_BOXZEROBYTES
#define crypto_box_BOXZEROBYTES 16
+#endif
ssize_t rdns_curve_send (struct rdns_request *req, void *plugin_data,
struct sockaddr *saddr, socklen_t slen);