summaryrefslogtreecommitdiffstats
path: root/secure
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2000-04-13 07:37:35 +0000
committerkris <kris@FreeBSD.org>2000-04-13 07:37:35 +0000
commitec2fce6561acc24cb60670f6f4601e0c29f5f3fa (patch)
tree94e6e7ec17a8f3ec05eed7acdf199968cbd2bd8a /secure
parent4e4529727ed9af5fe3f6bb398c0e80c1d6ff2368 (diff)
downloadFreeBSD-src-ec2fce6561acc24cb60670f6f4601e0c29f5f3fa.zip
FreeBSD-src-ec2fce6561acc24cb60670f6f4601e0c29f5f3fa.tar.gz
Update for OpenSSL 0.9.5a and clean up a bit.
Diffstat (limited to 'secure')
-rw-r--r--secure/lib/libcrypto/Makefile186
-rw-r--r--secure/lib/libcrypto/Makefile.inc23
-rw-r--r--secure/lib/libcrypto/opensslconf-i386.h37
-rw-r--r--secure/lib/libssl/Makefile38
-rw-r--r--secure/usr.bin/openssl/Makefile10
5 files changed, 183 insertions, 111 deletions
diff --git a/secure/lib/libcrypto/Makefile b/secure/lib/libcrypto/Makefile
index 928e2ce..5f5c853 100644
--- a/secure/lib/libcrypto/Makefile
+++ b/secure/lib/libcrypto/Makefile
@@ -21,35 +21,37 @@ SHLIB_MAJOR= 1
MAINTAINER= kris
# base sources
-SRCS+= cryptlib.c mem.c cversion.c ex_data.c cpt_err.c tmdiff.c
+SRCS+= cpt_err.c cryptlib.c cversion.c ebcdic.c ex_data.c mem.c mem_dbg.c \
+ tmdiff.c
# asn1
SRCS+= a_bitstr.c a_bmp.c a_bool.c a_bytes.c a_d2i_fp.c a_digest.c \
- a_dup.c a_enum.c a_gentm.c a_hdr.c a_i2d_fp.c a_int.c a_meth.c \
- a_object.c a_octet.c a_print.c a_set.c a_sign.c a_time.c a_type.c \
- a_utctm.c a_utf8.c a_verify.c a_vis.c asn1_err.c asn1_lib.c \
- asn1_par.c asn_pack.c d2i_dhp.c d2i_dsap.c d2i_pr.c d2i_pu.c \
- d2i_r_pr.c d2i_r_pu.c d2i_s_pr.c d2i_s_pu.c evp_asn1.c f_enum.c \
- f_int.c f_string.c i2d_dhp.c i2d_dsap.c i2d_pr.c i2d_pu.c \
- i2d_r_pr.c i2d_r_pu.c i2d_s_pr.c i2d_s_pu.c n_pkey.c nsseq.c \
- p5_pbe.c p5_pbev2.c p7_dgst.c p7_enc.c p7_enc_c.c p7_evp.c \
- p7_i_s.c p7_lib.c p7_recip.c p7_s_e.c p7_signd.c p7_signi.c \
- p8_pkey.c t_crl.c t_pkey.c t_req.c t_x509.c x_algor.c \
- x_attrib.c x_cinf.c x_crl.c x_exten.c x_info.c x_name.c \
- x_pkey.c x_pubkey.c x_req.c x_sig.c x_spki.c x_val.c x_x509.c
+ a_dup.c a_enum.c a_gentm.c a_hdr.c a_i2d_fp.c a_int.c a_mbstr.c \
+ a_meth.c a_null.c a_object.c a_octet.c a_print.c a_set.c a_sign.c \
+ a_strnid.c a_time.c a_type.c a_utctm.c a_utf8.c a_verify.c a_vis.c \
+ asn1_err.c asn1_lib.c asn1_par.c asn_pack.c d2i_dhp.c d2i_dsap.c \
+ d2i_pr.c d2i_pu.c d2i_r_pr.c d2i_r_pu.c d2i_s_pr.c d2i_s_pu.c \
+ evp_asn1.c f_enum.c f_int.c f_string.c i2d_dhp.c i2d_dsap.c i2d_pr.c \
+ i2d_pu.c i2d_r_pr.c i2d_r_pu.c i2d_s_pr.c i2d_s_pu.c n_pkey.c nsseq.c \
+ p5_pbe.c p5_pbev2.c p7_dgst.c p7_enc.c p7_enc_c.c p7_evp.c p7_i_s.c \
+ p7_lib.c p7_recip.c p7_s_e.c p7_signd.c p7_signi.c p8_pkey.c \
+ t_bitst.c t_crl.c t_pkey.c t_req.c t_spki.c t_x509.c t_x509a.c \
+ x_algor.c x_attrib.c x_cinf.c x_crl.c x_exten.c x_info.c x_name.c \
+ x_pkey.c x_pubkey.c x_req.c x_sig.c x_spki.c x_val.c x_x509.c \
+ x_x509a.c \
# blowfish
-SRCS+= bf_cfb64.c bf_ecb.c bf_enc.c bf_ofb64.c bf_skey.c
+SRCS+= bf_cfb64.c bf_ecb.c bf_enc.c bf_ofb64.c bf_skey.c
# bio
SRCS+= b_dump.c b_print.c b_sock.c bf_buff.c bf_nbio.c bf_null.c \
bio_cb.c bio_err.c bio_lib.c bss_acpt.c bss_bio.c bss_conn.c \
- bss_fd.c bss_file.c bss_log.c bss_mem.c bss_null.c bss_sock.c
+ bss_fd.c bss_file.c bss_log.c bss_mem.c bss_null.c bss_sock.c
# bn
-SRCS+= bn_add.c bn_asm.c bn_blind.c bn_div.c bn_err.c bn_exp.c bn_exp2.c \
- bn_gcd.c bn_lib.c bn_mont.c bn_mpi.c bn_mul.c bn_prime.c \
- bn_print.c bn_rand.c bn_recp.c bn_shift.c bn_sqr.c bn_word.c
+SRCS+= bn_add.c bn_asm.c bn_blind.c bn_ctx.c bn_div.c bn_err.c bn_exp.c \
+ bn_exp2.c bn_gcd.c bn_lib.c bn_mont.c bn_mpi.c bn_mul.c bn_prime.c \
+ bn_print.c bn_rand.c bn_recp.c bn_shift.c bn_sqr.c bn_word.c
# buffer
SRCS+= buf_err.c buffer.c
@@ -65,32 +67,33 @@ SRCS+= conf.c conf_err.c
# des
SRCS+= cbc_cksm.c cbc_enc.c cfb64ede.c cfb64enc.c cfb_enc.c des_enc.c \
- ecb3_enc.c ecb_enc.c ede_cbcm_enc.c enc_read.c enc_writ.c \
- fcrypt.c fcrypt.c fcrypt_b.c ofb64ede.c ofb64enc.c ofb_enc.c \
- pcbc_enc.c qud_cksm.c rand_key.c read2pwd.c read_pwd.c rpc_enc.c \
- set_key.c str2key.c supp.c xcbc_enc.c rnd_keys.c
+ ecb3_enc.c ecb_enc.c ede_cbcm_enc.c enc_read.c enc_writ.c fcrypt.c \
+ fcrypt_b.c ofb64ede.c ofb64enc.c ofb_enc.c pcbc_enc.c qud_cksm.c \
+ rand_key.c read2pwd.c read_pwd.c rnd_keys.c rpc_enc.c set_key.c \
+ str2key.c supp.c xcbc_enc.c
# dh
SRCS+= dh_check.c dh_err.c dh_gen.c dh_key.c dh_lib.c
-# dsa
-SRCS+= dsa_asn1.c dsa_err.c dsa_gen.c dsa_key.c dsa_lib.c dsa_sign.c \
- dsa_vrf.c
+# dsa
+SRCS+= dsa_asn1.c dsa_err.c dsa_gen.c dsa_key.c dsa_lib.c dsa_ossl.c \
+ dsa_sign.c dsa_vrf.c
# err
SRCS+= err.c err_all.c err_prn.c
# evp
-SRCS+= bio_b64.c bio_enc.c bio_md.c bio_ok.c c_all.c digest.c e_cbc_3d.c \
- e_cbc_bf.c e_cbc_c.c e_cbc_d.c e_cbc_i.c e_cbc_r2.c e_cbc_r5.c \
- e_cfb_3d.c e_cfb_bf.c e_cfb_c.c e_cfb_d.c e_cfb_i.c e_cfb_r2.c \
- e_cfb_r5.c e_ecb_3d.c e_ecb_bf.c e_ecb_c.c e_ecb_d.c e_ecb_i.c \
- e_ecb_r2.c e_ecb_r5.c e_null.c e_ofb_3d.c e_ofb_bf.c e_ofb_c.c \
- e_ofb_d.c e_ofb_i.c e_ofb_r2.c e_ofb_r5.c e_rc4.c e_xcbc_d.c \
- encode.c evp_enc.c evp_err.c evp_key.c evp_lib.c evp_pbe.c \
- evp_pkey.c m_dss.c m_dss1.c m_md2.c m_md5.c m_mdc2.c m_null.c \
- m_ripemd.c m_sha.c m_sha1.c names.c p5_crpt.c p5_crpt2.c p_dec.c \
- p_enc.c p_lib.c p_open.c p_seal.c p_sign.c p_verify.c
+SRCS+= bio_b64.c bio_enc.c bio_md.c bio_ok.c c_all.c c_allc.c c_alld.c \
+ digest.c e_cbc_3d.c e_cbc_bf.c e_cbc_c.c e_cbc_d.c e_cbc_i.c \
+ e_cbc_r2.c e_cbc_r5.c e_cfb_3d.c e_cfb_bf.c e_cfb_c.c e_cfb_d.c \
+ e_cfb_i.c e_cfb_r2.c e_cfb_r5.c e_ecb_3d.c e_ecb_bf.c e_ecb_c.c \
+ e_ecb_d.c e_ecb_i.c e_ecb_r2.c e_ecb_r5.c e_null.c e_ofb_3d.c \
+ e_ofb_bf.c e_ofb_c.c e_ofb_d.c e_ofb_i.c e_ofb_r2.c e_ofb_r5.c \
+ e_rc4.c e_xcbc_d.c encode.c evp_enc.c evp_err.c evp_key.c \
+ evp_lib.c evp_pbe.c evp_pkey.c m_dss.c m_dss1.c m_md2.c m_md5.c \
+ m_mdc2.c m_null.c m_ripemd.c m_sha.c m_sha1.c names.c p5_crpt.c \
+ p5_crpt2.c p_dec.c p_enc.c p_lib.c p_open.c p_seal.c p_sign.c \
+ p_verify.c
# hmac
SRCS+= hmac.c
@@ -114,15 +117,15 @@ SRCS+= o_names.c obj_dat.c obj_err.c obj_lib.c
SRCS+= pem_all.c pem_err.c pem_info.c pem_lib.c pem_seal.c pem_sign.c
# pkcs7
-SRCS+= pk7_doit.c pk7_lib.c pkcs7err.c
+SRCS+= pk7_attr.c pk7_doit.c pk7_lib.c pk7_mime.c pk7_smime.c pkcs7err.c
# pkcs12
SRCS+= p12_add.c p12_attr.c p12_bags.c p12_crpt.c p12_crt.c p12_decr.c \
p12_init.c p12_key.c p12_kiss.c p12_lib.c p12_mac.c p12_mutl.c \
- p12_sbag.c p12_utl.c pk12err.c
+ p12_npas.c p12_sbag.c p12_utl.c pk12err.c
# rand
-SRCS+= md_rand.c rand_lib.c randfile.c
+SRCS+= md_rand.c rand_egd.c rand_err.c rand_lib.c randfile.c
# rc2
SRCS+= rc2_cbc.c rc2cfb64.c rc2_ecb.c rc2ofb64.c rc2_skey.c
@@ -138,8 +141,8 @@ SRCS+= rmd_dgst.c rmd_one.c
# rsa
.if defined(WITH_RSA) && ${WITH_RSA} == YES
-SRCS+= rsa_chk.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 rsa_stubs.c
+SRCS+= rsa_chk.c rsa_err.c rsa_gen.c rsa_lib.c rsa_none.c rsa_null.c \
+ rsa_oaep.c rsa_pk1.c rsa_saos.c rsa_sign.c rsa_ssl.c rsa_stubs.c
.endif
# sha
@@ -152,15 +155,16 @@ SRCS+= stack.c
SRCS+= txt_db.c
# x509
-SRCS+= by_dir.c by_file.c x509_cmp.c x509_d2.c x509_def.c x509_err.c \
- x509_ext.c x509_lu.c x509_obj.c x509_r2x.c x509_req.c x509_set.c \
- x509_txt.c x509_v3.c x509_vfy.c x509name.c x509rset.c x509type.c \
- x_all.c
+SRCS+= by_dir.c by_file.c x509_att.c x509_cmp.c x509_d2.c x509_def.c \
+ x509_err.c x509_ext.c x509_lu.c x509_obj.c x509_r2x.c x509_req.c \
+ x509_set.c x509_trs.c x509_txt.c x509_v3.c x509_vfy.c x509name.c \
+ x509rset.c x509spki.c x509type.c x_all.c
# x509v3
SRCS+= v3_akey.c v3_alt.c v3_bcons.c v3_bitst.c v3_conf.c v3_cpols.c \
- v3_crld.c v3_enum.c v3_extku.c v3_genn.c v3_ia5.c v3_int.c \
- v3_lib.c v3_pku.c v3_prn.c v3_skey.c v3_sxnet.c v3_utl.c v3err.c
+ v3_crld.c v3_enum.c v3_extku.c v3_genn.c v3_ia5.c v3_info.c v3_int.c \
+ v3_lib.c v3_pku.c v3_prn.c v3_purp.c v3_skey.c v3_sxnet.c v3_utl.c \
+ v3err.c
HDRS= asn1/asn1.h asn1/asn1_mac.h bio/bio.h bf/blowfish.h bn/bn.h \
buffer/buffer.h cast/cast.h comp/comp.h conf/conf.h crypto.h \
@@ -176,6 +180,66 @@ HDRS= asn1/asn1.h asn1/asn1_mac.h bio/bio.h bf/blowfish.h bn/bn.h \
CRYPTO_HDRS+= ${LCRYPTO_SRC}/${h}
.endfor
+POD1+= apps/CA.pl.pod apps/asn1parse.pod apps/ca.pod apps/ciphers.pod \
+ apps/config.pod apps/crl.pod apps/crl2pkcs7.pod apps/dgst.pod \
+ apps/dhparam.pod apps/dsa.pod apps/dsaparam.pod apps/enc.pod \
+ apps/gendsa.pod apps/genrsa.pod apps/nseq.pod apps/openssl.pod \
+ apps/passwd.pod apps/pkcs12.pod apps/pkcs7.pod apps/pkcs8.pod \
+ apps/req.pod apps/rsa.pod apps/s_client.pod apps/s_server.pod \
+ apps/sess_id.pod apps/smime.pod apps/speed.pod apps/spkac.pod \
+ apps/verify.pod apps/version.pod apps/x509.pod
+
+POD3+= crypto/BN_CTX_new.pod crypto/BN_CTX_start.pod crypto/BN_add.pod \
+ crypto/BN_add_word.pod crypto/BN_bn2bin.pod crypto/BN_cmp.pod \
+ crypto/BN_copy.pod crypto/BN_generate_prime.pod \
+ crypto/BN_mod_inverse.pod crypto/BN_mod_mul_montgomery.pod \
+ crypto/BN_mod_mul_reciprocal.pod crypto/BN_new.pod \
+ crypto/BN_num_bytes.pod crypto/BN_rand.pod crypto/BN_set_bit.pod \
+ crypto/BN_zero.pod crypto/CRYPTO_set_ex_data.pod \
+ crypto/DH_generate_key.pod crypto/DH_generate_parameters.pod \
+ crypto/DH_get_ex_new_index.pod crypto/DH_new.pod \
+ crypto/DH_set_method.pod crypto/DH_size.pod crypto/DSA_SIG_new.pod \
+ crypto/DSA_do_sign.pod crypto/DSA_dup_DH.pod \
+ crypto/DSA_generate_key.pod crypto/DSA_generate_parameters.pod \
+ crypto/DSA_get_ex_new_index.pod crypto/DSA_new.pod \
+ crypto/DSA_set_method.pod crypto/DSA_sign.pod crypto/DSA_size.pod \
+ crypto/ERR_GET_LIB.pod crypto/ERR_clear_error.pod \
+ crypto/ERR_error_string.pod crypto/ERR_get_error.pod \
+ crypto/ERR_load_crypto_strings.pod crypto/ERR_load_strings.pod \
+ crypto/ERR_print_errors.pod crypto/ERR_put_error.pod \
+ crypto/ERR_remove_state.pod crypto/EVP_DigestInit.pod \
+ crypto/EVP_EncryptInit.pod crypto/OPENSSL_VERSION_NUMBER.pod \
+ crypto/OpenSSL_add_all_algorithms.pod crypto/RAND_add.pod \
+ crypto/RAND_bytes.pod crypto/RAND_cleanup.pod crypto/RAND_egd.pod \
+ crypto/RAND_load_file.pod crypto/RAND_set_rand_method.pod \
+ crypto/RSA_blinding_on.pod crypto/RSA_check_key.pod \
+ crypto/RSA_generate_key.pod crypto/RSA_get_ex_new_index.pod \
+ crypto/RSA_new.pod crypto/RSA_padding_add_PKCS1_type_1.pod \
+ crypto/RSA_print.pod crypto/RSA_private_encrypt.pod \
+ crypto/RSA_public_encrypt.pod crypto/RSA_set_method.pod \
+ crypto/RSA_sign.pod crypto/RSA_sign_ASN1_OCTET_STRING.pod \
+ crypto/RSA_size.pod crypto/blowfish.pod crypto/bn.pod \
+ crypto/bn_internal.pod crypto/buffer.pod crypto/crypto.pod \
+ crypto/d2i_DHparams.pod crypto/d2i_RSAPublicKey.pod \
+ crypto/des_modes.pod crypto/dh.pod crypto/dsa.pod crypto/err.pod \
+ crypto/hmac.pod crypto/lh_stats.pod crypto/lhash.pod crypto/md5.pod \
+ crypto/mdc2.pod crypto/rand.pod crypto/rc4.pod crypto/ripemd.pod \
+ crypto/rsa.pod crypto/sha.pod crypto/threads.pod
+
+POD3+= ssl/SSL_get_error.pod ssl/ssl.pod
+
+#.for section in 1 3
+#.for pod in ${POD${section}}
+#.for target in ${pod:T:S/.pod/.${section}/g}
+#MAN${section}+= ${target}
+#CLEANFILES+= ${target}
+#all-man: ${target}
+#${target}: ${LCRYPTO_SRC}/../doc/${pod}
+# pod2man ${LCRYPTO_SRC}/../doc/${pod} > ${target}
+#.endfor
+#.endfor
+#.endfor
+
MAN3= des_crypt.3
MLINKS= des_crypt.3 des_read_password.3 \
@@ -190,36 +254,6 @@ MLINKS= des_crypt.3 des_read_password.3 \
des_crypt.3 des_enc_read.3 des_crypt.3 des_enc_write.3 \
des_crypt.3 des_set_odd_parity.3 des_crypt.3 des_is_weak_key.3
-GENHDRS+= obj_dat.h buildinf.h
-SRCS+= ${GENHDRS}
-CLEANFILES+= ${GENHDRS}
-CLEANDIRS+= openssl
-
-# this bogus dependacy was the easiest way to get the openssl/
-# directory populated
-${GENHDRS}: openssl/opensslconf.h openssl/headers-copied
-
-obj_dat.h: ${LCRYPTO_SRC}/objects/obj_dat.pl
- perl ${LCRYPTO_SRC}/objects/obj_dat.pl \
- < ${LCRYPTO_SRC}/objects/objects.h > ${.TARGET}
-
-buildinf.h:
- ( echo "#ifndef MK1MF_BUILD"; \
- echo " /* auto-generated by crypto/Makefile.ssl for crypto/cversion.c */"; \
- echo " #define CFLAGS \"$(CC)\""; \
- echo " #define PLATFORM \"`uname -s`-`uname -m`\""; \
- echo " #define DATE \"`date`\""; \
- echo "#endif" ) > ${.TARGET}
-
-openssl/opensslconf.h: opensslconf-${MACHINE_ARCH}.h
- @test -d openssl || mkdir -p openssl
- cp ${.OODATE} ${.TARGET}
-
-openssl/headers-copied:
- @test -d openssl || mkdir -p openssl
- ${INSTALL} ${COPY} -m 444 ${CRYPTO_HDRS} openssl
- @touch ${.TARGET}
-
beforeinstall: openssl/opensslconf.h
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 444 \
${CRYPTO_HDRS} openssl/opensslconf.h \
diff --git a/secure/lib/libcrypto/Makefile.inc b/secure/lib/libcrypto/Makefile.inc
index 6391c68..02db4b5 100644
--- a/secure/lib/libcrypto/Makefile.inc
+++ b/secure/lib/libcrypto/Makefile.inc
@@ -14,3 +14,26 @@ CFLAGS+= -DDEVRANDOM=\"/dev/urandom\"
.endif
WITH_RSA?= YES
+
+SRCS+= buildinf.h
+CLEANFILES+= buildinf.h
+CLEANDIRS+= openssl
+
+# this bogus dependency was the easiest way to get the openssl/
+# directory populated
+buildinf.h: openssl/opensslconf.h openssl/headers-copied
+ ( echo "#ifndef MK1MF_BUILD"; \
+ echo " /* auto-generated by crypto/Makefile.ssl for crypto/cversion.c */"; \
+ echo " #define CFLAGS \"$(CC)\""; \
+ echo " #define PLATFORM \"`uname -s`-`uname -m`\""; \
+ echo " #define DATE \"`date`\""; \
+ echo "#endif" ) > ${.TARGET}
+
+openssl/opensslconf.h: ../libcrypto/opensslconf-${MACHINE_ARCH}.h
+ @test -d openssl || mkdir -p openssl
+ cp ${.OODATE} ${.TARGET}
+
+openssl/headers-copied:
+ @test -d openssl || mkdir -p openssl
+ ${INSTALL} ${COPY} -m 444 ${CRYPTO_HDRS} ${EXTRA_HDRS} openssl
+ @touch ${.TARGET}
diff --git a/secure/lib/libcrypto/opensslconf-i386.h b/secure/lib/libcrypto/opensslconf-i386.h
index d80b68f..fc3cf04 100644
--- a/secure/lib/libcrypto/opensslconf-i386.h
+++ b/secure/lib/libcrypto/opensslconf-i386.h
@@ -1,7 +1,24 @@
/* $FreeBSD$ */
+/* opensslconf.h */
-/* crypto/opensslconf.h */
-/* WARNING: This file is autogenerated by Configure */
+/* WARNING: Generated automatically from opensslconf.h.in by Configure. */
+
+/* OpenSSL was configured with the following options: */
+#ifdef OPENSSL_ALGORITHM_DEFINES
+ /* no ciphers excluded */
+#endif
+#ifdef OPENSSL_THREAD_DEFINES
+# ifndef THREADS
+# define THREADS
+# endif
+#endif
+#ifdef OPENSSL_OTHER_DEFINES
+# ifndef NO_ASM
+# define NO_ASM
+# endif
+#endif
+
+/* crypto/opensslconf.h.in */
/* Generate 80386 code? */
#undef I386_ONLY
@@ -27,11 +44,25 @@
#define RC2_INT unsigned int
#endif
-#if defined(HEADER_RC4_H) && !defined(RC4_INT)
+#if defined(HEADER_RC4_H)
+#if !defined(RC4_INT)
/* using int types make the structure larger but make the code faster
* on most boxes I have tested - up to %20 faster. */
+/*
+ * I don't know what does "most" mean, but declaring "int" is a must on:
+ * - Intel P6 because partial register stalls are very expensive;
+ * - elder Alpha because it lacks byte load/store instructions;
+ */
#define RC4_INT unsigned int
#endif
+#if !defined(RC4_CHUNK)
+/*
+ * This enables code handling data aligned at natural CPU word
+ * boundary. See crypto/rc4/rc4_enc.c for further details.
+ */
+#undef RC4_CHUNK
+#endif
+#endif
#if defined(HEADER_DES_H) && !defined(DES_LONG)
/* If this is set to 'unsigned int' on a DEC Alpha, this gives about a
diff --git a/secure/lib/libssl/Makefile b/secure/lib/libssl/Makefile
index 4e649c0..e8d4ba5 100644
--- a/secure/lib/libssl/Makefile
+++ b/secure/lib/libssl/Makefile
@@ -2,28 +2,24 @@
.include "../libcrypto/Makefile.inc"
-LOPENSSL_SRC= ${.CURDIR}/../../../crypto/openssl/ssl
+LCRYPTOSSL_SRC=${LCRYPTO_SRC}/../ssl
-.PATH: ${LOPENSSL_SRC}
+.PATH: ${LCRYPTOSSL_SRC}
LIB= ssl
SHLIB_MAJOR= 1
MAINTAINER= kris
-SRCS= bio_ssl.c s23_clnt.c s23_lib.c s23_meth.c s23_pkt.c s23_srvr.c \
+SRCS+= bio_ssl.c s23_clnt.c s23_lib.c s23_meth.c s23_pkt.c s23_srvr.c \
s2_clnt.c s2_enc.c s2_lib.c s2_meth.c s2_pkt.c s2_srvr.c s3_both.c \
s3_clnt.c s3_enc.c s3_lib.c s3_meth.c s3_pkt.c s3_srvr.c ssl_algs.c \
ssl_asn1.c ssl_cert.c ssl_ciph.c ssl_err.c ssl_err2.c ssl_lib.c \
ssl_rsa.c ssl_sess.c ssl_stat.c ssl_txt.c t1_clnt.c t1_enc.c \
- t1_lib.c t1_meth.c t1_srvr.c
+ t1_lib.c t1_meth.c t1_srvr.c
HDRS= ssl.h ssl2.h ssl23.h ssl3.h ssl_locl.h tls1.h
-.for h in ${HDRS}
-BUILD_HDRS_OPENSSL+= ${LOPENSSL_SRC}/${h}
-.endfor
-
CRYPTOHDRS= asn1/asn1.h asn1/asn1_mac.h bio/bio.h bf/blowfish.h bn/bn.h \
buffer/buffer.h cast/cast.h comp/comp.h conf/conf.h crypto.h \
des/des.h dh/dh.h dsa/dsa.h ../e_os.h ../e_os2.h ebcdic.h \
@@ -34,29 +30,17 @@ CRYPTOHDRS= asn1/asn1.h asn1/asn1_mac.h bio/bio.h bf/blowfish.h bn/bn.h \
sha/sha.h stack/stack.h tmdiff.h txt_db/txt_db.h x509/x509.h \
x509/x509_vfy.h x509v3/x509v3.h
-.for h in ${CRYPTOHDRS}
-BUILD_HDRS_CRYPTO+= ${LCRYPTO_SRC}/${h}
+.for h in ${HDRS}
+CRYPTO_HDRS+= ${LCRYPTOSSL_SRC}/${h}
.endfor
-# this bogus header was the easiest way to get the openssl/
-# directory populated
-SRCS+= openssl/headers-copied.h
-CLEANDIRS+= openssl
-
-openssl/opensslconf.h: ${.CURDIR}/../libcrypto/opensslconf-${MACHINE_ARCH}.h
- @test -d openssl || mkdir -p openssl
- cp ${.OODATE} ${.TARGET}
-
-openssl/headers-copied.h: openssl/opensslconf.h
- @test -d openssl || mkdir -p openssl
- ${INSTALL} ${COPY} -m 444 \
- ${BUILD_HDRS_OPENSSL} ${BUILD_HDRS_CRYPTO} \
- openssl
- @touch ${.TARGET}
+.for h in ${CRYPTOHDRS}
+EXTRA_HDRS+= ${LCRYPTO_SRC}/${h}
+.endfor
-beforeinstall:
+beforeinstall: openssl/opensslconf.h
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 444 \
- ${BUILD_HDRS_OPENSSL} \
+ ${CRYPTO_HDRS} openssl/opensslconf.h \
${DESTDIR}/usr/include/openssl
.include <bsd.lib.mk>
diff --git a/secure/usr.bin/openssl/Makefile b/secure/usr.bin/openssl/Makefile
index 93c19d8..7499cb7 100644
--- a/secure/usr.bin/openssl/Makefile
+++ b/secure/usr.bin/openssl/Makefile
@@ -17,11 +17,11 @@ WITH_RSA?= YES
CFLAGS+= -DNO_RSA -DNO_SSL2
.endif
-SRCS= apps.c asn1pars.c ca.c ciphers.c crl.c crl2p7.c dgst.c dh.c \
- dsa.c dsaparam.c enc.c errstr.c gendh.c gendsa.c genrsa.c \
- nseq.c openssl.c pkcs12.c pkcs7.c pkcs8.c req.c rsa.c s_cb.c \
- s_client.c s_server.c s_socket.c s_time.c sess_id.c speed.c \
- verify.c version.c x509.c
+SRCS= app_rand.c apps.c asn1pars.c ca.c ciphers.c crl.c crl2p7.c dgst.c \
+ dh.c dhparam.c dsa.c dsaparam.c enc.c errstr.c gendh.c gendsa.c \
+ genrsa.c nseq.c openssl.c passwd.c pkcs12.c pkcs7.c pkcs8.c rand.c \
+ req.c rsa.c s_cb.c s_client.c s_server.c s_socket.c s_time.c \
+ sess_id.c smime.c speed.c spkac.c verify.c version.c x509.c
.PATH: ${OPENSSL_SRC}
OpenPOWER on IntegriCloud