summaryrefslogtreecommitdiffstats
path: root/secure
diff options
context:
space:
mode:
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