From 0ef6505bca74bc57e6bb7346189d16ccf6edeab2 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 26 Jan 2017 15:50:03 +0000 Subject: [Minor] Constify arguments --- src/libcryptobox/keypair.c | 2 +- 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); /** -- cgit v1.2.3