Add crypto backend for signal-protocol

This commit is contained in:
Paul Fariello
2019-02-19 19:18:15 +01:40
parent 4a5b672f95
commit bfbc8edcad
6 changed files with 317 additions and 3 deletions

View File

@@ -275,6 +275,14 @@ if test "x$enable_omemo" != xno; then
[AS_IF([test "x$enable_omemo" = xyes],
[AC_MSG_ERROR([libsignal-protocol-c is required for omemo support])],
[AC_MSG_NOTICE([libsignal-protocol-c not found, omemo support not enabled])])])
AC_CHECK_LIB([sodium], [sodium_init],
[AM_CONDITIONAL([BUILD_OMEMO], [true])
AC_DEFINE([HAVE_LIBSIGNAL_PROTOCOL], [1], [Have omemo]),
LIBS="-lsodium $LIBS"],
[AS_IF([test "x$enable_omemo" = xyes],
[AC_MSG_ERROR([libsodium is required for omemo support])],
[AC_MSG_NOTICE([libsodium not found, omemo support not enabled])])])
fi
AS_IF([test "x$with_themes" = xno],