Update build for OpenSSL-1.0.0a.
[dragonfly.git] / secure / lib / libcrypto / Makefile
index 1754ff6..9317ca0 100644 (file)
@@ -13,11 +13,9 @@ NOLINT=              true
 .include "Makefile.inc"
 
 # base sources
-SRCS=  cpt_err.c cryptlib.c cversion.c dyn_lck.c ebcdic.c ex_data.c \
-       fips_err.c mem.c mem_clr.c \
-       mem_dbg.c o_dir.c o_init.c o_time.c tmdiff.c uid.c
-INCS=  ../e_os.h ../e_os2.h crypto.h ebcdic.h fips_err.h \
-       opensslv.h ossl_typ.h symhacks.h tmdiff.h
+SRCS=  cpt_err.c cryptlib.c cversion.c ebcdic.c ex_data.c \
+       mem.c mem_clr.c mem_dbg.c o_dir.c o_time.c uid.c
+INCS=  ../e_os.h ../e_os2.h crypto.h ebcdic.h opensslv.h ossl_typ.h symhacks.h
 
 # aes
 SRCS+= aes_cbc.c aes_cfb.c aes_core.c aes_ctr.c aes_ecb.c aes_ige.c \
@@ -26,18 +24,18 @@ INCS+=      aes.h aes_locl.h
 
 # asn1
 SRCS+= a_bitstr.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_mbstr.c a_meth.c a_object.c a_octet.c a_print.c \
+       a_dup.c a_enum.c a_gentm.c a_i2d_fp.c a_int.c \
+       a_mbstr.c a_object.c a_octet.c a_print.c \
        a_set.c a_sign.c a_strex.c a_strnid.c a_time.c a_type.c \
-       a_utctm.c a_utf8.c a_verify.c asn1_err.c asn1_lib.c \
+       a_utctm.c a_utf8.c a_verify.c ameth_lib.c asn1_err.c asn1_lib.c \
        asn1_gen.c asn1_par.c asn_mime.c \
-       asn_moid.c asn_pack.c d2i_pr.c d2i_pu.c \
+       asn_moid.c asn_pack.c bio_asn1.c bio_ndef.c d2i_pr.c d2i_pu.c \
        evp_asn1.c f_enum.c f_int.c f_string.c i2d_pr.c i2d_pu.c \
        n_pkey.c nsseq.c p5_pbe.c p5_pbev2.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 \
-       tasn_dec.c tasn_enc.c tasn_fre.c tasn_new.c tasn_typ.c \
+       tasn_dec.c tasn_enc.c tasn_fre.c tasn_new.c tasn_prn.c tasn_typ.c \
        tasn_utl.c x_algor.c x_attrib.c x_bignum.c x_crl.c \
-       x_exten.c x_info.c x_long.c x_name.c x_pkey.c x_pubkey.c \
+       x_exten.c x_info.c x_long.c x_name.c x_nx509.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
 INCS+= asn1.h asn1_mac.h asn1t.h
 
@@ -56,19 +54,18 @@ INCS+=      bio.h
 SRCS+= bn_add.c bn_asm.c bn_blind.c bn_const.c bn_ctx.c bn_depr.c \
        bn_div.c bn_err.c bn_exp.c \
        bn_exp2.c bn_gcd.c bn_gf2m.c bn_kron.c bn_lib.c bn_mod.c bn_mont.c \
-       bn_mpi.c bn_mul.c bn_nist.c bn_opt.c \
+       bn_mpi.c bn_mul.c bn_nist.c \
        bn_prime.c bn_print.c bn_rand.c bn_recp.c \
-       bn_shift.c bn_sqr.c bn_sqrt.c bn_word.c bn_x931p.c
+       bn_shift.c bn_sqr.c bn_sqrt.c bn_word.c
 INCS+= bn.h
 
 # buffer
-SRCS+= buf_err.c buf_str.c buffer.c
+SRCS+= buf_err.c buffer.c
 INCS+= buffer.h
 
 # camellia
