summaryrefslogtreecommitdiffstats
path: root/secure
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2000-01-16 05:19:27 +0000
committerkris <kris@FreeBSD.org>2000-01-16 05:19:27 +0000
commite34db3169c7915eac8e9c8dd79d9ea07d8022129 (patch)
treec859ad5f3b4ac3ba9b34e649d1f63b1fc9e5acc4 /secure
parentb3412e9f7e5d69a30bbee562bfa6e398761babd8 (diff)
downloadFreeBSD-src-e34db3169c7915eac8e9c8dd79d9ea07d8022129.zip
FreeBSD-src-e34db3169c7915eac8e9c8dd79d9ea07d8022129.tar.gz
*** empty log message ***
Diffstat (limited to 'secure')
-rw-r--r--secure/lib/libcrypto/Makefile6
-rw-r--r--secure/lib/libcrypto/Makefile.inc5
2 files changed, 10 insertions, 1 deletions
diff --git a/secure/lib/libcrypto/Makefile b/secure/lib/libcrypto/Makefile
index 86f8c65..34ff381 100644
--- a/secure/lib/libcrypto/Makefile
+++ b/secure/lib/libcrypto/Makefile
@@ -125,10 +125,16 @@ SRCS+= rc5cfb64.c rc5_ecb.c rc5_enc.c rc5ofb64.c rc5_skey.c
# ripemd
SRCS+= rmd_dgst.c rmd_one.c
+# rsa
+.if defined(WITH_RSA) && ${WITH_RSA} == YES
+SRCS+= rsa_chk.c rsa_err.c rsa_gen.c rsa_lib.c rsa_none.c rsa_oaep.c \
+ rsa_pk1.c rsa_saos.c rsa_sign.c rsa_ssl.c
+
# rsaref
.if defined(RSAREF) && ${RSAREF} == YES
SRCS+= rsar_err.c rsaref.c
.endif
+.endif
# sha
SRCS+= sha_dgst.c sha_one.c sha1_one.c sha1dgst.c
diff --git a/secure/lib/libcrypto/Makefile.inc b/secure/lib/libcrypto/Makefile.inc
index b6f5e23..bee00f6 100644
--- a/secure/lib/libcrypto/Makefile.inc
+++ b/secure/lib/libcrypto/Makefile.inc
@@ -13,10 +13,13 @@ CFLAGS+= -DDEVRANDOM=\"/dev/urandom\"
.endif
.endif
-.if !defined(RSA_NONCOMMERCIAL) || ${RSA_NONCOMMERCIAL} != YES
+LOCALBASE?= /usr/local
+
+.if !exists(${LOCALBASE}/lib/librsaref.a)
CFLAGS+= -DNO_RSA -DNO_SSL2
WITH_RSA= NO
.else
CFLAGS+= -DRSAref
RSAREF= YES
+WITH_RSA= YES
.endif
OpenPOWER on IntegriCloud