summaryrefslogtreecommitdiff
path: root/lib/libssl/ssl-patent
diff options
context:
space:
mode:
authorryker <ryker@cvs.openbsd.org>1998-10-05 20:13:17 +0000
committerryker <ryker@cvs.openbsd.org>1998-10-05 20:13:17 +0000
commitab647ee8741b82d207b00c6c0501c5531982258d (patch)
tree396ed13e257f807ad932fd526280d20c8ac5996d /lib/libssl/ssl-patent
parenteeb9c25b093b9797b4cffffaa53fd60f0afcd8ab (diff)
Import of SSLeay-0.9.0b with RSA and IDEA stubbed + OpenBSD build
functionality for shared libs. Note that routines such as sslv2_init and friends that use RSA will not work due to lack of RSA in this library. Needs documentation and help from ports for easy upgrade to full functionality where legally possible.
Diffstat (limited to 'lib/libssl/ssl-patent')
-rw-r--r--lib/libssl/ssl-patent/Makefile45
-rw-r--r--lib/libssl/ssl-patent/shlib_version2
2 files changed, 47 insertions, 0 deletions
diff --git a/lib/libssl/ssl-patent/Makefile b/lib/libssl/ssl-patent/Makefile
new file mode 100644
index 00000000000..4831fcfe427
--- /dev/null
+++ b/lib/libssl/ssl-patent/Makefile
@@ -0,0 +1,45 @@
+
+LIB= ssl
+
+SSLEAYDIST= src-patent
+
+LSSL_SRC= ${.CURDIR}/../${SSLEAYDIST}/ssl
+SSLEAY_INC= ${.CURDIR}/../${SSLEAYDIST}/include
+LCRYPTO_INC= ${.CURDIR}/../${SSLEAYDIST}/crypto
+
+.if ${MACHINE_ARCH} == "i386"
+CFLAGS+= -DL_ENDIAN -DBN_ASM
+.else
+.if ${MACHINE_ARCH} == "alpha"
+# no ENDIAN stuff defined for alpha
+.else
+CFLAGS+= -DB_ENDIAN
+.endif
+.endif
+CFLAGS+= -DNO_IDEA -DTERMIOS -DANSI_SOURCE
+CFLAGS+= -I${LSSL_SRC} -I${SSLEAY_INC} -I${LCRYPTO_INC}
+
+SRCS= s2_meth.c s2_srvr.c s2_clnt.c s2_lib.c s2_enc.c s2_pkt.c \
+ s3_meth.c s3_srvr.c s3_clnt.c s3_lib.c s3_enc.c s3_pkt.c s3_both.c \
+ s23_meth.c s23_srvr.c s23_clnt.c s23_lib.c s23_pkt.c \
+ t1_meth.c t1_srvr.c t1_clnt.c t1_lib.c t1_enc.c \
+ ssl_lib.c ssl_err2.c ssl_cert.c ssl_sess.c \
+ ssl_ciph.c ssl_stat.c ssl_rsa.c \
+ ssl_asn1.c ssl_txt.c ssl_algs.c \
+ bio_ssl.c ssl_err.c
+
+HDRS= ssl.h ssl2.h ssl3.h ssl23.h tls1.h
+
+.PATH: ${LSSL_SRC}
+
+includes:
+ @cd ${LSSL_SRC}; for i in $(HDRS); do \
+ j="cmp -s $$i ${DESTDIR}/usr/include/ssl/`basename $$i` || \
+ ${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} -m 444 \
+ $$i ${DESTDIR}/usr/include/ssl"; \
+ echo $$j; \
+ eval "$$j"; \
+ done
+
+
+.include <bsd.lib.mk>
diff --git a/lib/libssl/ssl-patent/shlib_version b/lib/libssl/ssl-patent/shlib_version
new file mode 100644
index 00000000000..893819d18ff
--- /dev/null
+++ b/lib/libssl/ssl-patent/shlib_version
@@ -0,0 +1,2 @@
+major=1
+minor=1