-# still disabled in 0.9.8
-#SRCS+=        camellia.c cmll_misc.c cmll_ecb.c cmll_cbc.c cmll_ofb.c \
-#      cmll_cfb.c cmll_ctr.c 
+SRCS+= camellia.c cmll_cbc.c cmll_cfb.c \
+       cmll_ctr.c cmll_ecb.c cmll_misc.c cmll_ofb.c
 INCS+= camellia.h
 
 # cast
@@ -76,8 +73,9 @@ SRCS+=        c_cfb64.c c_ecb.c c_enc.c c_ofb64.c c_skey.c
 INCS+= cast.h
 
 # cms
-#SRCS+=        cms_att.c cms_att.c cms_cd.c cms_dd.c cms_enc.c cms_env.c cms_err.c \
-#      cms_ess.c cms_io.c cms_lib.c cms_sd.c cms_smime.c
+SRCS+= cms_asn1.c cms_att.c cms_cd.c cms_dd.c cms_enc.c cms_env.c cms_err.c \
+       cms_ess.c cms_io.c cms_lib.c cms_sd.c cms_smime.c
+INCS+= cms.h
 
 # comp
 SRCS+= c_rle.c c_zlib.c comp_err.c comp_lib.c
@@ -89,7 +87,7 @@ INCS+=        conf.h conf_api.h
 
 # des
 SRCS+= cbc3_enc.c cbc_cksm.c cbc_enc.c cfb64ede.c cfb64enc.c cfb_enc.c \
-       des_enc.c des_lib.c des_old.c des_old2.c \
+       des_enc.c des_old.c des_old2.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 \
@@ -97,12 +95,14 @@ SRCS+=      cbc3_enc.c cbc_cksm.c cbc_enc.c cfb64ede.c cfb64enc.c cfb_enc.c \
 INCS+= des.h des_old.h
 
 # dh
-SRCS+= dh_asn1.c dh_check.c dh_depr.c dh_err.c dh_gen.c dh_key.c dh_lib.c
+SRCS+= dh_ameth.c dh_asn1.c dh_check.c dh_depr.c \
+       dh_err.c dh_gen.c dh_key.c dh_lib.c dh_pmeth.c dh_prn.c
 INCS+= dh.h
 
 # dsa
-SRCS+= dsa_asn1.c dsa_depr.c dsa_err.c dsa_gen.c dsa_key.c dsa_lib.c \
-       dsa_ossl.c dsa_sign.c dsa_utl.c dsa_vrf.c
+SRCS+= dsa_ameth.c dsa_asn1.c dsa_depr.c dsa_err.c \
+       dsa_gen.c dsa_key.c dsa_lib.c \
+       dsa_ossl.c dsa_pmeth.c dsa_prn.c dsa_sign.c dsa_vrf.c
 INCS+= dsa.h
 
 # dso
@@ -110,8 +110,10 @@ SRCS+=     dso_dl.c dso_dlfcn.c dso_err.c dso_lib.c dso_null.c dso_openssl.c
 INCS+= dso.h
 
 # ec
-SRCS+= ec_asn1.c ec_check.c ec_curve.c ec_cvt.c ec_err.c ec_key.c ec_lib.c \
-       ec_mult.c ec_print.c ec2_smpl.c ec2_mult.c ecp_mont.c ecp_nist.c \
+SRCS+= ec_ameth.c ec_asn1.c ec_check.c ec_curve.c \
+       ec_cvt.c ec_err.c ec_key.c ec_lib.c \
+       ec_mult.c ec_pmeth.c ec_print.c ec2_smpl.c ec2_mult.c \
+       eck_prn.c ecp_mont.c ecp_nist.c \
        ecp_smpl.c
 INCS+= ec.h
 
@@ -125,35 +127,42 @@ INCS+=    ecdsa.h
 
 # engine
 SRCS+= eng_all.c eng_cnf.c eng_cryptodev.c eng_ctrl.c eng_dyn.c eng_err.c \
