aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcryptobox/siphash
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-01-29 09:53:19 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-01-29 09:53:19 +0000
commite273f67fdfd1cfeb4b1db7d6d8160b9b0c90df98 (patch)
tree0165cadf4043550470ee526d812df1517afbcd7a /src/libcryptobox/siphash
parent6a4752670d5cdd251ae68539ffcf1a99c67aabad (diff)
downloadrspamd-e273f67fdfd1cfeb4b1db7d6d8160b9b0c90df98.tar.gz
rspamd-e273f67fdfd1cfeb4b1db7d6d8160b9b0c90df98.zip
Output configuration of libcryptobox
Diffstat (limited to 'src/libcryptobox/siphash')
-rw-r--r--src/libcryptobox/siphash/siphash.c4
-rw-r--r--src/libcryptobox/siphash/siphash.h2
2 files changed, 4 insertions, 2 deletions
diff --git a/src/libcryptobox/siphash/siphash.c b/src/libcryptobox/siphash/siphash.c
index 32907292a..43effe409 100644
--- a/src/libcryptobox/siphash/siphash.c
+++ b/src/libcryptobox/siphash/siphash.c
@@ -61,7 +61,7 @@ static const siphash_impl_t siphash_list[] = {
static const siphash_impl_t *siphash_opt = &siphash_list[0];
-void
+const char *
siphash_load(void)
{
guint i;
@@ -74,6 +74,8 @@ siphash_load(void)
}
}
}
+
+ return siphash_opt->desc;
}
void siphash24 (unsigned char *out, const unsigned char *in,
diff --git a/src/libcryptobox/siphash/siphash.h b/src/libcryptobox/siphash/siphash.h
index 667f3919f..d4ec5af4a 100644
--- a/src/libcryptobox/siphash/siphash.h
+++ b/src/libcryptobox/siphash/siphash.h
@@ -29,7 +29,7 @@
extern "C"
{
#endif
-void siphash_load (void);
+const char* siphash_load (void);
void siphash24 (unsigned char *out,
const unsigned char *in,
unsigned long long inlen,