aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/dkim.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 /src/libserver/dkim.c
parentc271eb36656a4ff88a9c8c1d59934949260275a3 (diff)
downloadrspamd-9026da71bb262886a275a3e24b1db51ab3395240.tar.gz
rspamd-9026da71bb262886a275a3e24b1db51ab3395240.zip
[Rework] Use libsodium instead of hand crafted crypto implementations
Diffstat (limited to 'src/libserver/dkim.c')
-rw-r--r--src/libserver/dkim.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libserver/dkim.c b/src/libserver/dkim.c
index 2f1bef701..9386c5cdc 100644
--- a/src/libserver/dkim.c
+++ b/src/libserver/dkim.c
@@ -21,7 +21,6 @@
#include "utlist.h"
#include "unix-std.h"
#include "mempool_vars_internal.h"
-#include "libcryptobox/ed25519/ed25519.h"
#include <openssl/evp.h>
#include <openssl/rsa.h>
@@ -2763,7 +2762,7 @@ rspamd_dkim_sign_key_load (const gchar *key, gsize len,
nkey->type = RSPAMD_DKIM_KEY_EDDSA;
nkey->key.key_eddsa = g_malloc (
rspamd_cryptobox_sk_sig_bytes (RSPAMD_CRYPTOBOX_MODE_25519));
- ed25519_seed_keypair (pk, nkey->key.key_eddsa, (char *) key);
+ crypto_sign_ed25519_seed_keypair (pk, nkey->key.key_eddsa, key);
nkey->keylen = rspamd_cryptobox_sk_sig_bytes (RSPAMD_CRYPTOBOX_MODE_25519);
}
else {