Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Jan 2000 21:53:10 -0800 (PST)
From:      Kris Kennaway <kris@hub.freebsd.org>
To:        current@freebsd.org
Subject:   Feature test for OpenSSL + RSA
Message-ID:  <Pine.BSF.4.21.0001172151360.84411-100000@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0001172151360.84411-100000>