-       eng_fat.c eng_init.c eng_lib.c eng_list.c eng_openssl.c eng_padlock.c \
-       eng_pkey.c eng_table.c tb_cipher.c tb_dh.c tb_ecdh.c tb_ecdsa.c \
-       tb_digest.c tb_dsa.c tb_rand.c tb_rsa.c tb_store.c
+       eng_fat.c eng_init.c eng_lib.c eng_list.c eng_openssl.c \
+       eng_pkey.c eng_table.c tb_asnmth.c tb_cipher.c tb_dh.c \
+       tb_digest.c tb_dsa.c tb_ecdh.c tb_ecdsa.c \
+       tb_pkmeth.c tb_rand.c tb_rsa.c tb_store.c
 INCS+= eng_int.h engine.h
 
 # engines
 CFLAGS+=-DOPENSSL_NO_DYNAMIC_ENGINE    # needs more hacking
-SRCS+= e_4758cca.c e_aep.c e_atalla.c e_chil.c e_cswift.c e_gmp.c \
-       e_nuron.c e_sureware.c e_ubsec.c
+SRCS+= e_4758cca.c e_aep.c e_atalla.c e_capi.c e_chil.c e_cswift.c e_gmp.c \
+       e_nuron.c e_padlock.c e_sureware.c e_ubsec.c
+
+# engines/ccgost
+SRCS+= e_gost_err.c gost2001.c gost2001_keyx.c gost89.c gost94_keyx.c \
+       gost_ameth.c gost_asn1.c gost_crypt.c gost_ctl.c gost_eng.c \
+       gost_keywrap.c gost_md.c gost_params.c gost_pmeth.c gost_sign.c \
+       gosthash.c
 
 # err
-SRCS+= err.c err_all.c err_bio.c err_def.c err_prn.c err_str.c
+SRCS+= err.c err_all.c err_prn.c
 INCS+= err.h
 
 # evp
 SRCS+= bio_b64.c bio_enc.c bio_md.c bio_ok.c c_all.c c_allc.c c_alld.c \
-       dig_eng.c \
        digest.c e_aes.c e_bf.c e_camellia.c e_cast.c e_des.c e_des3.c \
-       e_idea.c e_null.c e_rc2.c e_rc4.c e_rc5.c e_xcbc_d.c \
-       enc_min.c encode.c \
-       evp_acnf.c evp_cnf.c evp_enc.c evp_err.c evp_key.c evp_lib.c evp_pbe.c \
+       e_idea.c e_null.c e_rc2.c e_rc4.c e_rc5.c e_seed.c e_xcbc_d.c \
+       encode.c \
+       evp_acnf.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_ecdsa.c m_md2.c m_md4.c m_md5.c \
-       m_mdc2.c m_null.c m_ripemd.c m_sha.c m_sha1.c names.c openbsd_hw.c \
+       m_mdc2.c m_null.c m_ripemd.c m_sha.c m_sha1.c \
+       m_sigver.c m_wp.c names.c openbsd_hw.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
+       p_sign.c p_verify.c pmeth_fn.c pmeth_gn.c pmeth_lib.c
 INCS+= evp.h
 
 # hmac
-SRCS+= hmac.c
+SRCS+= hm_ameth.c hm_pmeth.c hmac.c
 INCS+= hmac.h
 
 # idea
@@ -172,8 +181,8 @@ SRCS+=      lh_stats.c lhash.c
 INCS+= lhash.h
 
 # md2
-SRCS+= md2_dgst.c md2_one.c
-INCS+= md2.h
+#SRCS+=        md2_dgst.c md2_one.c
+#INCS+=        md2.h
 
 # md4
 SRCS+= md4_dgst.c md4_one.c
@@ -184,12 +193,15 @@ SRCS+=    md5_dgst.c md5_one.c
 INCS+= md5.h
 
 # mdc2
-# ... is patented, so don't compile by default.
-#SRCS+=        mdc2_one.c mdc2dgst.c
+SRCS+= mdc2_one.c mdc2dgst.c
 INCS+= mdc2.h
 
