lua-bcrypt

Secure password hashing for Lua
Log | Files | Refs | README

commit 3d36c02546ce6a54574b3d73d427f09654603cd2
parent 25ae0eb65b456402728831b392cfdda7ff923612
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Thu,  9 Jul 2020 14:17:11 +0200

Merge pull request #14 from niacat/master

NetBSD and Solaris support
Diffstat:
MMakefile.mess | 13+++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/Makefile.mess b/Makefile.mess @@ -28,15 +28,24 @@ ifneq ($(uname),OpenBSD) SRCS += compat/safebfuns.c SRCS += compat/bcrypt/bcrypt.c SRCS += compat/bcrypt/blowfish.c - SRCS += compat/arc4random/arc4random.c - SRCS += compat/strlcpy.c + + ifneq ($(uname),NetBSD) + SRCS += compat/arc4random/arc4random.c + endif ifeq ($(uname),Linux) + SRCS += compat/strlcpy.c SRCS += compat/sha/sha512.c SRCS += compat/getentropy/getentropy_linux.c LDFLAGS += -lrt endif + ifeq ($(uname),SunOS) + CFLAGS += -D__EXTENSIONS__ + SRCS += compat/sha/sha512.c + SRCS += compat/getentropy/getentropy_solaris.c + endif + ifeq ($(uname),Darwin) SRCS += compat/getentropy/getentropy_osx.c endif