diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-01-26 15:50:03 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-01-26 15:50:43 +0000 |
commit | 0ef6505bca74bc57e6bb7346189d16ccf6edeab2 (patch) | |
tree | 0dcab2fc4f3f1d35a5c0d31723632dfbd2f4cf72 /src/libcryptobox | |
parent | 3e1e0ffe8fe4b054b61008a7c6e93470ba578224 (diff) | |
download | rspamd-0ef6505bca74bc57e6bb7346189d16ccf6edeab2.tar.gz rspamd-0ef6505bca74bc57e6bb7346189d16ccf6edeab2.zip |
[Minor] Constify arguments
Diffstat (limited to 'src/libcryptobox')
-rw-r--r-- | src/libcryptobox/keypair.c | 2 | ||||
-rw-r--r-- | src/libcryptobox/keypair.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/libcryptobox/keypair.c b/src/libcryptobox/keypair.c index 355654ffc..98401e10f 100644 --- a/src/libcryptobox/keypair.c +++ b/src/libcryptobox/keypair.c @@ -854,7 +854,7 @@ rspamd_keypair_sign (struct rspamd_cryptobox_keypair *kp, gboolean rspamd_keypair_verify (struct rspamd_cryptobox_pubkey *pk, - const void *data, gsize len, guchar *sig, gsize siglen, + const void *data, gsize len, const guchar *sig, gsize siglen, GError **err) { guint pklen; diff --git a/src/libcryptobox/keypair.h b/src/libcryptobox/keypair.h index b50bc84db..b24ecc9aa 100644 --- a/src/libcryptobox/keypair.h +++ b/src/libcryptobox/keypair.h @@ -258,7 +258,7 @@ gboolean rspamd_keypair_sign (struct rspamd_cryptobox_keypair *kp, * @return TRUE if signature is valid */ gboolean rspamd_keypair_verify (struct rspamd_cryptobox_pubkey *pk, - const void *data, gsize len, guchar *sig, gsize siglen, + const void *data, gsize len, const guchar *sig, gsize siglen, GError **err); /** |