Browse Source

libcrypt: Update with routines from FreeBSD

This brings in support for MD5, SHA-256 and SHA-512 encryption.
android-5
Fredrik Fornwall 9 years ago
parent
commit
492d2d5a09
  1. 5
      packages/libcrypt/build.sh
  2. 1778
      packages/libcrypt/crypt3.c

5
packages/libcrypt/build.sh

@ -1,9 +1,10 @@
TERMUX_PKG_HOMEPAGE=http://michael.dipperstein.com/crypt/ TERMUX_PKG_HOMEPAGE=http://michael.dipperstein.com/crypt/
TERMUX_PKG_DESCRIPTION="A crypt(3) implementation" TERMUX_PKG_DESCRIPTION="A crypt(3) implementation"
TERMUX_PKG_VERSION=0.1 TERMUX_PKG_VERSION=0.2
TERMUX_PKG_DEPENDS="openssl"
termux_step_make_install () { termux_step_make_install () {
$CC $CFLAGS $LDFLAGS -fPIC -shared $TERMUX_PKG_BUILDER_DIR/crypt3.c -o $TERMUX_PREFIX/lib/libcrypt.so $CC $CFLAGS $CPPFLAGS $LDFLAGS -Wall -Wextra -fPIC -shared $TERMUX_PKG_BUILDER_DIR/crypt3.c -lcrypto -o $TERMUX_PREFIX/lib/libcrypt.so
mkdir -p $TERMUX_PREFIX/include/ mkdir -p $TERMUX_PREFIX/include/
cp $TERMUX_PKG_BUILDER_DIR/crypt.h $TERMUX_PREFIX/include/ cp $TERMUX_PKG_BUILDER_DIR/crypt.h $TERMUX_PREFIX/include/
} }

1778
packages/libcrypt/crypt3.c

File diff suppressed because it is too large
Loading…
Cancel
Save