mirror of
https://github.com/matrix-construct/construct
synced 2024-11-25 16:22:35 +01:00
Add SHA256/SHA512 support to crypt.c and fix up the MD5 component (it seemed to have been broken). In addition, unconditionally use the libratbox crypt.
This commit is contained in:
parent
69b2e74527
commit
08c2568cb9
5 changed files with 1832 additions and 1092 deletions
873
libratbox/configure
vendored
873
libratbox/configure
vendored
File diff suppressed because it is too large
Load diff
|
@ -200,25 +200,6 @@ AC_CHECK_TYPES([struct sockaddr_storage],[
|
|||
])
|
||||
|
||||
|
||||
save_LIBS=$LIBS
|
||||
AC_SEARCH_LIBS(crypt, [crypt descrypt],,)
|
||||
LIBS=$save_LIBS
|
||||
|
||||
CRYPT_LIB=$ac_cv_search_crypt
|
||||
|
||||
if test "$CRYPT_LIB" = "none required"; then
|
||||
unset CRYPT_LIB
|
||||
elif test "$CRYPT_LIB" = no; then
|
||||
need_crypt=yes;
|
||||
AC_DEFINE(NEED_CRYPT, 1, [Define if your system needs crypt.])
|
||||
unset CRYPT_LIB
|
||||
fi
|
||||
|
||||
AM_CONDITIONAL([NEED_CRYPT], [test x"$need_crypt" = "xyes"])
|
||||
|
||||
|
||||
AC_SUBST(CRYPT_LIB)
|
||||
|
||||
dnl Check for stdarg.h - if we cant find it, halt configure
|
||||
AC_CHECK_HEADER(stdarg.h, , [AC_MSG_ERROR([** stdarg.h could not be found - libratbox will not compile without it **])])
|
||||
|
||||
|
|
|
@ -42,7 +42,7 @@ libratbox_la_SOURCES = \
|
|||
version.c
|
||||
|
||||
|
||||
libratbox_la_LDFLAGS = @CRYPT_LIB@ @SSL_LIBS@ @GNUTLS_LIBS@ -avoid-version -no-undefined -export-symbols export-syms.txt
|
||||
libratbox_la_LIBADD = @CRYPT_LIB@ @SSL_LIBS@ @GNUTLS_LIBS@
|
||||
libratbox_la_LDFLAGS = @SSL_LIBS@ @GNUTLS_LIBS@ -avoid-version -no-undefined -export-symbols export-syms.txt
|
||||
libratbox_la_LIBADD = @SSL_LIBS@ @GNUTLS_LIBS@
|
||||
lib_LTLIBRARIES = libratbox.la
|
||||
|
||||
|
|
|
@ -257,8 +257,8 @@ libratbox_la_SOURCES = \
|
|||
arc4random.c \
|
||||
version.c
|
||||
|
||||
libratbox_la_LDFLAGS = @CRYPT_LIB@ @SSL_LIBS@ @GNUTLS_LIBS@ -avoid-version -no-undefined -export-symbols export-syms.txt
|
||||
libratbox_la_LIBADD = @CRYPT_LIB@ @SSL_LIBS@ @GNUTLS_LIBS@
|
||||
libratbox_la_LDFLAGS = @SSL_LIBS@ @GNUTLS_LIBS@ -avoid-version -no-undefined -export-symbols export-syms.txt
|
||||
libratbox_la_LIBADD = @SSL_LIBS@ @GNUTLS_LIBS@
|
||||
lib_LTLIBRARIES = libratbox.la
|
||||
all: $(BUILT_SOURCES)
|
||||
$(MAKE) $(AM_MAKEFLAGS) all-am
|
||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue