diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-01-29 09:53:19 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-01-29 09:53:19 +0000 |
commit | e273f67fdfd1cfeb4b1db7d6d8160b9b0c90df98 (patch) | |
tree | 0165cadf4043550470ee526d812df1517afbcd7a /src/libcryptobox/curve25519 | |
parent | 6a4752670d5cdd251ae68539ffcf1a99c67aabad (diff) | |
download | rspamd-e273f67fdfd1cfeb4b1db7d6d8160b9b0c90df98.tar.gz rspamd-e273f67fdfd1cfeb4b1db7d6d8160b9b0c90df98.zip |
Output configuration of libcryptobox
Diffstat (limited to 'src/libcryptobox/curve25519')
-rw-r--r-- | src/libcryptobox/curve25519/curve25519.c | 5 | ||||
-rw-r--r-- | src/libcryptobox/curve25519/curve25519.h | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/src/libcryptobox/curve25519/curve25519.c b/src/libcryptobox/curve25519/curve25519.c index 220a1da13..62a253069 100644 --- a/src/libcryptobox/curve25519/curve25519.c +++ b/src/libcryptobox/curve25519/curve25519.c @@ -119,7 +119,7 @@ curve25519_test_impl (const curve25519_impl_t *impl) return TRUE; } -void +const char* curve25519_load (void) { guint i; @@ -132,7 +132,10 @@ curve25519_load (void) } } } + g_assert (curve25519_test_impl (curve25519_opt)); + + return curve25519_opt->desc; } int diff --git a/src/libcryptobox/curve25519/curve25519.h b/src/libcryptobox/curve25519/curve25519.h index 8ea440b40..8b404f5c6 100644 --- a/src/libcryptobox/curve25519/curve25519.h +++ b/src/libcryptobox/curve25519/curve25519.h @@ -8,6 +8,6 @@ static const guchar curve25519_basepoint[32] = {9}; int curve25519 (guchar *mypublic, const guchar *secret, const guchar *basepoint); /* Call for optimized implementation of scalarmult if needed */ int curve25519_base (guchar *mypublic, const guchar *secret); -void curve25519_load (void); +const char* curve25519_load (void); #endif |