From owner-freebsd-current Mon Jan 17 21:53:12 2000 Delivered-To: freebsd-current@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 758) id AB03815169; Mon, 17 Jan 2000 21:53:10 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by hub.freebsd.org (Postfix) with ESMTP id 8F3B71CD646 for ; Mon, 17 Jan 2000 21:53:10 -0800 (PST) (envelope-from kris@hub.freebsd.org) Date: Mon, 17 Jan 2000 21:53:10 -0800 (PST) From: Kris Kennaway To: current@freebsd.org Subject: Feature test for OpenSSL + RSA Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG The simplest way to test whether OpenSSL can do RSA is to write a file at install-time, like the following patch. Any objections? Kris Index: Makefile =================================================================== RCS file: /home/ncvs/src/secure/lib/libcrypto/Makefile,v retrieving revision 1.5 diff -u -r1.5 Makefile --- Makefile 2000/01/16 05:23:21 1.5 +++ Makefile 2000/01/18 05:50:34 @@ -206,7 +206,13 @@ ${LCRYPTO_SRC}/$$i ${DESTDIR}/usr/include/openssl; \ done; \ ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 444 \ - ${.OBJDIR}/openssl/opensslconf.h ${DESTDIR}/usr/include/openssl + ${.OBJDIR}/openssl/opensslconf.h \ + ${DESTDIR}/usr/include/openssl +.if defined(WITH_RSA) && ${WITH_RSA} == YES + /usr/bin/touch /etc/ssl/openssl_hasrsa +.else + rm -f /etc/ssl/openssl_hasrsa +.endif .PATH: ${LCRYPTO_SRC} ${LCRYPTO_SRC}/asn1 ${LCRYPTO_SRC}/bf \ ${LCRYPTO_SRC}/bio ${LCRYPTO_SRC}/bn ${LCRYPTO_SRC}/buffer \ ---- "How many roads must a man walk down, before you call him a man?" "Eight!" "That was a rhetorical question!" "Oh..then, seven!" -- Homer Simpson To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message