1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-18 08:02:48 +00:00

games/tinymux: Fix SSL flags and handle no SHA0 cases (LibreSSL)

This commit is contained in:
John Marino 2016-09-12 02:01:38 +00:00
parent afe60d9bfd
commit 169103d18a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=421894
2 changed files with 23 additions and 4 deletions

View File

@ -20,9 +20,6 @@ USES= gmake
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib -lcrypto
PATCHLEVEL= 12
PORTDOCS= *
@ -49,7 +46,9 @@ MEMORY_BASED_CONFIGURE_ENABLE= memorybased
REALITY_LVLS_CONFIGURE_ENABLE= realitylvls
SELFCHECK_CONFIGURE_ENABLE= selfcheck
SSL_CONFIGURE_ENABLE= ssl
SSL_USE= OPENSSL=yes
SSL_USES= ssl
SSL_CPPFLAGS= -I${OPENSSLINC}
SSL_LDFLAGS= -L${OPENSSLLIB} -lcrypto
WOD_REALMS_CONFIGURE_ENABLE= wodrealms
SUB_FILES= ${PORTNAME} pkg-deinstall pkg-message

View File

@ -0,0 +1,20 @@
--- player.cpp.orig 2012-07-12 05:25:51 UTC
+++ player.cpp
@@ -422,7 +422,7 @@ void ChangePassword(dbref player, const
s_Pass(player, pEncodedPassword);
}
-#ifdef UNIX_DIGEST
+#if defined(UNIX_DIGEST) && !defined(OPENSSL_NO_SHA0)
const UTF8 *p6h_xx_crypt(const UTF8 *szPassword)
{
// Calculate SHA-0 Hash.
@@ -598,7 +598,7 @@ const UTF8 *mux_crypt(const UTF8 *szPass
case CRYPT_CLEARTEXT:
return szPassword;
-#ifdef UNIX_DIGEST
+#if defined(UNIX_DIGEST) && !defined(OPENSSL_NO_SHA0)
case CRYPT_P6H_XX:
return p6h_xx_crypt(szPassword);
#endif