Source-Changes-HG archive

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

[src/trunk]: src/lib/libcrypto Import libcrypto build framework from cryptosr...



details:   https://anonhg.NetBSD.org/src/rev/59f376e5b4cd
branches:  trunk
changeset: 487979:59f376e5b4cd
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Fri Jun 16 04:21:31 2000 +0000

description:
Import libcrypto build framework from cryptosrc-intl.

diffstat:

 lib/libcrypto/Makefile      |  87 +++++++++++++++++++++++++++++++++++++++++++++
 lib/libcrypto/asn1.inc      |  28 ++++++++++++++
 lib/libcrypto/bf.inc        |  14 +++++++
 lib/libcrypto/bio.inc       |  18 +++++++++
 lib/libcrypto/bn.inc        |  17 ++++++++
 lib/libcrypto/buffer.inc    |  14 +++++++
 lib/libcrypto/cast.inc      |  14 +++++++
 lib/libcrypto/comp.inc      |  15 +++++++
 lib/libcrypto/conf.inc      |  14 +++++++
 lib/libcrypto/crypto.inc    |  14 +++++++
 lib/libcrypto/des.inc       |  20 ++++++++++
 lib/libcrypto/dh.inc        |  14 +++++++
 lib/libcrypto/dsa.inc       |  14 +++++++
 lib/libcrypto/err.inc       |  14 +++++++
 lib/libcrypto/evp.inc       |  28 ++++++++++++++
 lib/libcrypto/hmac.inc      |  14 +++++++
 lib/libcrypto/idea.inc      |  14 +++++++
 lib/libcrypto/lhash.inc     |  14 +++++++
 lib/libcrypto/md2.inc       |  14 +++++++
 lib/libcrypto/md5.inc       |  14 +++++++
 lib/libcrypto/mdc2.inc      |  14 +++++++
 lib/libcrypto/objects.inc   |  14 +++++++
 lib/libcrypto/pem.inc       |  14 +++++++
 lib/libcrypto/pkcs12.inc    |  16 ++++++++
 lib/libcrypto/pkcs7.inc     |  14 +++++++
 lib/libcrypto/psrcs.inc     |   3 +
 lib/libcrypto/rand.inc      |  14 +++++++
 lib/libcrypto/rc2.inc       |  14 +++++++
 lib/libcrypto/rc4.inc       |  14 +++++++
 lib/libcrypto/rc5.inc       |  14 +++++++
 lib/libcrypto/ripemd.inc    |  14 +++++++
 lib/libcrypto/rsa.inc       |  15 +++++++
 lib/libcrypto/sha.inc       |  14 +++++++
 lib/libcrypto/shlib_version |   2 +
 lib/libcrypto/srcs.inc      |  32 ++++++++++++++++
 lib/libcrypto/stack.inc     |  14 +++++++
 lib/libcrypto/txt_db.inc    |  14 +++++++
 lib/libcrypto/x509.inc      |  19 +++++++++
 lib/libcrypto/x509v3.inc    |  16 ++++++++
 39 files changed, 666 insertions(+), 0 deletions(-)

diffs (truncated from 822 to 300 lines):

