logo

oasis

Own branch of Oasis Linux (upstream: <https://git.sr.ht/~mcf/oasis/>) git clone https://anongit.hacktivis.me/git/oasis.git

gen.lua (9886B)


  1. cflags{
  2. '-Wundef', '-Wno-attributes',
  3. '-D LIBRESSL_INTERNAL',
  4. '-D OPENSSL_NO_HW_PADLOCK',
  5. '-D OPENSSL_NO_ASM',
  6. '-D __BEGIN_HIDDEN_DECLS=',
  7. '-D __END_HIDDEN_DECLS=',
  8. [[-D '__warn_references(sym,msg)=_Static_assert(1, "")']],
  9. '-I $srcdir/include',
  10. '-I $srcdir/crypto',
  11. '-I $srcdir/crypto/asn1',
  12. '-I $srcdir/crypto/bn',
  13. '-I $srcdir/crypto/ec',
  14. '-I $srcdir/crypto/ecdh',
  15. '-I $srcdir/crypto/ecdsa',
  16. '-I $srcdir/crypto/evp',
  17. '-I $srcdir/crypto/modes',
  18. '-I $basedir/pkg/openbsd/include',
  19. '-idirafter $srcdir/include/compat',
  20. }
  21. pkg.hdrs = {
  22. copy('$outdir/include/openssl', '$srcdir/include/openssl', {
  23. 'aes.h',
  24. 'asn1.h',
  25. 'asn1t.h',
  26. 'blowfish.h',
  27. 'bio.h',
  28. 'bn.h',
  29. 'buffer.h',
  30. 'camellia.h',
  31. 'cast.h',
  32. 'chacha.h',
  33. 'cmac.h',
  34. 'cms.h',
  35. 'comp.h',
  36. 'conf.h',
  37. 'conf_api.h',
  38. 'crypto.h',
  39. 'curve25519.h',
  40. 'des.h',
  41. 'dh.h',
  42. 'dsa.h',
  43. 'dso.h',
  44. 'ec.h',
  45. 'ecdh.h',
  46. 'ecdsa.h',
  47. 'engine.h',
  48. 'err.h',
  49. 'evp.h',
  50. 'gost.h',
  51. 'hmac.h',
  52. 'idea.h',
  53. 'lhash.h',
  54. 'md4.h',
  55. 'md5.h',
  56. 'modes.h',
  57. 'objects.h',
  58. 'ocsp.h',
  59. 'opensslfeatures.h',
  60. 'opensslv.h',
  61. 'ossl_typ.h',
  62. 'pem.h',
  63. 'pem2.h',
  64. 'pkcs12.h',
  65. 'pkcs7.h',
  66. 'poly1305.h',
  67. 'rand.h',
  68. 'rc2.h',
  69. 'rc4.h',
  70. 'ripemd.h',
  71. 'rsa.h',
  72. 'sha.h',
  73. 'sm3.h',
  74. 'sm4.h',
  75. 'safestack.h',
  76. 'stack.h',
  77. 'ts.h',
  78. 'txt_db.h',
  79. 'ui.h',
  80. 'ui_compat.h',
  81. 'whrlpool.h',
  82. 'x509.h',
  83. 'x509_vfy.h',
  84. 'x509_verify.h',
  85. 'x509v3.h',
  86. 'opensslconf.h',
  87. 'obj_mac.h',
  88. 'srtp.h',
  89. 'ssl.h',
  90. 'ssl2.h',
  91. 'ssl3.h',
  92. 'ssl23.h',
  93. 'tls1.h',
  94. 'dtls1.h',
  95. }),
  96. install=true,
  97. }
  98. -- src/crypto/Makefile.am
  99. lib('libcrypto.a', [[crypto/(
  100. cryptlib.c malloc-wrapper.c mem_dbg.c cversion.c ex_data.c cpt_err.c
  101. o_time.c o_str.c o_init.c
  102. mem_clr.c crypto_init.c crypto_lock.c
  103. aes/(
  104. aes_misc.c aes_ecb.c aes_cfb.c aes_ofb.c
  105. aes_ctr.c aes_ige.c aes_wrap.c
  106. )
  107. asn1/(
  108. a_object.c a_bitstr.c a_time.c a_int.c a_octet.c
  109. a_print.c a_type.c a_dup.c a_d2i_fp.c a_i2d_fp.c
  110. a_enum.c a_utf8.c a_sign.c a_digest.c a_verify.c a_mbstr.c a_strex.c
  111. x_algor.c x_val.c x_pubkey.c x_sig.c x_req.c x_attrib.c x_bignum.c
  112. x_long.c x_name.c x_x509.c x_x509a.c x_crl.c x_info.c x_spki.c nsseq.c
  113. x_nx509.c d2i_pu.c d2i_pr.c i2d_pu.c i2d_pr.c
  114. t_req.c t_x509.c t_x509a.c t_crl.c t_pkey.c t_spki.c t_bitst.c
  115. tasn_new.c tasn_fre.c tasn_enc.c tasn_dec.c tasn_utl.c tasn_typ.c
  116. tasn_prn.c ameth_lib.c
  117. f_int.c f_string.c n_pkey.c
  118. f_enum.c x_pkey.c a_bool.c x_exten.c bio_asn1.c bio_ndef.c asn_mime.c
  119. asn1_gen.c asn1_par.c asn1_lib.c asn1_err.c a_strnid.c
  120. evp_asn1.c asn_pack.c p5_pbe.c p5_pbev2.c p8_pkey.c asn_moid.c
  121. a_time_tm.c
  122. )
  123. bf/(bf_skey.c bf_ecb.c bf_cfb64.c bf_ofb64.c)
  124. bio/(
  125. bio_lib.c bio_cb.c bio_err.c bio_meth.c
  126. bss_mem.c bss_null.c bss_fd.c
  127. bss_file.c bss_sock.c bss_conn.c
  128. bf_null.c bf_buff.c b_print.c b_dump.c
  129. b_posix.c b_sock.c bss_acpt.c bf_nbio.c bss_log.c bss_bio.c
  130. bss_dgram.c
  131. )
  132. bn/(
  133. bn_add.c bn_div.c bn_exp.c bn_lib.c bn_ctx.c bn_mul.c bn_mod.c
  134. bn_print.c bn_rand.c bn_shift.c bn_word.c bn_blind.c
  135. bn_kron.c bn_sqrt.c bn_gcd.c bn_prime.c bn_err.c bn_sqr.c
  136. bn_recp.c bn_mont.c bn_mpi.c bn_exp2.c bn_gf2m.c bn_nist.c
  137. bn_depr.c bn_const.c bn_x931p.c
  138. )
  139. buffer/(buffer.c buf_err.c buf_str.c)
  140. camellia/(cmll_cfb.c cmll_ctr.c cmll_ecb.c cmll_ofb.c)
  141. cast/(c_skey.c c_ecb.c c_enc.c c_cfb64.c c_ofb64.c)
  142. chacha/chacha.c
  143. cmac/(cmac.c cm_ameth.c cm_pmeth.c)
  144. cms/(
  145. cms_asn1.c cms_att.c cms_cd.c cms_dd.c cms_enc.c cms_env.c cms_err.c
  146. cms_ess.c cms_io.c cms_kari.c cms_lib.c cms_pwri.c cms_sd.c
  147. cms_smime.c
  148. )
  149. comp/(comp_lib.c comp_err.c c_rle.c c_zlib.c)
  150. conf/(
  151. conf_err.c conf_lib.c conf_api.c conf_def.c conf_mod.c
  152. conf_mall.c conf_sap.c
  153. )
  154. curve25519/(curve25519.c curve25519-generic.c)
  155. des/(
  156. cbc_cksm.c cbc_enc.c cfb64enc.c cfb_enc.c
  157. ecb3_enc.c ecb_enc.c enc_read.c enc_writ.c
  158. fcrypt.c ofb64enc.c ofb_enc.c pcbc_enc.c
  159. qud_cksm.c rand_key.c set_key.c xcbc_enc.c
  160. str2key.c cfb64ede.c ofb64ede.c ede_cbcm_enc.c
  161. )
  162. dh/(
  163. dh_asn1.c dh_gen.c dh_key.c dh_lib.c dh_check.c dh_err.c dh_depr.c
  164. dh_ameth.c dh_pmeth.c dh_prn.c
  165. )
  166. dsa/(
  167. dsa_gen.c dsa_key.c dsa_lib.c dsa_asn1.c dsa_vrf.c dsa_sign.c
  168. dsa_err.c dsa_ossl.c dsa_depr.c dsa_ameth.c dsa_pmeth.c dsa_prn.c
  169. dsa_meth.c
  170. )
  171. dso/(
  172. dso_dlfcn.c dso_err.c dso_lib.c dso_null.c
  173. dso_openssl.c
  174. )
  175. ec/(
  176. ec_lib.c ecp_smpl.c ecp_mont.c ecp_nist.c ec_cvt.c ec_mult.c
  177. ec_err.c ec_curve.c ec_check.c ec_print.c ec_asn1.c ec_key.c
  178. ec2_smpl.c ec2_mult.c ec_ameth.c ec_pmeth.c ec_kmeth.c eck_prn.c
  179. ecp_oct.c ec2_oct.c ec_oct.c
  180. )
  181. ecdh/(ech_lib.c ech_key.c ech_err.c ecdh_kdf.c)
  182. ecdsa/(ecs_lib.c ecs_asn1.c ecs_ossl.c ecs_sign.c ecs_vrf.c ecs_err.c)
  183. engine/(
  184. eng_err.c eng_lib.c eng_list.c eng_init.c eng_ctrl.c
  185. eng_table.c eng_pkey.c eng_fat.c eng_all.c
  186. tb_rsa.c tb_dsa.c tb_ecdsa.c tb_dh.c tb_ecdh.c tb_rand.c tb_store.c
  187. tb_cipher.c tb_digest.c tb_pkmeth.c tb_asnmth.c tb_eckey.c
  188. eng_openssl.c eng_cnf.c eng_dyn.c
  189. )
  190. err/(err.c err_all.c err_prn.c)
  191. evp/(
  192. encode.c digest.c evp_enc.c evp_key.c
  193. e_des.c e_bf.c e_idea.c e_des3.c e_camellia.c
  194. e_rc4.c e_aes.c names.c
  195. e_xcbc_d.c e_rc2.c e_cast.c
  196. m_null.c m_md4.c m_md5.c m_sha1.c m_sm3.c m_wp.c
  197. m_dss.c m_dss1.c m_ripemd.c m_ecdsa.c
  198. p_open.c p_seal.c p_sign.c p_verify.c p_lib.c p_enc.c p_dec.c
  199. bio_md.c bio_b64.c bio_enc.c evp_err.c e_null.c
  200. c_all.c evp_lib.c
  201. evp_pkey.c evp_pbe.c p5_crpt.c p5_crpt2.c
  202. e_old.c pmeth_lib.c pmeth_fn.c pmeth_gn.c m_sigver.c
  203. e_aes_cbc_hmac_sha1.c e_rc4_hmac_md5.c
  204. e_chacha.c evp_aead.c e_chacha20poly1305.c
  205. e_gost2814789.c m_gost2814789.c m_gostr341194.c m_streebog.c
  206. e_sm4.c
  207. m_md5_sha1.c
  208. )
  209. gost/(
  210. gost2814789.c gost89_keywrap.c gost89_params.c gost89imit_ameth.c
  211. gost89imit_pmeth.c gost_asn1.c gost_err.c gostr341001.c
  212. gostr341001_ameth.c gostr341001_key.c gostr341001_params.c
  213. gostr341001_pmeth.c gostr341194.c streebog.c
  214. )
  215. hkdf/hkdf.c
  216. hmac/(hmac.c hm_ameth.c hm_pmeth.c)
  217. idea/(i_cbc.c i_cfb64.c i_ofb64.c i_ecb.c i_skey.c)
  218. lhash/(lhash.c lh_stats.c)
  219. md4/(md4_dgst.c md4_one.c)
  220. md5/(md5_dgst.c md5_one.c)
  221. modes/(cbc128.c ctr128.c cts128.c cfb128.c ofb128.c gcm128.c ccm128.c xts128.c)
  222. objects/(o_names.c obj_dat.c obj_lib.c obj_err.c obj_xref.c)
  223. ocsp/(
  224. ocsp_asn.c ocsp_ext.c ocsp_ht.c ocsp_lib.c ocsp_cl.c
  225. ocsp_srv.c ocsp_prn.c ocsp_vfy.c ocsp_err.c
  226. )
  227. pem/(
  228. pem_sign.c pem_seal.c pem_info.c pem_lib.c pem_all.c pem_err.c
  229. pem_x509.c pem_xaux.c pem_oth.c pem_pk8.c pem_pkey.c pvkfmt.c
  230. )
  231. pkcs12/(
  232. p12_add.c p12_asn.c p12_attr.c p12_crpt.c p12_crt.c p12_decr.c
  233. p12_init.c p12_key.c p12_kiss.c p12_mutl.c
  234. p12_utl.c p12_npas.c pk12err.c p12_p8d.c p12_p8e.c
  235. )
  236. pkcs7/(
  237. pk7_asn1.c pk7_lib.c pkcs7err.c pk7_doit.c pk7_smime.c pk7_attr.c
  238. pk7_mime.c bio_pk7.c
  239. )
  240. poly1305/poly1305.c
  241. rand/(randfile.c rand_lib.c rand_err.c)
  242. rc2/(rc2_ecb.c rc2_skey.c rc2_cbc.c rc2cfb64.c rc2ofb64.c)
  243. ripemd/(rmd_dgst.c rmd_one.c)
  244. rsa/(
  245. rsa_eay.c rsa_gen.c rsa_lib.c rsa_sign.c rsa_saos.c rsa_err.c
  246. rsa_pk1.c rsa_none.c rsa_oaep.c rsa_chk.c
  247. rsa_pss.c rsa_x931.c rsa_asn1.c rsa_depr.c rsa_ameth.c rsa_prn.c
  248. rsa_pmeth.c rsa_crpt.c rsa_meth.c
  249. )
  250. sha/(sha1dgst.c sha1_one.c sha256.c sha512.c)
  251. sm3/sm3.c
  252. sm4/sm4.c
  253. stack/stack.c
  254. ts/(
  255. ts_err.c ts_req_utils.c ts_req_print.c ts_rsp_utils.c ts_rsp_print.c
  256. ts_rsp_sign.c ts_rsp_verify.c ts_verify_ctx.c ts_lib.c ts_conf.c
  257. ts_asn1.c
  258. )
  259. txt_db/txt_db.c
  260. ui/(ui_err.c ui_lib.c ui_openssl.c ui_util.c)
  261. whrlpool/wp_dgst.c
  262. x509/(
  263. x509_addr.c x509_asid.c
  264. x509_def.c x509_d2.c x509_r2x.c x509_cmp.c
  265. x509_obj.c x509_req.c x509spki.c x509_vfy.c
  266. x509_set.c x509cset.c x509rset.c x509_err.c
  267. x509name.c x509_v3.c x509_ext.c x509_att.c
  268. x509type.c x509_lu.c x_all.c x509_txt.c
  269. x509_trs.c by_file.c by_dir.c by_mem.c x509_vpm.c
  270. x509_bcons.c x509_bitst.c x509_conf.c x509_extku.c x509_ia5.c x509_lib.c
  271. x509_prn.c x509_utl.c x509_genn.c x509_alt.c x509_skey.c x509_akey.c x509_pku.c
  272. x509_int.c x509_enum.c x509_sxnet.c x509_cpols.c x509_crld.c x509_purp.c x509_info.c
  273. x509_ocsp.c x509_akeya.c x509_pmaps.c x509_pcons.c x509_ncons.c x509_pcia.c x509_pci.c
  274. x509_issuer_cache.c x509_constraints.c x509_verify.c
  275. pcy_cache.c pcy_node.c pcy_data.c pcy_map.c pcy_tree.c pcy_lib.c
  276. )
  277. aes/(aes_core.c aes_cbc.c)
  278. bf/bf_enc.c
  279. bn/bn_asm.c
  280. camellia/(camellia.c cmll_cbc.c cmll_misc.c)
  281. des/(des_enc.c fcrypt_b.c)
  282. rc4/(rc4_enc.c rc4_skey.c)
  283. whrlpool/wp_block.c
  284. ) $builddir/pkg/openbsd/libbsd.a.d]])
  285. file('lib/libcrypto.a', '644', '$outdir/libcrypto.a')
  286. -- src/ssl/Makefile.am
  287. lib('libssl.a', [[ssl/(
  288. bio_ssl.c
  289. bs_ber.c
  290. bs_cbb.c
  291. bs_cbs.c
  292. d1_both.c
  293. d1_lib.c
  294. d1_pkt.c
  295. d1_srtp.c
  296. pqueue.c
  297. s3_cbc.c
  298. s3_lib.c
  299. ssl_algs.c
  300. ssl_asn1.c
  301. ssl_both.c
  302. ssl_cert.c
  303. ssl_ciph.c
  304. ssl_ciphers.c
  305. ssl_clnt.c
  306. ssl_err.c
  307. ssl_init.c
  308. ssl_kex.c
  309. ssl_lib.c
  310. ssl_methods.c
  311. ssl_packet.c
  312. ssl_pkt.c
  313. ssl_rsa.c
  314. ssl_sess.c
  315. ssl_sigalgs.c
  316. ssl_srvr.c
  317. ssl_stat.c
  318. ssl_tlsext.c
  319. ssl_transcript.c
  320. ssl_txt.c
  321. ssl_versions.c
  322. t1_enc.c
  323. t1_lib.c
  324. tls12_key_schedule.c
  325. tls12_lib.c
  326. tls12_record_layer.c
  327. tls13_buffer.c
  328. tls13_client.c
  329. tls13_error.c
  330. tls13_handshake.c
  331. tls13_handshake_msg.c
  332. tls13_key_schedule.c
  333. tls13_key_share.c
  334. tls13_legacy.c
  335. tls13_lib.c
  336. tls13_record.c
  337. tls13_record_layer.c
  338. tls13_server.c
  339. tls_content.c
  340. ) libcrypto.a.d]])
  341. file('lib/libssl.a', '644', '$outdir/libssl.a')
  342. exe('openssl', [[apps/openssl/(
  343. apps.c apps_posix.c asn1pars.c ca.c certhash.c ciphers.c cms.c crl.c
  344. crl2p7.c dgst.c dh.c dhparam.c dsa.c dsaparam.c ec.c ecparam.c enc.c
  345. errstr.c gendh.c gendsa.c genpkey.c genrsa.c nseq.c ocsp.c
  346. openssl.c passwd.c pkcs12.c pkcs7.c pkcs8.c pkey.c pkeyparam.c
  347. pkeyutl.c prime.c rand.c req.c rsa.c rsautl.c s_cb.c s_client.c
  348. s_server.c s_socket.c s_time.c sess_id.c smime.c speed.c spkac.c ts.c
  349. verify.c version.c x509.c
  350. ) libssl.a.d libcrypto.a.d]])
  351. file('bin/openssl', '755', '$outdir/openssl')
  352. man{'apps/openssl/openssl.1'}
  353. fetch 'curl'