aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcryptobox
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-02-06 01:38:33 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-02-06 01:38:33 +0000
commit09aec05782a08330d252e7f0aa9bd6b9fb5d485e (patch)
tree23b5d0e24834c1aff3674c4eb021adf335348a19 /src/libcryptobox
parentc1b90ddc7dd856671c9585368b2f34b4548ca690 (diff)
downloadrspamd-09aec05782a08330d252e7f0aa9bd6b9fb5d485e.tar.gz
rspamd-09aec05782a08330d252e7f0aa9bd6b9fb5d485e.zip
Fix the rest sources
Diffstat (limited to 'src/libcryptobox')
-rw-r--r--src/libcryptobox/keypair.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libcryptobox/keypair.c b/src/libcryptobox/keypair.c
index c56daafa9..936ec219f 100644
--- a/src/libcryptobox/keypair.c
+++ b/src/libcryptobox/keypair.c
@@ -245,7 +245,7 @@ rspamd_keypair_new (enum rspamd_cryptobox_keypair_type type,
struct rspamd_cryptobox_keypair*
-rspamd__keypair_ref (struct rspamd_cryptobox_keypair *kp)
+rspamd_keypair_ref (struct rspamd_cryptobox_keypair *kp)
{
REF_RETAIN (kp);
return kp;
@@ -340,7 +340,7 @@ rspamd_pubkey_from_base32 (const gchar *b32,
pk = rspamd_cryptobox_pubkey_alloc (type, alg);
pk_data = rspamd_cryptobox_pubkey_pk (pk, &pklen);
- memcpy (decoded, pk_data, pklen);
+ memcpy (pk_data, decoded, pklen);
g_free (decoded);
rspamd_cryptobox_hash (pk->id, pk_data, pklen, NULL, 0);
pk->alg = alg;
@@ -386,7 +386,7 @@ rspamd_pubkey_from_hex (const gchar *hex,
pk = rspamd_cryptobox_pubkey_alloc (type, alg);
pk_data = rspamd_cryptobox_pubkey_pk (pk, &pklen);
- memcpy (decoded, pk_data, pklen);
+ memcpy (pk_data, decoded, pklen);
g_free (decoded);
rspamd_cryptobox_hash (pk->id, pk_data, pklen, NULL, 0);
pk->alg = alg;
@@ -418,7 +418,7 @@ rspamd_pubkey_from_bin (const guchar *raw,
pk = rspamd_cryptobox_pubkey_alloc (type, alg);
pk_data = rspamd_cryptobox_pubkey_pk (pk, &pklen);
- memcpy (raw, pk_data, pklen);
+ memcpy (pk_data, raw, pklen);
rspamd_cryptobox_hash (pk->id, pk_data, pklen, NULL, 0);
pk->alg = alg;
pk->type = type;