diff -r 3201dd9eae93 -r 59f376e5b4cd lib/libcrypto/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lib/libcrypto/Makefile    Fri Jun 16 04:21:31 2000 +0000
@@ -0,0 +1,87 @@
+#      $NetBSD: Makefile,v 1.1.1.1 2000/06/16 04:21:32 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=   crypto
+CPPFLAGS+= -Dlib${LIB} -I. -I${OPENSSLSRC}/crypto
+
+CRYPTODIST=    ${.CURDIR}/../../dist
+.include "../../Makefile.openssl"
+.PATH: ${OPENSSLSRC}
+
+.include "srcs.inc"
+
+# XXX
+.if ${OBJECT_FMT} == "ELF"
+AFLAGS+=-DELF
+.else
+AFLAGS+=-DOUT
+.endif
+
+# XXX
+${SRCS}: buildinf.h
+buildinf.h:
+       @echo "#ifndef MK1MF_BUILD" >buildinf.h
+       @echo "#define CFLAGS \"${CC} ${CFLAGS}\"" >>buildinf.h
+       @echo "#define PLATFORM \"NetBSD-${MACHINE_ARCH}\"" >>buildinf.h
+       @echo "#define DATE \"`date`\"" >>buildinf.h
+       @echo "#endif" >>buildinf.h
+
+CLEANFILES+= buildinf.h
+
+# This list is built from the contents of the include/openssl
+# directory in the OpenSSL source distribution.
+INCS+= asn1.h asn1_mac.h bio.h blowfish.h bn.h buffer.h cast.h comp.h
+INCS+= conf.h crypto.h des.h dh.h dsa.h e_os.h e_os2.h err.h evp.h hmac.h
+INCS+= lhash.h md2.h mdc2.h md5.h objects.h opensslconf.h
+INCS+= opensslv.h pem.h pem2.h pkcs12.h pkcs7.h rand.h rc2.h rc4.h
+INCS+= ripemd.h safestack.h sha.h stack.h tmdiff.h
+INCS+= txt_db.h x509.h x509_vfy.h x509v3.h
+
+INCSDIR=/usr/include/openssl
+
+.if PATENTEDOPENSSLSRC
+.include "psrcs.inc"
+
+INCS+= rsa.h rc5.h idea.h
+INCS+= rsaref.h
+
+.PATH: ${OPENSSLSRC}/rsaref
+.endif
+
+# 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.
+
+update_inc: update_non_patent update_patent
+
+update_non_patent:
+       (cd ${.CURDIR}; find ../../dist/openssl/crypto \
+           -name Makefile.ssl | \
+           perl ../../dist/openssl/extsrcs.pl 2> srcs.inc )
+
+update_patent:
+.if exists(${PATENTEDOPENSSLSRC}/crypto)
+       (cd ${.CURDIR}; find ${PATENTEDOPENSSLSRC}/crypto/rsa \
+           ${PATENTEDOPENSSLSRC}/crypto/rc5 \
+           ${PATENTEDOPENSSLSRC}/crypto/idea \
+           -name Makefile.ssl | \
+           perl ../../dist/openssl/extsrcs.pl \
+               -D '$${PATENTEDOPENSSLSRC}' 2> psrcs.inc )
+.endif
+
+.include <bsd.lib.mk>
diff -r 3201dd9eae93 -r 59f376e5b4cd lib/libcrypto/asn1.inc
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lib/libcrypto/asn1.inc    Fri Jun 16 04:21:31 2000 +0000
@@ -0,0 +1,28 @@
+#      $NetBSD: asn1.inc,v 1.1.1.1 2000/06/16 04:21:32 thorpej Exp $
+#
+#      @(#) Copyright (c) 1995 Simon J. Gerraty
+#
+#      SRCS extracted from ../../dist/openssl/crypto/asn1/Makefile.ssl
+#
+
+.PATH: ${OPENSSLSRC}/crypto/asn1
+
+CFLAGS+=       -I${OPENSSLSRC}/crypto/asn1
+
+SRCS+= a_object.c a_bitstr.c a_utctm.c a_gentm.c a_time.c a_int.c a_octet.c \
+       a_print.c a_type.c a_set.c a_dup.c a_d2i_fp.c a_i2d_fp.c a_bmp.c \
+       a_enum.c a_vis.c a_utf8.c a_sign.c a_digest.c a_verify.c \
+       x_algor.c x_val.c x_pubkey.c x_sig.c x_req.c x_attrib.c \
+       x_name.c x_cinf.c x_x509.c x_crl.c x_info.c x_spki.c nsseq.c \
+       d2i_r_pr.c i2d_r_pr.c d2i_r_pu.c i2d_r_pu.c \
+       d2i_s_pr.c i2d_s_pr.c d2i_s_pu.c i2d_s_pu.c \
+       d2i_pu.c d2i_pr.c i2d_pu.c i2d_pr.c \
+       t_req.c t_x509.c t_crl.c t_pkey.c \
+       p7_i_s.c p7_signi.c p7_signd.c p7_recip.c p7_enc_c.c p7_evp.c \
+       p7_dgst.c p7_s_e.c p7_enc.c p7_lib.c \
+       f_int.c f_string.c i2d_dhp.c i2d_dsap.c d2i_dhp.c d2i_dsap.c n_pkey.c \
+       f_enum.c a_hdr.c x_pkey.c a_bool.c x_exten.c \
+       asn1_par.c asn1_lib.c asn1_err.c a_meth.c a_bytes.c \
+       evp_asn1.c asn_pack.c p5_pbe.c p5_pbev2.c p8_pkey.c
+
+
diff -r 3201dd9eae93 -r 59f376e5b4cd lib/libcrypto/bf.inc
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lib/libcrypto/bf.inc      Fri Jun 16 04:21:31 2000 +0000
@@ -0,0 +1,14 @@
+#      $NetBSD: bf.inc,v 1.1.1.1 2000/06/16 04:21:32 thorpej Exp $
+#
+#      @(#) Copyright (c) 1995 Simon J. Gerraty
+#
+#      SRCS extracted from ../../dist/openssl/crypto/bf/Makefile.ssl
+#
+
+.PATH: ${OPENSSLSRC}/crypto/bf
+
+CFLAGS+=       -I${OPENSSLSRC}/crypto/bf
+
+SRCS+=bf_skey.c bf_ecb.c   bf_enc.c  bf_cfb64.c bf_ofb64.c
+
+
diff -r 3201dd9eae93 -r 59f376e5b4cd lib/libcrypto/bio.inc
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lib/libcrypto/bio.inc     Fri Jun 16 04:21:31 2000 +0000
@@ -0,0 +1,18 @@
+#      $NetBSD: bio.inc,v 1.1.1.1 2000/06/16 04:21:32 thorpej Exp $
+#
+#      @(#) Copyright (c) 1995 Simon J. Gerraty
+#
+#      SRCS extracted from ../../dist/openssl/crypto/bio/Makefile.ssl
+#
+
+.PATH: ${OPENSSLSRC}/crypto/bio
+
+CFLAGS+=       -I${OPENSSLSRC}/crypto/bio
+
+SRCS+= bio_lib.c bio_cb.c bio_err.c \
+       bss_mem.c bss_null.c bss_fd.c \
+       bss_file.c bss_sock.c bss_conn.c \
+       bf_null.c bf_buff.c b_print.c b_dump.c \
+       b_sock.c bss_acpt.c bf_nbio.c bss_log.c
+
+
diff -r 3201dd9eae93 -r 59f376e5b4cd lib/libcrypto/bn.inc
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lib/libcrypto/bn.inc      Fri Jun 16 04:21:31 2000 +0000
@@ -0,0 +1,17 @@
+#      $NetBSD: bn.inc,v 1.1.1.1 2000/06/16 04:21:32 thorpej Exp $
+#
+#      @(#) Copyright (c) 1995 Simon J. Gerraty
+#
+#      SRCS extracted from ../../dist/openssl/crypto/bn/Makefile.ssl
+#
+
+.PATH: ${OPENSSLSRC}/crypto/bn
+
+CFLAGS+=       -I${OPENSSLSRC}/crypto/bn
+
+SRCS+= bn_add.c bn_div.c bn_exp.c bn_lib.c bn_mul.c \
+       bn_print.c bn_rand.c bn_shift.c bn_word.c bn_blind.c \
+       bn_gcd.c bn_prime.c bn_err.c bn_sqr.c   bn_asm.c  bn_recp.c bn_mont.c \
+       bn_mpi.c bn_exp2.c
+
+
diff -r 3201dd9eae93 -r 59f376e5b4cd lib/libcrypto/buffer.inc
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lib/libcrypto/buffer.inc  Fri Jun 16 04:21:31 2000 +0000
@@ -0,0 +1,14 @@
+#      $NetBSD: buffer.inc,v 1.1.1.1 2000/06/16 04:21:32 thorpej Exp $
+#
+#      @(#) Copyright (c) 1995 Simon J. Gerraty
+#
+#      SRCS extracted from ../../dist/openssl/crypto/buffer/Makefile.ssl
+#
+
+.PATH: ${OPENSSLSRC}/crypto/buffer
+
+CFLAGS+=       -I${OPENSSLSRC}/crypto/buffer
+
+SRCS+= buffer.c buf_err.c
+
+
diff -r 3201dd9eae93 -r 59f376e5b4cd lib/libcrypto/cast.inc
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lib/libcrypto/cast.inc    Fri Jun 16 04:21:31 2000 +0000
@@ -0,0 +1,14 @@
+#      $NetBSD: cast.inc,v 1.1.1.1 2000/06/16 04:21:32 thorpej Exp $
+#
+#      @(#) Copyright (c) 1995 Simon J. Gerraty
+#
+#      SRCS extracted from ../../dist/openssl/crypto/cast/Makefile.ssl
+#
+
+.PATH: ${OPENSSLSRC}/crypto/cast
+
+CFLAGS+=       -I${OPENSSLSRC}/crypto/cast
+
+SRCS+=c_skey.c c_ecb.c c_enc.c  c_cfb64.c c_ofb64.c
+
+
diff -r 3201dd9eae93 -r 59f376e5b4cd lib/libcrypto/comp.inc
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lib/libcrypto/comp.inc    Fri Jun 16 04:21:31 2000 +0000
@@ -0,0 +1,15 @@
+#      $NetBSD: comp.inc,v 1.1.1.1 2000/06/16 04:21:32 thorpej Exp $
+#
+#      @(#) Copyright (c) 1995 Simon J. Gerraty
+#
+#      SRCS extracted from ../../dist/openssl/crypto/comp/Makefile.ssl
+#
+
+.PATH: ${OPENSSLSRC}/crypto/comp
+
+CFLAGS+=       -I${OPENSSLSRC}/crypto/comp
+
+SRCS+= comp_lib.c \
+       c_rle.c c_zlib.c
+
+
diff -r 3201dd9eae93 -r 59f376e5b4cd lib/libcrypto/conf.inc
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lib/libcrypto/conf.inc    Fri Jun 16 04:21:31 2000 +0000
@@ -0,0 +1,14 @@
+#      $NetBSD: conf.inc,v 1.1.1.1 2000/06/16 04:21:32 thorpej Exp $
+#
+#      @(#) Copyright (c) 1995 Simon J. Gerraty
+#
+#      SRCS extracted from ../../dist/openssl/crypto/conf/Makefile.ssl
+#
+
+.PATH: ${OPENSSLSRC}/crypto/conf
+
+CFLAGS+=       -I${OPENSSLSRC}/crypto/conf
+
+SRCS+= conf.c conf_err.c
+
+
diff -r 3201dd9eae93 -r 59f376e5b4cd lib/libcrypto/crypto.inc
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lib/libcrypto/crypto.inc  Fri Jun 16 04:21:31 2000 +0000
@@ -0,0 +1,14 @@
+#      $NetBSD: crypto.inc,v 1.1.1.1 2000/06/16 04:21:32 thorpej Exp $
+#
+#      @(#) Copyright (c) 1995 Simon J. Gerraty
+#
+#      SRCS extracted from ../../dist/openssl/crypto/Makefile.ssl
+#
+
+.PATH: ${OPENSSLSRC}/crypto
+
+CFLAGS+=       -I${OPENSSLSRC}/crypto
+
+SRCS+= cryptlib.c mem.c cversion.c ex_data.c tmdiff.c cpt_err.c
+
+
diff -r 3201dd9eae93 -r 59f376e5b4cd lib/libcrypto/des.inc
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lib/libcrypto/des.inc     Fri Jun 16 04:21:31 2000 +0000
@@ -0,0 +1,20 @@
+#      $NetBSD: des.inc,v 1.1.1.1 2000/06/16 04:21:32 thorpej Exp $
+#
+#      @(#) Copyright (c) 1995 Simon J. Gerraty
+#
+#      SRCS extracted from ../../dist/openssl/crypto/des/Makefile.ssl
+#
+
+.PATH: ${OPENSSLSRC}/crypto/des
+
+CFLAGS+=       -I${OPENSSLSRC}/crypto/des
+
+SRCS+= set_key.c  ecb_enc.c  cbc_enc.c \
+       ecb3_enc.c cfb64enc.c cfb64ede.c cfb_enc.c  ofb64ede.c \
+       enc_read.c enc_writ.c ofb64enc.c \
+       ofb_enc.c  str2key.c  pcbc_enc.c qud_cksm.c rand_key.c \
+        des_enc.c fcrypt_b.c  read2pwd.c \
+       fcrypt.c xcbc_enc.c read_pwd.c rpc_enc.c  cbc_cksm.c supp.c \
+       ede_cbcm_enc.c
+
+
diff -r 3201dd9eae93 -r 59f376e5b4cd lib/libcrypto/dh.inc



Home | Main Index | Thread Index | Old Index