From 9026da71bb262886a275a3e24b1db51ab3395240 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 8 Jul 2019 17:41:31 +0100 Subject: [Rework] Use libsodium instead of hand crafted crypto implementations --- contrib/librdns/curve.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'contrib/librdns/curve.c') 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); -- cgit v1.2.3