Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libssl Import libssl build glue from cryptosrc-intl.



details:   https://anonhg.NetBSD.org/src/rev/1510d62b01cb
branches:  trunk
changeset: 487980:1510d62b01cb
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Fri Jun 16 04:54:48 2000 +0000

description:
Import libssl build glue from cryptosrc-intl.

diffstat:

 lib/libssl/Makefile      |  50 ++++++++++++++++++++++++++++++++++++++++++++++++
 lib/libssl/shlib_version |   2 +
 lib/libssl/srcs.inc      |   1 +
 lib/libssl/ssl.diff      |  19 ++++++++++++++++++
 lib/libssl/ssl.inc       |  27 +++++++++++++++++++++++++
 5 files changed, 99 insertions(+), 0 deletions(-)

diffs (119 lines):

diff -r 59f376e5b4cd -r 1510d62b01cb lib/libssl/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lib/libssl/Makefile       Fri Jun 16 04:54:48 2000 +0000
@@ -0,0 +1,50 @@
+#      $NetBSD: Makefile,v 1.1.1.1 2000/06/16 04:54:48 thorpej Exp $
+
+# RCSid:
+#      Id: Makefile,v 1.33 1998/11/11 11:53:53 sjg Exp
+#
+#      @(#) Copyright (c) 1994 Simon J. Gerraty
+#
+#      This file is provided in the hope that it will
+#      be of use.  There is absolutely NO WARRANTY.
+#      Permission to copy, redistribute or otherwise
+#      use this file is hereby granted provided that 
+#      the above copyright notice and this notice are
+#      left intact. 
+#      
+#      Please send copies of changes and bug-fixes to:
+#      sjg%quick.com.au@localhost
+#
+
+LIB=   ssl
+CFLAGS+= -Dlib${LIB}
+
+CRYPTODIST=    ${.CURDIR}/../../dist
+.include "../../Makefile.openssl"
+.PATH: ${OPENSSLSRC}
+
+.include "srcs.inc"
+
+# XXX
+.if ${OBJECT_FMT} == "ELF"
+AFLAGS+=-DELF
+.else
+AFLAGS+=-DOUT
+.endif
+
+# This is from the include/openssl directory; see ../libcrypto/Makefile
+INCS=  ssl.h ssl2.h ssl3.h tls1.h ssl23.h
+INCSDIR=/usr/include/openssl
+
+# this rebuilds the `srcs.inc' and the .inc files it reads.
+# note that we have no idea, rc5 or rsa here so we include
+# them explicitely above if we are using these ciphers.
+# XXX
+# we patch `ssl.inc' as we need to be able to turn off SSLv2.
+update_inc:
+       (cd ${.CURDIR}; \
+       find ../../dist/openssl/ssl -name Makefile.ssl | \
+               perl ../../dist/openssl/extsrcs.pl 2> srcs.inc; \
+       patch -s ssl.inc < ssl.diff )
+
+.include <bsd.lib.mk>
diff -r 59f376e5b4cd -r 1510d62b01cb lib/libssl/shlib_version
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lib/libssl/shlib_version  Fri Jun 16 04:54:48 2000 +0000
@@ -0,0 +1,2 @@
+major=0
+minor=0
diff -r 59f376e5b4cd -r 1510d62b01cb lib/libssl/srcs.inc
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lib/libssl/srcs.inc       Fri Jun 16 04:54:48 2000 +0000
@@ -0,0 +1,1 @@
+.include "ssl.inc"
diff -r 59f376e5b4cd -r 1510d62b01cb lib/libssl/ssl.diff
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lib/libssl/ssl.diff       Fri Jun 16 04:54:48 2000 +0000
@@ -0,0 +1,19 @@
+$NetBSD: ssl.diff,v 1.1.1.1 2000/06/16 04:54:48 thorpej Exp $
+
+--- ssl.inc.orig       Tue Jul 20 19:09:24 1999
++++ ssl.inc    Tue Jul 20 19:09:41 1999
+@@ -9,8 +9,13 @@
+ 
+ CPPFLAGS+=    -I${OPENSSLSRC}/ssl
+ 
++.if exists(${PATENTEDOPENSSLSRC}/crypto)
++SRCS+=        s2_meth.c  s2_srvr.c  s2_clnt.c  s2_lib.c  s2_enc.c s2_pkt.c
++.else
++CPPFLAGS+=    -DNO_SSL2
++.endif
++
+ 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 \
diff -r 59f376e5b4cd -r 1510d62b01cb lib/libssl/ssl.inc
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lib/libssl/ssl.inc        Fri Jun 16 04:54:48 2000 +0000
@@ -0,0 +1,27 @@
+#      $NetBSD: ssl.inc,v 1.1.1.1 2000/06/16 04:54:48 thorpej Exp $
+#
+#      @(#) Copyright (c) 1995 Simon J. Gerraty
+#
+#      SRCS extracted from ../../dist/openssl/ssl/Makefile.ssl
+#
+
+.PATH: ${OPENSSLSRC}/ssl
+
+CPPFLAGS+=     -I${OPENSSLSRC}/ssl
+
+.if exists(${PATENTEDOPENSSLSRC}/crypto)
+SRCS+= s2_meth.c  s2_srvr.c  s2_clnt.c  s2_lib.c  s2_enc.c s2_pkt.c
+.else
+CPPFLAGS+=     -DNO_SSL2
+.endif
+
+SRCS+= \
+       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
+
+



Home | Main Index | Thread Index | Old Index