1# $FreeBSD$ 2 3SHLIBDIR?= /lib 4SUBDIR= engines modules 5 6.include <bsd.own.mk> 7.include <src.opts.mk> 8 9PACKAGE= openssl 10LIB= crypto 11SHLIB_MAJOR= 30 12VERSION_MAP= ${.CURDIR}/Version.map 13 14NO_LINT= 15PCFILES= libcrypto.pc 16 17.include "Makefile.man" 18.include "Makefile.inc" 19 20SRCS= asn1_dsa.c bsearch.c cpt_err.c context.c core_algorithm.c core_fetch.c core_namemap.c cpuid.c cryptlib.c ctype.c 21SRCS+= cversion.c der_writer.c ebcdic.c ex_data.c getenv.c info.c init.c initthread.c 22SRCS+= mem.c mem_sec.c o_dir.c o_fopen.c o_init.c o_str.c o_time.c packet.c 23SRCS+= param_build.c param_build_set.c params.c params_dup.c params_from_text.c 24SRCS+= passphrase.c provider.c provider_child.c provider_conf.c provider_core.c provider_predefined.c punycode.c self_test_core.c sparse_array.c threads_lib.c threads_none.c threads_pthread.c trace.c uid.c 25.if defined(ASM_aarch64) 26SRCS+= arm64cpuid.S armcap.c 27ACFLAGS.arm64cpuid.S= -march=armv8-a+crypto 28.elif defined(ASM_amd64) 29SRCS+= x86_64cpuid.S 30.elif defined(ASM_arm) 31SRCS+= armv4cpuid.S armcap.c 32.elif defined(ASM_i386) 33SRCS+= x86cpuid.S 34.elif defined(ASM_powerpc) 35SRCS+= ppccpuid.S ppccap.c 36.elif defined(ASM_powerpc64) 37SRCS+= ppccpuid.S ppccap.c 38.elif defined(ASM_powerpc64le) 39SRCS+= ppccpuid.S ppccap.c 40.else 41SRCS+= mem_clr.c 42.endif 43 44# aes 45SRCS+= aes_cbc.c aes_cfb.c aes_ecb.c aes_ige.c aes_misc.c aes_ofb.c aes_wrap.c 46.if defined(ASM_aarch64) 47SRCS+= aes_core.c aesv8-armx.S vpaes-armv8.S 48ACFLAGS.aesv8-armx.S= -march=armv8-a+crypto 49.elif defined(ASM_amd64) 50SRCS+= aes_core.c aesni-mb-x86_64.S aesni-sha1-x86_64.S aesni-sha256-x86_64.S 51SRCS+= aesni-x86_64.S vpaes-x86_64.S 52.elif defined(ASM_arm) 53SRCS+= aes-armv4.S aesv8-armx.S bsaes-armv7.S 54.elif defined(ASM_i386) 55SRCS+= aes_core.c aesni-x86.S vpaes-x86.S 56.elif defined(ASM_powerpc) 57SRCS+= aes_core.c aes-ppc.S vpaes-ppc.S aesp8-ppc.S 58.elif defined(ASM_powerpc64) 59SRCS+= aes_core.c aes-ppc.S vpaes-ppc.S aesp8-ppc.S 60.elif defined(ASM_powerpc64le) 61SRCS+= aes_core.c aes-ppc.S vpaes-ppc.S aesp8-ppc.S 62.else 63SRCS+= aes_core.c 64.endif 65 66# asn1 67SRCS+= a_bitstr.c a_d2i_fp.c a_digest.c a_dup.c a_gentm.c a_i2d_fp.c 68SRCS+= a_int.c a_mbstr.c a_object.c a_octet.c a_print.c a_sign.c a_strex.c 69SRCS+= a_strnid.c a_time.c a_type.c a_utctm.c a_utf8.c a_verify.c 70SRCS+= ameth_lib.c asn1_err.c asn1_gen.c asn1_item_list.c asn1_lib.c 71SRCS+= asn1_parse.c asn_mime.c asn_moid.c asn_mstbl.c asn_pack.c bio_asn1.c 72SRCS+= bio_ndef.c d2i_param.c d2i_pr.c d2i_pu.c evp_asn1.c f_int.c f_string.c 73SRCS+= i2d_evp.c n_pkey.c nsseq.c p5_pbe.c p5_pbev2.c p5_scrypt.c p8_pkey.c 74SRCS+= t_bitst.c t_pkey.c t_spki.c tasn_dec.c tasn_enc.c tasn_fre.c 75SRCS+= tasn_new.c tasn_prn.c tasn_scn.c tasn_typ.c tasn_utl.c x_algor.c 76SRCS+= x_bignum.c x_info.c x_int64.c x_long.c x_pkey.c x_sig.c x_spki.c 77SRCS+= x_val.c 78 79# async 80SRCS+= async.c async_err.c async_posix.c async_wait.c 81 82# bf 83SRCS+= bf_cfb64.c bf_ecb.c bf_ofb64.c bf_prefix.c bf_readbuff.c bf_skey.c 84.if defined(ASM_i386) 85SRCS+= bf-586.S 86.else 87SRCS+= bf_enc.c 88.endif 89 90# bio 91SRCS+= bio_addr.c bio_dump.c bio_print.c bio_sock.c bio_sock2.c bf_buff.c 92SRCS+= bf_lbuf.c bf_nbio.c bf_null.c bio_cb.c bio_err.c bio_lib.c bio_meth.c 93SRCS+= bss_acpt.c bss_bio.c bss_conn.c bss_core.c bss_dgram.c bss_fd.c 94SRCS+= bss_file.c bss_log.c bss_mem.c bss_null.c bss_sock.c ossl_core_bio.c 95 96# bn 97SRCS+= bn_add.c bn_blind.c bn_const.c bn_conv.c bn_ctx.c bn_depr.c bn_dh.c 98SRCS+= bn_div.c bn_err.c bn_exp.c bn_exp2.c bn_gcd.c bn_gf2m.c bn_intern.c 99SRCS+= bn_kron.c bn_lib.c bn_mod.c bn_mont.c bn_mpi.c bn_mul.c bn_nist.c 100SRCS+= bn_prime.c bn_print.c bn_rand.c bn_recp.c bn_rsa_fips186_4.c bn_shift.c 101SRCS+= bn_sqr.c bn_sqrt.c bn_srp.c bn_word.c bn_x931p.c 102.if defined(ASM_aarch64) 103SRCS+= armv8-mont.S bn_asm.c 104.elif defined(ASM_amd64) 105SRCS+= rsaz-avx2.S rsaz-avx512.S rsaz-x86_64.S rsaz_exp.c rsaz_exp_x2.c 106SRCS+= x86_64-gcc.c x86_64-gf2m.S x86_64-mont.S x86_64-mont5.S 107.elif defined(ASM_arm) 108SRCS+= armv4-gf2m.S armv4-mont.S bn_asm.c 109.elif defined(ASM_i386) 110SRCS+= bn-586.S co-586.S x86-gf2m.S x86-mont.S 111.elif defined(ASM_powerpc) 112SRCS+= bn_ppc.c bn-ppc.S ppc-mont.S 113.elif defined(ASM_powerpc64) 114SRCS+= bn_ppc.c bn-ppc.S ppc-mont.S 115.elif defined(ASM_powerpc64le) 116SRCS+= bn_ppc.c bn-ppc.S ppc-mont.S 117.else 118SRCS+= bn_asm.c 119.endif 120 121# Full of strict aliasing violations that LLVM has been seen to break with 122# optimisations, which can lead to ECDSA signatures not working. See 123# https://github.com/openssl/openssl/issues/12247 for the upstream bug report. 124CFLAGS.bn_nist.c+= -fno-strict-aliasing 125 126# buffer 127SRCS+= buf_err.c buffer.c 128 129# camellia 130SRCS+= cmll_cfb.c cmll_ctr.c cmll_ecb.c cmll_ofb.c 131.if defined(ASM_amd64) 132SRCS+= cmll-x86_64.S cmll_misc.c 133.elif defined(ASM_i386) 134SRCS+= cmll-x86.S 135.else 136SRCS+= camellia.c cmll_cbc.c cmll_misc.c 137.endif 138 139# cast 140SRCS+= c_cfb64.c c_ecb.c c_enc.c c_ofb64.c c_skey.c 141 142# chacha 143.if defined(ASM_aarch64) 144SRCS+= chacha-armv8.S 145.elif defined(ASM_amd64) 146SRCS+= chacha-x86_64.S 147.elif defined(ASM_arm) 148SRCS+= chacha-armv4.S 149.elif defined(ASM_i386) 150SRCS+= chacha-x86.S 151.elif defined(ASM_powerpc) 152SRCS+= chacha_ppc.c chacha-ppc.S 153.elif defined(ASM_powerpc64) 154SRCS+= chacha_ppc.c chacha-ppc.S 155.elif defined(ASM_powerpc64le) 156SRCS+= chacha_ppc.c chacha-ppc.S 157.else 158SRCS+= chacha_enc.c 159.endif 160 161# cmac 162SRCS+= cmac.c 163 164# cmp 165SRCS+= cmp_asn.c cmp_client.c cmp_ctx.c cmp_err.c cmp_hdr.c cmp_http.c 166SRCS+= cmp_msg.c cmp_protect.c cmp_server.c cmp_status.c cmp_util.c cmp_vfy.c 167 168# cms 169SRCS+= cms_asn1.c cms_att.c cms_cd.c cms_dd.c cms_dh.c cms_ec.c cms_enc.c 170SRCS+= cms_env.c cms_err.c cms_ess.c cms_io.c cms_kari.c cms_lib.c cms_pwri.c 171SRCS+= cms_rsa.c cms_sd.c cms_smime.c 172 173# comp 174SRCS+= c_zlib.c comp_err.c comp_lib.c 175 176# conf 177SRCS+= conf_api.c conf_def.c conf_err.c conf_lib.c conf_mall.c conf_mod.c 178SRCS+= conf_sap.c conf_ssl.c 179 180# crmf 181SRCS+= crmf_asn.c crmf_err.c crmf_lib.c crmf_pbm.c 182 183# ct 184SRCS+= ct_b64.c ct_err.c ct_log.c ct_oct.c ct_policy.c ct_prn.c ct_sct.c 185SRCS+= ct_sct_ctx.c ct_vfy.c ct_x509v3.c 186 187# des 188SRCS+= cbc_cksm.c cbc_enc.c cfb64ede.c cfb64enc.c cfb_enc.c ecb3_enc.c 189SRCS+= ecb_enc.c fcrypt.c ofb64ede.c ofb64enc.c ofb_enc.c pcbc_enc.c 190SRCS+= qud_cksm.c rand_key.c set_key.c str2key.c xcbc_enc.c 191.if defined(ASM_i386) 192SRCS+= crypt586.S des-586.S 193.else 194SRCS+= des_enc.c fcrypt_b.c 195.endif 196 197# dh 198SRCS+= dh_ameth.c dh_asn1.c dh_backend.c dh_check.c dh_err.c dh_gen.c 199SRCS+= dh_group_params.c dh_kdf.c dh_key.c dh_lib.c dh_meth.c dh_pmeth.c 200SRCS+= dh_prn.c dh_rfc5114.c 201 202# dsa 203SRCS+= dsa_ameth.c dsa_asn1.c dsa_backend.c dsa_check.c dsa_err.c dsa_gen.c 204SRCS+= dsa_key.c dsa_lib.c dsa_meth.c dsa_ossl.c dsa_pmeth.c dsa_prn.c 205SRCS+= dsa_sign.c dsa_vrf.c 206 207# dso 208SRCS+= dso_dlfcn.c dso_err.c dso_lib.c 209 210# ec 211SRCS+= curve25519.c curve448.c curve448_tables.c ec2_oct.c ec2_smpl.c 212SRCS+= ec_ameth.c ec_asn1.c ec_backend.c ec_check.c ec_curve.c ec_cvt.c 213SRCS+= ec_deprecated.c ec_err.c ec_key.c ec_kmeth.c ec_lib.c ec_mult.c ec_oct.c 214SRCS+= ec_pmeth.c ec_print.c ecdh_kdf.c ecdh_ossl.c ecdsa_ossl.c ecdsa_sign.c 215SRCS+= ecdsa_vrf.c eck_prn.c ecp_mont.c ecp_nist.c 216SRCS+= ecp_oct.c ecp_smpl.c ecx_backend.c ecx_key.c ecx_meth.c eddsa.c 217SRCS+= f_generic.c f_impl32.c f_impl64.c scalar.c 218# see OPENSSL_NO_EC_NISTP_64_GCC_128 in configuration.h 219.if ${MACHINE_ABI:Mlittle-endian} && ${MACHINE_ABI:Mlong64} 220SRCS+= ecp_nistp224.c ecp_nistp256.c ecp_nistp521.c ecp_nistputil.c 221.endif 222.if defined(ASM_aarch64) 223SRCS+= ecp_nistz256-armv8.S ecp_nistz256.c 224.elif defined(ASM_amd64) 225SRCS+= ecp_nistz256-x86_64.S ecp_nistz256.c x25519-x86_64.S 226.elif defined(ASM_arm) 227SRCS+= ecp_nistz256-armv4.S ecp_nistz256.c 228.elif defined(ASM_i386) 229SRCS+= ecp_nistz256-x86.S ecp_nistz256.c 230.elif defined(ASM_powerpc64) 231SRCS+= ecp_nistp521-ppc64.S ecp_nistz256-ppc64.S ecp_nistz256.c ecp_ppc.c x25519-ppc64.S 232.elif defined(ASM_powerpc64le) 233SRCS+= ecp_nistp521-ppc64.S ecp_nistz256-ppc64.S ecp_nistz256.c ecp_ppc.c x25519-ppc64.S 234.endif 235 236# encode_decode 237SRCS+= decoder_err.c decoder_lib.c decoder_meth.c decoder_pkey.c 238SRCS+= encoder_err.c encoder_lib.c encoder_meth.c encoder_pkey.c 239 240# engine 241SRCS+= eng_all.c eng_cnf.c eng_ctrl.c eng_dyn.c eng_err.c 242SRCS+= eng_fat.c eng_init.c eng_lib.c eng_list.c eng_openssl.c eng_pkey.c 243SRCS+= eng_rdrand.c eng_table.c tb_asnmth.c tb_cipher.c tb_dh.c tb_digest.c 244SRCS+= tb_dsa.c tb_eckey.c tb_pkmeth.c tb_rand.c tb_rsa.c 245 246# err 247SRCS+= err.c err_all.c err_blocks.c err_prn.c 248 249# ess 250SRCS+= ess_asn1.c ess_err.c ess_lib.c 251 252# evp 253SRCS+= asymcipher.c bio_b64.c bio_enc.c bio_md.c bio_ok.c c_allc.c c_alld.c cmeth_lib.c 254SRCS+= ctrl_params_translate.c dh_ctrl.c dh_support.c digest.c dsa_ctrl.c e_aes.c e_aes_cbc_hmac_sha1.c 255SRCS+= e_aes_cbc_hmac_sha256.c e_aria.c e_bf.c e_camellia.c e_cast.c 256SRCS+= e_chacha20_poly1305.c e_des.c e_des3.c e_idea.c e_null.c e_old.c 257SRCS+= e_rc2.c e_rc4.c e_rc4_hmac_md5.c e_rc5.c e_seed.c e_sm4.c e_xcbc_d.c ec_ctrl.c ec_support.c 258SRCS+= encode.c evp_cnf.c evp_enc.c evp_err.c evp_fetch.c evp_key.c evp_lib.c evp_pbe.c 259SRCS+= evp_pkey.c evp_rand.c evp_utils.c exchange.c kdf_lib.c kdf_meth.c kem.c keymgmt_lib.c keymgmt_meth.c 260SRCS+= legacy_blake2.c legacy_md4.c legacy_md5.c legacy_md5_sha1.c m_null.c 261SRCS+= legacy_ripemd.c legacy_sha.c legacy_wp.c m_sigver.c mac_lib.c mac_meth.c names.c p5_crpt.c 262SRCS+= p5_crpt2.c p_dec.c p_enc.c p_legacy.c p_lib.c p_open.c p_seal.c p_sign.c 263SRCS+= p_verify.c pbe_scrypt.c pmeth_check.c pmeth_gn.c pmeth_lib.c signature.c 264 265# ffc 266SRCS+= ffc_backend.c ffc_dh.c ffc_key_generate.c ffc_key_validate.c 267SRCS+= ffc_params.c ffc_params_generate.c ffc_params_validate.c 268 269# hmac 270SRCS+= hmac.c 271 272# http 273SRCS+= http_client.c http_err.c http_lib.c 274 275# kdf 276SRCS+= kdf_err.c 277 278# lhash 279SRCS+= lh_stats.c lhash.c 280 281# md4 282SRCS+= md4_dgst.c md4_one.c 283 284# md5 285SRCS+= md5_dgst.c md5_one.c md5_sha1.c 286.if defined(ASM_amd64) 287SRCS+= md5-x86_64.S 288.elif defined(ASM_i386) 289SRCS+= md5-586.S 290.endif 291 292# modes 293SRCS+= cbc128.c ccm128.c cfb128.c ctr128.c cts128.c gcm128.c ocb128.c 294SRCS+= ofb128.c siv128.c wrap128.c xts128.c 295.if defined(ASM_aarch64) 296SRCS+= ghashv8-armx.S aes-gcm-armv8_64.S 297ACFLAGS.ghashv8-armx.S= -march=armv8-a+crypto 298.elif defined(ASM_amd64) 299SRCS+= aesni-gcm-x86_64.S ghash-x86_64.S 300.elif defined(ASM_arm) 301SRCS+= ghash-armv4.S ghashv8-armx.S 302.elif defined(ASM_i386) 303SRCS+= ghash-x86.S 304.elif defined(ASM_powerpc) 305SRCS+= ghashp8-ppc.S 306.elif defined(ASM_powerpc64) 307SRCS+= ghashp8-ppc.S 308.elif defined(ASM_powerpc64le) 309SRCS+= ghashp8-ppc.S 310.endif 311 312# objects 313SRCS+= o_names.c obj_dat.c obj_err.c obj_lib.c obj_xref.c 314 315# ocsp 316SRCS+= ocsp_asn.c ocsp_cl.c ocsp_err.c ocsp_ext.c ocsp_http.c ocsp_lib.c 317SRCS+= ocsp_prn.c ocsp_srv.c ocsp_vfy.c v3_ocsp.c 318 319# pem 320SRCS+= pem_all.c pem_err.c pem_info.c pem_lib.c pem_oth.c pem_pk8.c 321SRCS+= pem_pkey.c pem_sign.c pem_x509.c pem_xaux.c pvkfmt.c 322 323# pkcs12 324SRCS+= p12_add.c p12_asn.c p12_attr.c p12_crpt.c p12_crt.c p12_decr.c 325SRCS+= p12_init.c p12_key.c p12_kiss.c p12_mutl.c p12_npas.c p12_p8d.c 326SRCS+= p12_p8e.c p12_sbag.c p12_utl.c pk12err.c 327 328# pkcs7 329SRCS+= bio_pk7.c pk7_asn1.c pk7_attr.c pk7_doit.c pk7_lib.c pk7_mime.c 330SRCS+= pk7_smime.c pkcs7err.c 331 332# poly1305 333SRCS+= poly1305.c 334.if defined(ASM_aarch64) 335SRCS+= poly1305-armv8.S 336.elif defined(ASM_amd64) 337SRCS+= poly1305-x86_64.S 338.elif defined(ASM_arm) 339SRCS+= poly1305-armv4.S 340.elif defined(ASM_i386) 341SRCS+= poly1305-x86.S 342.elif defined(ASM_powerpc) 343SRCS+= poly1305_ppc.c poly1305-ppc.S poly1305-ppcfp.S 344.elif defined(ASM_powerpc64) 345SRCS+= poly1305_ppc.c poly1305-ppc.S poly1305-ppcfp.S 346.elif defined(ASM_powerpc64le) 347SRCS+= poly1305_ppc.c poly1305-ppc.S poly1305-ppcfp.S 348.endif 349 350# property 351SRCS+= defn_cache.c property.c property_err.c property_parse.c property_query.c 352SRCS+= property_string.c 353 354# providers 355SRCS+= baseprov.c defltprov.c nullprov.c prov_running.c 356 357# providers/common 358SRCS+= bio_prov.c capabilities.c digest_to_nid.c provider_ctx.c provider_err.c 359SRCS+= provider_seeding.c provider_util.c securitycheck.c 360SRCS+= securitycheck_default.c 361 362# providers/common/der 363SRCS+= der_rsa_gen.c der_rsa_key.c der_rsa_sig.c 364SRCS+= der_digests_gen.c 365SRCS+= der_wrap_gen.c 366SRCS+= der_dsa_gen.c der_dsa_key.c der_dsa_sig.c 367SRCS+= der_ec_gen.c der_ec_key.c der_ec_sig.c 368SRCS+= der_ecx_gen.c der_ecx_key.c 369 370# providers/implementations/asymciphers 371SRCS+= rsa_enc.c 372 373# providers/implementations/ciphers 374SRCS+= ciphercommon.c ciphercommon_hw.c ciphercommon_block.c \ 375 ciphercommon_gcm.c ciphercommon_gcm_hw.c \ 376 ciphercommon_ccm.c ciphercommon_ccm_hw.c 377SRCS+= cipher_aes.c cipher_aes_hw.c \ 378 cipher_aes_xts.c cipher_aes_xts_hw.c \ 379 cipher_aes_gcm.c cipher_aes_gcm_hw.c \ 380 cipher_aes_ccm.c cipher_aes_ccm_hw.c \ 381 cipher_aes_wrp.c \ 382 cipher_aes_cbc_hmac_sha.c \ 383 cipher_aes_cbc_hmac_sha256_hw.c cipher_aes_cbc_hmac_sha1_hw.c \ 384 cipher_cts.c 385SRCS+= cipher_aes_ocb.c cipher_aes_ocb_hw.c 386SRCS+= cipher_aes_xts_fips.c 387SRCS+= cipher_aes_siv.c cipher_aes_siv_hw.c 388SRCS+= cipher_blowfish.c cipher_blowfish_hw.c 389SRCS+= cipher_camellia.c cipher_camellia_hw.c 390SRCS+= cipher_cast5.c cipher_cast5_hw.c 391SRCS+= cipher_chacha20.c cipher_chacha20_hw.c 392SRCS+= cipher_chacha20_poly1305.c cipher_chacha20_poly1305_hw.c 393SRCS+= cipher_des.c cipher_des_hw.c 394SRCS+= cipher_desx.c cipher_desx_hw.c 395SRCS+= cipher_null.c 396SRCS+= cipher_rc4.c cipher_rc4_hw.c 397SRCS+= cipher_rc4_hmac_md5.c cipher_rc4_hmac_md5_hw.c 398SRCS+= cipher_seed.c cipher_seed_hw.c 399SRCS+= cipher_tdes.c cipher_tdes_common.c cipher_tdes_hw.c 400SRCS+= cipher_tdes_default.c cipher_tdes_default_hw.c \ 401 cipher_tdes_wrap.c cipher_tdes_wrap_hw.c 402 403# providers/implementations/digests 404SRCS+= digestcommon.c 405SRCS+= blake2_prov.c blake2b_prov.c blake2s_prov.c 406SRCS+= md4_prov.c 407SRCS+= md5_prov.c md5_sha1_prov.c 408SRCS+= null_prov.c 409SRCS+= ripemd_prov.c 410SRCS+= sha2_prov.c sha3_prov.c 411SRCS+= wp_prov.c 412 413# providers/implementations/encode_decode 414SRCS+= decode_der2key.c decode_epki2pki.c decode_msblob2key.c decode_pvk2key.c 415SRCS+= decode_pem2der.c decode_spki2typespki.c 416SRCS+= encode_key2any.c encode_key2blob.c encode_key2ms.c encode_key2text.c 417SRCS+= endecoder_common.c 418 419# providers/implementations/exchange 420SRCS+= dh_exch.c 421SRCS+= ecx_exch.c ecdh_exch.c 422SRCS+= kdf_exch.c 423 424# providers/implementations/kdfs 425SRCS+= hkdf.c kbkdf.c krb5kdf.c pbkdf1.c pbkdf2.c pbkdf2_fips.c 426SRCS+= pkcs12kdf.c scrypt.c sskdf.c sshkdf.c tls1_prf.c x942kdf.c 427 428# providers/implementations/kem 429SRCS+= rsa_kem.c 430 431# providers/implementations/keymgmt 432SRCS+= dh_kmgmt.c dsa_kmgmt.c ec_kmgmt.c ecx_kmgmt.c kdf_legacy_kmgmt.c 433SRCS+= mac_legacy_kmgmt.c rsa_kmgmt.c 434 435# providers/implementations/macs 436SRCS+= gmac_prov.c hmac_prov.c kmac_prov.c 437SRCS+= blake2b_mac.c blake2s_mac.c 438SRCS+= cmac_prov.c 439SRCS+= poly1305_prov.c 440SRCS+= siphash_prov.c 441 442# providers/implementations/rands 443SRCS+= crngt.c drbg.c drbg_ctr.c drbg_hash.c drbg_hmac.c test_rng.c 444SRCS+= seed_src.c 445 446# providers/implementations/rands/seeding 447SRCS+= rand_cpu_x86.c rand_tsc.c rand_unix.c rand_win.c 448 449# providers/implementations/signature 450SRCS+= dsa_sig.c eddsa_sig.c ecdsa_sig.c mac_legacy_sig.c rsa_sig.c 451 452# providers/implementations/storemgmt 453SRCS+= file_store.c file_store_any2obj.c 454 455# rand 456SRCS+= prov_seed.c rand_deprecated.c rand_egd.c rand_err.c rand_lib.c 457SRCS+= rand_meth.c rand_pool.c randfile.c 458 459# rc2 460SRCS+= rc2_cbc.c rc2_ecb.c rc2_skey.c rc2cfb64.c rc2ofb64.c 461 462# rc4 463.if defined(ASM_amd64) 464SRCS+= rc4-md5-x86_64.S rc4-x86_64.S 465.elif defined(ASM_i386) 466SRCS+= rc4-586.S 467.else 468SRCS+= rc4_enc.c rc4_skey.c 469.endif 470 471# ripemd 472SRCS+= rmd_dgst.c rmd_one.c 473.if defined(ASM_i386) 474SRCS+= rmd-586.S 475.endif 476 477# rsa 478SRCS+= rsa_ameth.c rsa_asn1.c rsa_backend.c rsa_chk.c rsa_crpt.c 479SRCS+= rsa_err.c rsa_gen.c rsa_lib.c rsa_meth.c rsa_mp.c rsa_mp_names.c 480SRCS+= rsa_none.c rsa_oaep.c rsa_ossl.c rsa_pk1.c rsa_pmeth.c rsa_prn.c 481SRCS+= rsa_pss.c rsa_saos.c rsa_schemes.c rsa_sign.c rsa_sp800_56b_check.c 482SRCS+= rsa_sp800_56b_gen.c rsa_x931.c rsa_x931g.c 483 484# seed 485SRCS+= seed.c seed_cbc.c seed_cfb.c seed_ecb.c seed_ofb.c 486 487# sha 488SRCS+= sha1_one.c sha1dgst.c sha256.c sha3.c sha512.c 489.if defined(ASM_aarch64) 490SRCS+= keccak1600-armv8.S sha1-armv8.S sha256-armv8.S sha512-armv8.S 491.elif defined(ASM_amd64) 492SRCS+= keccak1600-x86_64.S sha1-mb-x86_64.S sha1-x86_64.S 493SRCS+= sha256-mb-x86_64.S sha256-x86_64.S sha512-x86_64.S 494.elif defined(ASM_arm) 495SRCS+= keccak1600-armv4.S sha1-armv4-large.S sha256-armv4.S sha512-armv4.S 496.elif defined(ASM_i386) 497SRCS+= keccak1600.c sha1-586.S sha256-586.S sha512-586.S 498.elif defined(ASM_powerpc) 499SRCS+= keccak1600.c sha_ppc.c sha1-ppc.S sha256-ppc.S sha512-ppc.S sha256p8-ppc.S sha512p8-ppc.S 500.elif defined(ASM_powerpc64) 501SRCS+= keccak1600-ppc64.S sha_ppc.c sha1-ppc.S sha256-ppc.S sha512-ppc.S sha256p8-ppc.S sha512p8-ppc.S 502.elif defined(ASM_powerpc64le) 503SRCS+= keccak1600-ppc64.S sha_ppc.c sha1-ppc.S sha256-ppc.S sha512-ppc.S sha256p8-ppc.S sha512p8-ppc.S 504.else 505SRCS+= keccak1600.c 506.endif 507 508# siphash 509SRCS+= siphash.c 510 511# srp 512SRCS+= srp_lib.c srp_vfy.c 513 514# ssl 515SRCS+= s3_cbc.c 516 517# ssl/record 518SRCS+= tls_pad.c 519 520# stack 521SRCS+= stack.c 522 523# store 524SRCS+= store_err.c store_init.c store_lib.c store_meth.c store_register.c 525SRCS+= store_result.c store_strings.c 526 527# ts 528SRCS+= ts_asn1.c ts_conf.c ts_err.c ts_lib.c ts_req_print.c ts_req_utils.c 529SRCS+= ts_rsp_print.c ts_rsp_sign.c ts_rsp_utils.c ts_rsp_verify.c 530SRCS+= ts_verify_ctx.c 531 532# txt_db 533SRCS+= txt_db.c 534 535# ui 536SRCS+= ui_err.c ui_lib.c ui_null.c ui_openssl.c ui_util.c 537 538# whrlpool 539SRCS+= wp_dgst.c 540.if defined(ASM_amd64) 541SRCS+= wp-x86_64.S 542.elif defined(ASM_i386) 543SRCS+= wp-mmx.S wp_block.c 544.else 545SRCS+= wp_block.c 546.endif 547 548# x509 549SRCS+= by_dir.c by_file.c by_store.c 550SRCS+= pcy_cache.c pcy_data.c pcy_lib.c pcy_map.c pcy_node.c pcy_tree.c 551SRCS+= t_crl.c t_req.c t_x509.c 552SRCS+= v3_addr.c v3_admis.c v3_akeya.c v3_akid.c v3_asid.c 553SRCS+= v3_bcons.c v3_bitst.c v3_conf.c v3_cpols.c v3_crld.c v3_enum.c 554SRCS+= v3_extku.c v3_genn.c v3_ia5.c v3_info.c v3_int.c v3_ist.c v3_lib.c v3_ncons.c 555SRCS+= v3_pci.c v3_pcia.c v3_pcons.c v3_pku.c v3_pmaps.c v3_prn.c v3_purp.c 556SRCS+= v3_san.c v3_skid.c v3_sxnet.c v3_tlsf.c v3_utf8.c v3_utl.c v3err.c 557SRCS+= x509_att.c x509_cmp.c x509_d2.c x509_def.c x509_err.c x509_ext.c x509_lu.c x509_meth.c 558SRCS+= x509_obj.c x509_r2x.c x509_req.c x509_set.c x509_trust.c x509_txt.c 559SRCS+= x509_v3.c x509_vfy.c x509_vpm.c x509cset.c x509name.c x509rset.c 560SRCS+= x509spki.c x509type.c x_all.c x_attrib.c x_crl.c x_exten.c x_name.c 561SRCS+= x_pubkey.c x_req.c x_x509.c x_x509a.c 562 563INCS= aes.h asn1.h asn1_mac.h asn1err.h asn1t.h async.h asyncerr.h bio.h 564INCS+= bioerr.h blowfish.h bn.h bnerr.h buffer.h buffererr.h camellia.h 565INCS+= cast.h cmac.h cmp.h cmp_util.h cmperr.h cms.h cmserr.h comp.h comperr.h conf.h conf_api.h 566INCS+= conferr.h configuration.h conftypes.h core.h core_dispatch.h core_names.h core_object.h 567INCS+= crmf.h crmferr.h crypto.h cryptoerr.h cryptoerr_legacy.h ct.h cterr.h 568INCS+= decoder.h decodererr.h des.h dh.h dherr.h dsa.h 569INCS+= dsaerr.h dtls1.h e_os2.h ebcdic.h ec.h ecdh.h ecdsa.h ecerr.h encoder.h encodererr.h 570INCS+= engine.h engineerr.h err.h ess.h esserr.h evp.h evperr.h fips_names.h fipskey.h hmac.h http.h httperr.h idea.h kdf.h 571INCS+= kdferr.h lhash.h macros.h md2.h md4.h md5.h mdc2.h modes.h obj_mac.h 572INCS+= objects.h objectserr.h ocsp.h ocsperr.h opensslconf.h opensslv.h 573INCS+= ossl_typ.h param_build.h params.h pem.h pem2.h pemerr.h pkcs12.h pkcs12err.h pkcs7.h 574INCS+= pkcs7err.h prov_ssl.h proverr.h provider.h rand.h randerr.h rc2.h rc4.h rc5.h ripemd.h 575INCS+= rsa.h rsaerr.h safestack.h seed.h self_test.h sha.h srp.h srtp.h ssl.h ssl2.h 576INCS+= ssl3.h sslerr.h sslerr_legacy.h stack.h store.h storeerr.h symhacks.h tls1.h trace.h ts.h 577INCS+= tserr.h txt_db.h types.h ui.h uierr.h whrlpool.h x509.h x509_vfy.h x509err.h 578INCS+= x509v3.h x509v3err.h 579 580INCSDIR= ${INCLUDEDIR}/openssl 581 582LIBADD= pthread 583 584SRCS+= buildinf.h 585 586CLEANDIRS= openssl 587CLEANFILES= buildinf.h 588 589.if defined(ASM_${MACHINE_CPUARCH}) || defined(ASM_${MACHINE_ARCH}) 590_cmd1=/%%NO_ASM%%/d 591.else 592_cmd1=s/%%NO_ASM%%// 593.endif 594.if ${MK_OPENSSL_KTLS} != "no" 595_cmd2=/%%NO_KTLS%%/d 596.else 597_cmd2=s/%%NO_KTLS%%// 598.endif 599 600buildinf.h: Makefile 601 ( echo "/*"; \ 602 echo " * WARNING: do not edit!"; \ 603 echo " * Generated by ${.ALLSRC}"; \ 604 echo " */"; \ 605 echo "#define PLATFORM \"platform: FreeBSD-${MACHINE_ARCH}\""; \ 606 echo "#define DATE \"built on: reproducible build, date unspecified\""; \ 607 echo "static const char compiler_flags[] = \"compiler: ${COMPILER_TYPE}\";" ) \ 608 > ${.TARGET} 609 610.include <bsd.lib.mk> 611 612PICFLAG+= -DOPENSSL_PIC 613 614.if defined(ASM_${MACHINE_CPUARCH}) 615.PATH: ${SRCTOP}/secure/lib/libcrypto/arch/${MACHINE_CPUARCH} 616.if defined(ASM_amd64) 617.PATH: ${LCRYPTO_SRC}/crypto/bn/asm 618.endif 619.elif defined(ASM_${MACHINE_ARCH}) 620.PATH: ${SRCTOP}/secure/lib/libcrypto/arch/${MACHINE_ARCH} 621.endif 622 623.PATH: ${LCRYPTO_SRC}/crypto \ 624 ${LCRYPTO_SRC}/crypto/aes \ 625 ${LCRYPTO_SRC}/crypto/aria \ 626 ${LCRYPTO_SRC}/crypto/asn1 \ 627 ${LCRYPTO_SRC}/crypto/async \ 628 ${LCRYPTO_SRC}/crypto/async/arch \ 629 ${LCRYPTO_SRC}/crypto/bf \ 630 ${LCRYPTO_SRC}/crypto/bio \ 631 ${LCRYPTO_SRC}/crypto/bn \ 632 ${LCRYPTO_SRC}/crypto/buffer \ 633 ${LCRYPTO_SRC}/crypto/camellia \ 634 ${LCRYPTO_SRC}/crypto/cast \ 635 ${LCRYPTO_SRC}/crypto/chacha \ 636 ${LCRYPTO_SRC}/crypto/cmac \ 637 ${LCRYPTO_SRC}/crypto/cmp \ 638 ${LCRYPTO_SRC}/crypto/cms \ 639 ${LCRYPTO_SRC}/crypto/comp \ 640 ${LCRYPTO_SRC}/crypto/conf \ 641 ${LCRYPTO_SRC}/crypto/crmf \ 642 ${LCRYPTO_SRC}/crypto/ct \ 643 ${LCRYPTO_SRC}/crypto/des \ 644 ${LCRYPTO_SRC}/crypto/dh \ 645 ${LCRYPTO_SRC}/crypto/dsa \ 646 ${LCRYPTO_SRC}/crypto/dso \ 647 ${LCRYPTO_SRC}/crypto/ec \ 648 ${LCRYPTO_SRC}/crypto/ec/curve448 \ 649 ${LCRYPTO_SRC}/crypto/ec/curve448/arch_32 \ 650 ${LCRYPTO_SRC}/crypto/ec/curve448/arch_64 \ 651 ${LCRYPTO_SRC}/crypto/encode_decode \ 652 ${LCRYPTO_SRC}/crypto/engine \ 653 ${LCRYPTO_SRC}/crypto/err \ 654 ${LCRYPTO_SRC}/crypto/ess \ 655 ${LCRYPTO_SRC}/crypto/evp \ 656 ${LCRYPTO_SRC}/crypto/ffc \ 657 ${LCRYPTO_SRC}/crypto/hmac \ 658 ${LCRYPTO_SRC}/crypto/http \ 659 ${LCRYPTO_SRC}/crypto/idea \ 660 ${LCRYPTO_SRC}/crypto/kdf \ 661 ${LCRYPTO_SRC}/crypto/lhash \ 662 ${LCRYPTO_SRC}/crypto/md4 \ 663 ${LCRYPTO_SRC}/crypto/md5 \ 664 ${LCRYPTO_SRC}/crypto/mdc2 \ 665 ${LCRYPTO_SRC}/crypto/modes \ 666 ${LCRYPTO_SRC}/crypto/objects \ 667 ${LCRYPTO_SRC}/crypto/ocsp \ 668 ${LCRYPTO_SRC}/crypto/pem \ 669 ${LCRYPTO_SRC}/crypto/pkcs12 \ 670 ${LCRYPTO_SRC}/crypto/pkcs7 \ 671 ${LCRYPTO_SRC}/crypto/poly1305 \ 672 ${LCRYPTO_SRC}/crypto/property \ 673 ${LCRYPTO_SRC}/crypto/rand \ 674 ${LCRYPTO_SRC}/crypto/rc2 \ 675 ${LCRYPTO_SRC}/crypto/rc4 \ 676 ${LCRYPTO_SRC}/crypto/rc5 \ 677 ${LCRYPTO_SRC}/crypto/ripemd \ 678 ${LCRYPTO_SRC}/crypto/rsa \ 679 ${LCRYPTO_SRC}/crypto/seed \ 680 ${LCRYPTO_SRC}/crypto/sha \ 681 ${LCRYPTO_SRC}/crypto/siphash \ 682 ${LCRYPTO_SRC}/crypto/sm2 \ 683 ${LCRYPTO_SRC}/crypto/sm3 \ 684 ${LCRYPTO_SRC}/crypto/sm4 \ 685 ${LCRYPTO_SRC}/crypto/srp \ 686 ${LCRYPTO_SRC}/crypto/stack \ 687 ${LCRYPTO_SRC}/crypto/store \ 688 ${LCRYPTO_SRC}/crypto/ts \ 689 ${LCRYPTO_SRC}/crypto/txt_db \ 690 ${LCRYPTO_SRC}/crypto/ui \ 691 ${LCRYPTO_SRC}/crypto/whrlpool \ 692 ${LCRYPTO_SRC}/crypto/x509 \ 693 ${LCRYPTO_SRC}/crypto/x509v3 \ 694 ${LCRYPTO_SRC}/include/openssl \ 695 ${LCRYPTO_SRC}/providers \ 696 ${LCRYPTO_SRC}/providers/common \ 697 ${LCRYPTO_SRC}/providers/common/der \ 698 ${LCRYPTO_SRC}/providers/implementations/asymciphers \ 699 ${LCRYPTO_SRC}/providers/implementations/ciphers \ 700 ${LCRYPTO_SRC}/providers/implementations/digests \ 701 ${LCRYPTO_SRC}/providers/implementations/encode_decode \ 702 ${LCRYPTO_SRC}/providers/implementations/exchange \ 703 ${LCRYPTO_SRC}/providers/implementations/kdfs \ 704 ${LCRYPTO_SRC}/providers/implementations/kem \ 705 ${LCRYPTO_SRC}/providers/implementations/keymgmt \ 706 ${LCRYPTO_SRC}/providers/implementations/macs \ 707 ${LCRYPTO_SRC}/providers/implementations/rands \ 708 ${LCRYPTO_SRC}/providers/implementations/rands/seeding \ 709 ${LCRYPTO_SRC}/providers/implementations/signature \ 710 ${LCRYPTO_SRC}/providers/implementations/storemgmt \ 711 ${LCRYPTO_SRC}/ssl \ 712 ${LCRYPTO_SRC}/ssl/record 713