diff options
author | Antenore Gatta <antenore@simbiosi.org> | 2019-04-04 16:50:24 +0300 |
---|---|---|
committer | Antenore Gatta <antenore@simbiosi.org> | 2019-04-04 16:50:24 +0300 |
commit | 7ead937d4ad932222eac90ac243c57266a724abd (patch) | |
tree | 0e0dd1b6262f7f278cbbd235c127663c00951534 /src/remmina_sodium.h | |
parent | 62b38b0aeecb9fc9f6ed1313f3561219742c95b9 (diff) |
Fixing sodium dependencies
Diffstat (limited to 'src/remmina_sodium.h')
-rw-r--r-- | src/remmina_sodium.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/remmina_sodium.h b/src/remmina_sodium.h index 5d7894904..afc9de5ff 100644 --- a/src/remmina_sodium.h +++ b/src/remmina_sodium.h @@ -36,7 +36,9 @@ G_BEGIN_DECLS -#if (SODIUM_LIBRARY_VERSION_MAJOR >= 9) && (SODIUM_LIBRARY_VERSION_MINOR >= 2) +#include <sodium.h> +#define SODIUM_VERSION_INT (SODIUM_LIBRARY_VERSION_MAJOR * 10000 + SODIUM_LIBRARY_VERSION_MINOR * 100) +#if SODIUM_VERSION_INT >= 90200 void remmina_sodium_init(void); gchar *remmina_sodium_pwhash(const gchar *pass); gchar *remmina_sodium_pwhash_str(const gchar *pass); |