+# modes
+SRCS+= cbc128.c cfb128.c ctr128.c cts128.c ofb128.c
+INCS+= modes.h
+
 # objects
-SRCS+= o_names.c obj_dat.c obj_err.c obj_lib.c
+SRCS+= o_names.c obj_dat.c obj_err.c obj_lib.c obj_xref.c
 INCS+= objects.h obj_mac.h
 
 # ocsp
@@ -199,7 +211,7 @@ INCS+=      ocsp.h
 
 # pem
 SRCS+= pem_all.c pem_err.c pem_info.c pem_lib.c pem_oth.c pem_pk8.c \
-       pem_pkey.c pem_seal.c pem_sign.c pem_x509.c pem_xaux.c
+       pem_pkey.c pem_seal.c pem_sign.c pem_x509.c pem_xaux.c pvkfmt.c
 INCS+= pem.h pem2.h
 
 # pkcs12
@@ -209,16 +221,16 @@ SRCS+=    p12_add.c p12_asn.c p12_attr.c p12_crpt.c p12_crt.c \
 INCS+= pkcs12.h
 
 # pkcs7
-SRCS+= example.c pk7_asn1.c pk7_attr.c pk7_dgst.c pk7_doit.c \
+SRCS+= bio_pk7.c example.c pk7_asn1.c pk7_attr.c pk7_dgst.c pk7_doit.c \
        pk7_lib.c pk7_mime.c pk7_smime.c pkcs7err.c
 INCS+= pkcs7.h
 
 # pqueue
 SRCS+= pqueue.c
-INCS+= pqueue.h pq_compat.h
+INCS+= pqueue.h
 
 # rand
-SRCS+= md_rand.c rand_egd.c rand_eng.c \
+SRCS+= md_rand.c rand_egd.c \
        rand_err.c rand_lib.c rand_nw.c rand_unix.c \
        randfile.c
 INCS+= rand.h
@@ -228,25 +240,30 @@ SRCS+=    rc2_cbc.c rc2_ecb.c rc2_skey.c rc2cfb64.c rc2ofb64.c
 INCS+= rc2.h
 
 # rc4
-SRCS+= rc4_enc.c rc4_fblk.c rc4_skey.c
+SRCS+= rc4_enc.c rc4_skey.c
 INCS+= rc4.h
 
 # rc5
 # .. is patented, so don't compile by default
 #SRCS+=        rc5_ecb.c rc5_enc.c rc5_skey.c rc5cfb64.c rc5ofb64.c
-INCS+= rc5.h
+#INCS+=        rc5.h
 
 # ripemd
 SRCS+= rmd_dgst.c rmd_one.c
 INCS+= ripemd.h
 
 # rsa
-SRCS+= rsa_asn1.c rsa_chk.c rsa_depr.c rsa_eay.c \
-       rsa_eng.c rsa_err.c rsa_gen.c \
-       rsa_lib.c rsa_none.c rsa_null.c rsa_oaep.c rsa_pk1.c rsa_pss.c \
-       rsa_saos.c rsa_sign.c rsa_ssl.c rsa_x931.c rsa_x931g.c
+SRCS+= rsa_ameth.c rsa_asn1.c rsa_chk.c rsa_depr.c rsa_eay.c \
+       rsa_err.c rsa_gen.c \
+       rsa_lib.c rsa_none.c rsa_null.c rsa_oaep.c \
+       rsa_pk1.c rsa_pmeth.c rsa_prn.c rsa_pss.c \
+       rsa_saos.c rsa_sign.c rsa_ssl.c rsa_x931.c
 INCS+= rsa.h
 
+# seed
+SRCS+= seed.c seed_cbc.c seed_cfb.c seed_ecb.c seed_ofb.c
+INCS+= seed.h
+
 # sha
 SRCS+= sha1_one.c sha1dgst.c sha256.c sha512.c sha_dgst.c sha_one.c
 INCS+= sha.h
