From owner-svn-src-all@FreeBSD.ORG Sat Dec 24 12:16:39 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A59DA1065670; Sat, 24 Dec 2011 12:16:39 +0000 (UTC) (envelope-from marius@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 761C68FC16; Sat, 24 Dec 2011 12:16:39 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id pBOCGd7d012703; Sat, 24 Dec 2011 12:16:39 GMT (envelope-from marius@svn.freebsd.org) Received: (from marius@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id pBOCGd1H012696; Sat, 24 Dec 2011 12:16:39 GMT (envelope-from marius@svn.freebsd.org) Message-Id: <201112241216.pBOCGd1H012696@svn.freebsd.org> From: Marius Strobl Date: Sat, 24 Dec 2011 12:16:39 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r228857 - in head/usr.bin: . csup X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Dec 2011 12:16:39 -0000 Author: marius Date: Sat Dec 24 12:16:38 2011 New Revision: 228857 URL: http://svn.freebsd.org/changeset/base/228857 Log: On FreeBSD just use the MD5 implementation of libmd rather than that of libcrypto so we don't need to relinquish csup when world is built without OpenSSL. Modified: head/usr.bin/Makefile head/usr.bin/csup/Makefile head/usr.bin/csup/auth.c head/usr.bin/csup/misc.c head/usr.bin/csup/misc.h Modified: head/usr.bin/Makefile ============================================================================== --- head/usr.bin/Makefile Sat Dec 24 01:32:01 2011 (r228856) +++ head/usr.bin/Makefile Sat Dec 24 12:16:38 2011 (r228857) @@ -250,10 +250,11 @@ SUBDIR+= bc SUBDIR+= chkey SUBDIR+= dc SUBDIR+= newkey +.endif + .if ${MK_LIBTHR} != "no" SUBDIR+= csup .endif -.endif .if ${MK_LOCATE} != "no" SUBDIR+= locate Modified: head/usr.bin/csup/Makefile ============================================================================== --- head/usr.bin/csup/Makefile Sat Dec 24 01:32:01 2011 (r228856) +++ head/usr.bin/csup/Makefile Sat Dec 24 12:16:38 2011 (r228857) @@ -33,8 +33,8 @@ CFLAGS+= -I. -I${.CURDIR} CFLAGS+= -DHAVE_FFLAGS -DNDEBUG WARNS?= 1 -DPADD= ${LIBCRYPTO} ${LIBZ} ${LIBPTHREAD} -LDADD= -lcrypto -lz -lpthread +DPADD= ${LIBMD} ${LIBZ} ${LIBPTHREAD} +LDADD= -lmd -lz -lpthread SCRIPTS= cpasswd.sh MAN= csup.1 cpasswd.1 Modified: head/usr.bin/csup/auth.c ============================================================================== --- head/usr.bin/csup/auth.c Sat Dec 24 01:32:01 2011 (r228856) +++ head/usr.bin/csup/auth.c Sat Dec 24 12:16:38 2011 (r228857) @@ -35,7 +35,6 @@ #include #include -#include #include #include #include Modified: head/usr.bin/csup/misc.c ============================================================================== --- head/usr.bin/csup/misc.c Sat Dec 24 01:32:01 2011 (r228856) +++ head/usr.bin/csup/misc.c Sat Dec 24 12:16:38 2011 (r228857) @@ -28,7 +28,6 @@ #include #include -#include #include #include Modified: head/usr.bin/csup/misc.h ============================================================================== --- head/usr.bin/csup/misc.h Sat Dec 24 01:32:01 2011 (r228856) +++ head/usr.bin/csup/misc.h Sat Dec 24 12:16:38 2011 (r228857) @@ -28,10 +28,18 @@ #ifndef _MISC_H_ #define _MISC_H_ -#include - #include +#ifdef __FreeBSD__ +#include +#define MD5_DIGEST_LENGTH 16 +#define MD5_Init MD5Init +#define MD5_Final MD5Final +#define MD5_Update MD5Update +#else +#include +#endif + /* If we're not compiling in a C99 environment, define the C99 types. */ #if !defined(__STDC_VERSION__) || __STDC_VERSION__ < 199901