@@ -256,8 +273,14 @@ SRCS+=     stack.c
 INCS+= stack.h safestack.h
 
 # store
-SRCS+= str_err.c str_lib.c str_meth.c str_mem.c
-INCS+= store.h
+#SRCS+=        str_err.c str_lib.c str_meth.c str_mem.c
+#INCS+=        store.h
+
+# ts
+SRCS+= ts_asn1.c ts_conf.c ts_err.c ts_lib.c \
+       ts_req_print.c ts_req_utils.c ts_rsp_print.c ts_rsp_sign.c \
+       ts_rsp_utils.c ts_rsp_verify.c ts_verify_ctx.c
+INCS+= ts.h
 
 # txt_db
 SRCS+= txt_db.c
@@ -267,6 +290,10 @@ INCS+=     txt_db.h
 SRCS+= ui_compat.c ui_err.c ui_lib.c ui_openssl.c ui_util.c
 INCS+= ui.h ui_compat.h ui_locl.h
 
+# whrlpool
+SRCS+= wp_block.c wp_dgst.c
+INCS+= whrlpool.h
+
 # x509
 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 \
@@ -317,6 +344,7 @@ opensslconf.h: opensslconf-${MACHINE_ARCH}.h
        ${LCRYPTO_SRC}/crypto/buffer \
        ${LCRYPTO_SRC}/crypto/camellia \
        ${LCRYPTO_SRC}/crypto/cast \
+       ${LCRYPTO_SRC}/crypto/cms \
        ${LCRYPTO_SRC}/crypto/comp \
        ${LCRYPTO_SRC}/crypto/conf \
        ${LCRYPTO_SRC}/crypto/des \
@@ -331,12 +359,11 @@ opensslconf.h: opensslconf-${MACHINE_ARCH}.h
        ${LCRYPTO_SRC}/crypto/evp \
        ${LCRYPTO_SRC}/crypto/hmac \
        ${_ideapath} \
-       ${LCRYPTO_SRC}/crypto/krb5 \
        ${LCRYPTO_SRC}/crypto/lhash \
-       ${LCRYPTO_SRC}/crypto/md2 \
        ${LCRYPTO_SRC}/crypto/md4 \
        ${LCRYPTO_SRC}/crypto/md5 \
        ${LCRYPTO_SRC}/crypto/mdc2 \
+       ${LCRYPTO_SRC}/crypto/modes \
        ${LCRYPTO_SRC}/crypto/objects \
        ${LCRYPTO_SRC}/crypto/ocsp \
        ${LCRYPTO_SRC}/crypto/pem \
@@ -346,17 +373,19 @@ opensslconf.h: opensslconf-${MACHINE_ARCH}.h
        ${LCRYPTO_SRC}/crypto/rand \
        ${LCRYPTO_SRC}/crypto/rc2 \
        ${LCRYPTO_SRC}/crypto/rc4 \
-       ${LCRYPTO_SRC}/crypto/rc5 \
        ${LCRYPTO_SRC}/crypto/ripemd \
        ${LCRYPTO_SRC}/crypto/rsa \
+       ${LCRYPTO_SRC}/crypto/seed \
        ${LCRYPTO_SRC}/crypto/sha \
        ${LCRYPTO_SRC}/crypto/stack \
-       ${LCRYPTO_SRC}/crypto/store \
        ${LCRYPTO_SRC}/crypto/threads \
+       ${LCRYPTO_SRC}/crypto/ts \
        ${LCRYPTO_SRC}/crypto/txt_db \
        ${LCRYPTO_SRC}/crypto/ui \
+       ${LCRYPTO_SRC}/crypto/whrlpool \
        ${LCRYPTO_SRC}/crypto/x509 \
        ${LCRYPTO_SRC}/crypto/x509v3 \
        ${LCRYPTO_SRC}/engines \
+       ${LCRYPTO_SRC}/engines/ccgost \
        ${LCRYPTO_SRC} \
        ${.CURDIR}/man