SCsub 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693
  1. #!/usr/bin/env python
  2. Import('env')
  3. Import('env_modules')
  4. env_openssl = env_modules.Clone()
  5. # Thirdparty source files
  6. if (env['builtin_openssl'] != 'no'):
  7. thirdparty_dir = "#thirdparty/openssl/"
  8. thirdparty_sources = [
  9. "crypto/aes/aes_cbc.c",
  10. "crypto/aes/aes_cfb.c",
  11. "crypto/aes/aes_core.c",
  12. "crypto/aes/aes_ctr.c",
  13. "crypto/aes/aes_ecb.c",
  14. "crypto/aes/aes_ige.c",
  15. "crypto/aes/aes_misc.c",
  16. "crypto/aes/aes_ofb.c",
  17. "crypto/aes/aes_wrap.c",
  18. #"crypto/aes/aes_x86core.c",
  19. "crypto/asn1/a_bitstr.c",
  20. "crypto/asn1/a_bool.c",
  21. "crypto/asn1/a_bytes.c",
  22. "crypto/asn1/a_d2i_fp.c",
  23. "crypto/asn1/a_digest.c",
  24. "crypto/asn1/a_dup.c",
  25. "crypto/asn1/a_enum.c",
  26. "crypto/asn1/a_gentm.c",
  27. "crypto/asn1/a_i2d_fp.c",
  28. "crypto/asn1/a_int.c",
  29. "crypto/asn1/a_mbstr.c",
  30. "crypto/asn1/ameth_lib.c",
  31. "crypto/asn1/a_object.c",
  32. "crypto/asn1/a_octet.c",
  33. "crypto/asn1/a_print.c",
  34. "crypto/asn1/a_set.c",
  35. "crypto/asn1/a_sign.c",
  36. "crypto/asn1/asn1_err.c",
  37. "crypto/asn1/asn1_gen.c",
  38. "crypto/asn1/asn1_lib.c",
  39. "crypto/asn1/asn1_par.c",
  40. "crypto/asn1/asn_mime.c",
  41. "crypto/asn1/asn_moid.c",
  42. "crypto/asn1/asn_pack.c",
  43. "crypto/asn1/a_strex.c",
  44. "crypto/asn1/a_strnid.c",
  45. "crypto/asn1/a_time.c",
  46. "crypto/asn1/a_type.c",
  47. "crypto/asn1/a_utctm.c",
  48. "crypto/asn1/a_utf8.c",
  49. "crypto/asn1/a_verify.c",
  50. "crypto/asn1/bio_asn1.c",
  51. "crypto/asn1/bio_ndef.c",
  52. "crypto/asn1/d2i_pr.c",
  53. "crypto/asn1/d2i_pu.c",
  54. "crypto/asn1/evp_asn1.c",
  55. "crypto/asn1/f_enum.c",
  56. "crypto/asn1/f_int.c",
  57. "crypto/asn1/f_string.c",
  58. "crypto/asn1/i2d_pr.c",
  59. "crypto/asn1/i2d_pu.c",
  60. "crypto/asn1/n_pkey.c",
  61. "crypto/asn1/nsseq.c",
  62. "crypto/asn1/p5_pbe.c",
  63. "crypto/asn1/p5_pbev2.c",
  64. "crypto/asn1/p8_pkey.c",
  65. "crypto/asn1/tasn_dec.c",
  66. "crypto/asn1/tasn_enc.c",
  67. "crypto/asn1/tasn_fre.c",
  68. "crypto/asn1/tasn_new.c",
  69. "crypto/asn1/tasn_prn.c",
  70. "crypto/asn1/tasn_typ.c",
  71. "crypto/asn1/tasn_utl.c",
  72. "crypto/asn1/t_bitst.c",
  73. "crypto/asn1/t_crl.c",
  74. "crypto/asn1/t_pkey.c",
  75. "crypto/asn1/t_req.c",
  76. "crypto/asn1/t_spki.c",
  77. "crypto/asn1/t_x509a.c",
  78. "crypto/asn1/t_x509.c",
  79. "crypto/asn1/x_algor.c",
  80. "crypto/asn1/x_attrib.c",
  81. "crypto/asn1/x_bignum.c",
  82. "crypto/asn1/x_crl.c",
  83. "crypto/asn1/x_exten.c",
  84. "crypto/asn1/x_info.c",
  85. "crypto/asn1/x_long.c",
  86. "crypto/asn1/x_name.c",
  87. "crypto/asn1/x_nx509.c",
  88. "crypto/asn1/x_pkey.c",
  89. "crypto/asn1/x_pubkey.c",
  90. "crypto/asn1/x_req.c",
  91. "crypto/asn1/x_sig.c",
  92. "crypto/asn1/x_spki.c",
  93. "crypto/asn1/x_val.c",
  94. "crypto/asn1/x_x509a.c",
  95. "crypto/asn1/x_x509.c",
  96. "crypto/bf/bf_cfb64.c",
  97. "crypto/bf/bf_ecb.c",
  98. "crypto/bf/bf_enc.c",
  99. "crypto/bf/bf_ofb64.c",
  100. "crypto/bf/bf_skey.c",
  101. "crypto/bio/b_dump.c",
  102. "crypto/bio/bf_buff.c",
  103. "crypto/bio/bf_nbio.c",
  104. "crypto/bio/bf_null.c",
  105. "crypto/bio/bio_cb.c",
  106. "crypto/bio/bio_err.c",
  107. "crypto/bio/bio_lib.c",
  108. "crypto/bio/b_print.c",
  109. "crypto/bio/b_sock.c",
  110. "crypto/bio/bss_acpt.c",
  111. "crypto/bio/bss_bio.c",
  112. "crypto/bio/bss_conn.c",
  113. "crypto/bio/bss_dgram.c",
  114. "crypto/bio/bss_fd.c",
  115. "crypto/bio/bss_file.c",
  116. "crypto/bio/bss_log.c",
  117. "crypto/bio/bss_mem.c",
  118. "crypto/bio/bss_null.c",
  119. "crypto/bio/bss_sock.c",
  120. "crypto/bn/bn_add.c",
  121. "crypto/bn/bn_asm.c",
  122. "crypto/bn/bn_blind.c",
  123. "crypto/bn/bn_const.c",
  124. "crypto/bn/bn_ctx.c",
  125. "crypto/bn/bn_depr.c",
  126. "crypto/bn/bn_div.c",
  127. "crypto/bn/bn_err.c",
  128. "crypto/bn/bn_exp2.c",
  129. "crypto/bn/bn_exp.c",
  130. "crypto/bn/bn_gcd.c",
  131. "crypto/bn/bn_gf2m.c",
  132. "crypto/bn/bn_kron.c",
  133. "crypto/bn/bn_lib.c",
  134. "crypto/bn/bn_mod.c",
  135. "crypto/bn/bn_mont.c",
  136. "crypto/bn/bn_mpi.c",
  137. "crypto/bn/bn_mul.c",
  138. "crypto/bn/bn_nist.c",
  139. "crypto/bn/bn_prime.c",
  140. "crypto/bn/bn_print.c",
  141. "crypto/bn/bn_rand.c",
  142. "crypto/bn/bn_recp.c",
  143. "crypto/bn/bn_shift.c",
  144. "crypto/bn/bn_sqr.c",
  145. "crypto/bn/bn_sqrt.c",
  146. "crypto/bn/bn_word.c",
  147. "crypto/bn/bn_x931p.c",
  148. "crypto/buffer/buf_err.c",
  149. "crypto/buffer/buffer.c",
  150. "crypto/buffer/buf_str.c",
  151. "crypto/camellia/camellia.c",
  152. "crypto/camellia/cmll_cbc.c",
  153. "crypto/camellia/cmll_cfb.c",
  154. "crypto/camellia/cmll_ctr.c",
  155. "crypto/camellia/cmll_ecb.c",
  156. "crypto/camellia/cmll_misc.c",
  157. "crypto/camellia/cmll_ofb.c",
  158. "crypto/camellia/cmll_utl.c",
  159. "crypto/cast/c_cfb64.c",
  160. "crypto/cast/c_ecb.c",
  161. "crypto/cast/c_enc.c",
  162. "crypto/cast/c_ofb64.c",
  163. "crypto/cast/c_skey.c",
  164. "crypto/cmac/cmac.c",
  165. "crypto/cmac/cm_ameth.c",
  166. "crypto/cmac/cm_pmeth.c",
  167. "crypto/cms/cms_asn1.c",
  168. "crypto/cms/cms_att.c",
  169. "crypto/cms/cms_cd.c",
  170. "crypto/cms/cms_dd.c",
  171. "crypto/cms/cms_enc.c",
  172. "crypto/cms/cms_env.c",
  173. "crypto/cms/cms_err.c",
  174. "crypto/cms/cms_ess.c",
  175. "crypto/cms/cms_io.c",
  176. "crypto/cms/cms_kari.c",
  177. "crypto/cms/cms_lib.c",
  178. "crypto/cms/cms_pwri.c",
  179. "crypto/cms/cms_sd.c",
  180. "crypto/cms/cms_smime.c",
  181. "crypto/comp/comp_err.c",
  182. "crypto/comp/comp_lib.c",
  183. "crypto/comp/c_rle.c",
  184. "crypto/comp/c_zlib.c",
  185. "crypto/conf/conf_api.c",
  186. "crypto/conf/conf_def.c",
  187. "crypto/conf/conf_err.c",
  188. "crypto/conf/conf_lib.c",
  189. "crypto/conf/conf_mall.c",
  190. "crypto/conf/conf_mod.c",
  191. "crypto/conf/conf_sap.c",
  192. "crypto/cpt_err.c",
  193. "crypto/cryptlib.c",
  194. "crypto/cversion.c",
  195. "crypto/des/cbc_cksm.c",
  196. "crypto/des/cbc_enc.c",
  197. "crypto/des/cfb64ede.c",
  198. "crypto/des/cfb64enc.c",
  199. "crypto/des/cfb_enc.c",
  200. "crypto/des/des_enc.c",
  201. "crypto/des/des_old2.c",
  202. "crypto/des/des_old.c",
  203. "crypto/des/ecb3_enc.c",
  204. "crypto/des/ecb_enc.c",
  205. "crypto/des/ede_cbcm_enc.c",
  206. "crypto/des/enc_read.c",
  207. "crypto/des/enc_writ.c",
  208. "crypto/des/fcrypt_b.c",
  209. "crypto/des/fcrypt.c",
  210. "crypto/des/ofb64ede.c",
  211. "crypto/des/ofb64enc.c",
  212. "crypto/des/ofb_enc.c",
  213. "crypto/des/pcbc_enc.c",
  214. "crypto/des/qud_cksm.c",
  215. "crypto/des/rand_key.c",
  216. "crypto/des/read2pwd.c",
  217. "crypto/des/rpc_enc.c",
  218. "crypto/des/set_key.c",
  219. "crypto/des/str2key.c",
  220. "crypto/des/xcbc_enc.c",
  221. "crypto/dh/dh_ameth.c",
  222. "crypto/dh/dh_asn1.c",
  223. "crypto/dh/dh_check.c",
  224. "crypto/dh/dh_depr.c",
  225. "crypto/dh/dh_err.c",
  226. "crypto/dh/dh_gen.c",
  227. "crypto/dh/dh_kdf.c",
  228. "crypto/dh/dh_key.c",
  229. "crypto/dh/dh_lib.c",
  230. "crypto/dh/dh_pmeth.c",
  231. "crypto/dh/dh_prn.c",
  232. "crypto/dh/dh_rfc5114.c",
  233. "crypto/dsa/dsa_ameth.c",
  234. "crypto/dsa/dsa_asn1.c",
  235. "crypto/dsa/dsa_depr.c",
  236. "crypto/dsa/dsa_err.c",
  237. "crypto/dsa/dsa_gen.c",
  238. "crypto/dsa/dsa_key.c",
  239. "crypto/dsa/dsa_lib.c",
  240. "crypto/dsa/dsa_ossl.c",
  241. "crypto/dsa/dsa_pmeth.c",
  242. "crypto/dsa/dsa_prn.c",
  243. "crypto/dsa/dsa_sign.c",
  244. "crypto/dsa/dsa_vrf.c",
  245. "crypto/dso/dso_beos.c",
  246. "crypto/dso/dso_dl.c",
  247. "crypto/dso/dso_dlfcn.c",
  248. "crypto/dso/dso_err.c",
  249. "crypto/dso/dso_lib.c",
  250. "crypto/dso/dso_null.c",
  251. "crypto/dso/dso_openssl.c",
  252. "crypto/dso/dso_vms.c",
  253. "crypto/dso/dso_win32.c",
  254. "crypto/ebcdic.c",
  255. "crypto/ecdh/ech_err.c",
  256. "crypto/ecdh/ech_kdf.c",
  257. "crypto/ecdh/ech_key.c",
  258. "crypto/ecdh/ech_lib.c",
  259. "crypto/ecdh/ech_ossl.c",
  260. "crypto/ecdsa/ecs_asn1.c",
  261. "crypto/ecdsa/ecs_err.c",
  262. "crypto/ecdsa/ecs_lib.c",
  263. "crypto/ecdsa/ecs_ossl.c",
  264. "crypto/ecdsa/ecs_sign.c",
  265. "crypto/ecdsa/ecs_vrf.c",
  266. "crypto/ec/ec2_mult.c",
  267. "crypto/ec/ec2_oct.c",
  268. "crypto/ec/ec2_smpl.c",
  269. "crypto/ec/ec_ameth.c",
  270. "crypto/ec/ec_asn1.c",
  271. "crypto/ec/ec_check.c",
  272. "crypto/ec/ec_curve.c",
  273. "crypto/ec/ec_cvt.c",
  274. "crypto/ec/ec_err.c",
  275. "crypto/ec/ec_key.c",
  276. "crypto/ec/eck_prn.c",
  277. "crypto/ec/ec_lib.c",
  278. "crypto/ec/ec_mult.c",
  279. "crypto/ec/ec_oct.c",
  280. "crypto/ec/ec_pmeth.c",
  281. "crypto/ec/ecp_mont.c",
  282. "crypto/ec/ecp_nist.c",
  283. "crypto/ec/ecp_nistp224.c",
  284. "crypto/ec/ecp_nistp256.c",
  285. "crypto/ec/ecp_nistp521.c",
  286. "crypto/ec/ecp_nistputil.c",
  287. "crypto/ec/ecp_oct.c",
  288. "crypto/ec/ec_print.c",
  289. "crypto/ec/ecp_smpl.c",
  290. "crypto/engine/eng_all.c",
  291. "crypto/engine/eng_cnf.c",
  292. "crypto/engine/eng_cryptodev.c",
  293. "crypto/engine/eng_ctrl.c",
  294. "crypto/engine/eng_dyn.c",
  295. "crypto/engine/eng_err.c",
  296. "crypto/engine/eng_fat.c",
  297. "crypto/engine/eng_init.c",
  298. "crypto/engine/eng_lib.c",
  299. "crypto/engine/eng_list.c",
  300. "crypto/engine/eng_openssl.c",
  301. "crypto/engine/eng_pkey.c",
  302. "crypto/engine/eng_rdrand.c",
  303. "crypto/engine/eng_table.c",
  304. "crypto/engine/tb_asnmth.c",
  305. "crypto/engine/tb_cipher.c",
  306. "crypto/engine/tb_dh.c",
  307. "crypto/engine/tb_digest.c",
  308. "crypto/engine/tb_dsa.c",
  309. "crypto/engine/tb_ecdh.c",
  310. "crypto/engine/tb_ecdsa.c",
  311. "crypto/engine/tb_pkmeth.c",
  312. "crypto/engine/tb_rand.c",
  313. "crypto/engine/tb_rsa.c",
  314. "crypto/engine/tb_store.c",
  315. "crypto/err/err_all.c",
  316. "crypto/err/err.c",
  317. "crypto/err/err_prn.c",
  318. "crypto/evp/bio_b64.c",
  319. "crypto/evp/bio_enc.c",
  320. "crypto/evp/bio_md.c",
  321. "crypto/evp/bio_ok.c",
  322. "crypto/evp/c_all.c",
  323. "crypto/evp/c_allc.c",
  324. "crypto/evp/c_alld.c",
  325. "crypto/evp/digest.c",
  326. "crypto/evp/e_aes.c",
  327. "crypto/evp/e_aes_cbc_hmac_sha1.c",
  328. "crypto/evp/e_aes_cbc_hmac_sha256.c",
  329. "crypto/evp/e_bf.c",
  330. "crypto/evp/e_camellia.c",
  331. "crypto/evp/e_cast.c",
  332. "crypto/evp/e_des3.c",
  333. "crypto/evp/e_des.c",
  334. "crypto/evp/e_idea.c",
  335. "crypto/evp/encode.c",
  336. "crypto/evp/e_null.c",
  337. "crypto/evp/e_old.c",
  338. "crypto/evp/e_rc2.c",
  339. "crypto/evp/e_rc4.c",
  340. "crypto/evp/e_rc4_hmac_md5.c",
  341. "crypto/evp/e_rc5.c",
  342. "crypto/evp/e_seed.c",
  343. "crypto/evp/evp_acnf.c",
  344. "crypto/evp/evp_cnf.c",
  345. "crypto/evp/evp_enc.c",
  346. "crypto/evp/evp_err.c",
  347. "crypto/evp/evp_key.c",
  348. "crypto/evp/evp_lib.c",
  349. "crypto/evp/evp_pbe.c",
  350. "crypto/evp/evp_pkey.c",
  351. "crypto/evp/e_xcbc_d.c",
  352. "crypto/evp/m_dss1.c",
  353. "crypto/evp/m_dss.c",
  354. "crypto/evp/m_ecdsa.c",
  355. "crypto/evp/m_md2.c",
  356. "crypto/evp/m_md4.c",
  357. "crypto/evp/m_md5.c",
  358. "crypto/evp/m_mdc2.c",
  359. "crypto/evp/m_null.c",
  360. "crypto/evp/m_ripemd.c",
  361. "crypto/evp/m_sha1.c",
  362. "crypto/evp/m_sha.c",
  363. "crypto/evp/m_sigver.c",
  364. "crypto/evp/m_wp.c",
  365. "crypto/evp/names.c",
  366. "crypto/evp/p5_crpt2.c",
  367. "crypto/evp/p5_crpt.c",
  368. "crypto/evp/p_dec.c",
  369. "crypto/evp/p_enc.c",
  370. "crypto/evp/p_lib.c",
  371. "crypto/evp/pmeth_fn.c",
  372. "crypto/evp/pmeth_gn.c",
  373. "crypto/evp/pmeth_lib.c",
  374. "crypto/evp/p_open.c",
  375. "crypto/evp/p_seal.c",
  376. "crypto/evp/p_sign.c",
  377. "crypto/evp/p_verify.c",
  378. "crypto/ex_data.c",
  379. "crypto/fips_ers.c",
  380. "crypto/getenv.c",
  381. "crypto/hmac/hmac.c",
  382. "crypto/hmac/hm_ameth.c",
  383. "crypto/hmac/hm_pmeth.c",
  384. "crypto/idea/i_cbc.c",
  385. "crypto/idea/i_cfb64.c",
  386. "crypto/idea/i_ecb.c",
  387. "crypto/idea/i_ofb64.c",
  388. "crypto/idea/i_skey.c",
  389. "crypto/krb5/krb5_asn.c",
  390. "crypto/lhash/lhash.c",
  391. "crypto/lhash/lh_stats.c",
  392. "crypto/md4/md4_dgst.c",
  393. "crypto/md4/md4_one.c",
  394. "crypto/md5/md5_dgst.c",
  395. "crypto/md5/md5_one.c",
  396. "crypto/mdc2/mdc2dgst.c",
  397. "crypto/mdc2/mdc2_one.c",
  398. "crypto/mem.c",
  399. "crypto/mem_clr.c",
  400. "crypto/mem_dbg.c",
  401. "crypto/modes/cbc128.c",
  402. "crypto/modes/ccm128.c",
  403. "crypto/modes/cfb128.c",
  404. "crypto/modes/ctr128.c",
  405. "crypto/modes/cts128.c",
  406. "crypto/modes/gcm128.c",
  407. "crypto/modes/ofb128.c",
  408. "crypto/modes/wrap128.c",
  409. "crypto/modes/xts128.c",
  410. "crypto/objects/obj_dat.c",
  411. "crypto/objects/obj_err.c",
  412. "crypto/objects/obj_lib.c",
  413. "crypto/objects/obj_xref.c",
  414. "crypto/objects/o_names.c",
  415. "crypto/ocsp/ocsp_asn.c",
  416. "crypto/ocsp/ocsp_cl.c",
  417. "crypto/ocsp/ocsp_err.c",
  418. "crypto/ocsp/ocsp_ext.c",
  419. "crypto/ocsp/ocsp_ht.c",
  420. "crypto/ocsp/ocsp_lib.c",
  421. "crypto/ocsp/ocsp_prn.c",
  422. "crypto/ocsp/ocsp_srv.c",
  423. "crypto/ocsp/ocsp_vfy.c",
  424. "crypto/o_dir.c",
  425. "crypto/o_fips.c",
  426. "crypto/o_init.c",
  427. "crypto/o_str.c",
  428. "crypto/o_time.c",
  429. "crypto/pem/pem_all.c",
  430. "crypto/pem/pem_err.c",
  431. "crypto/pem/pem_info.c",
  432. "crypto/pem/pem_lib.c",
  433. "crypto/pem/pem_oth.c",
  434. "crypto/pem/pem_pk8.c",
  435. "crypto/pem/pem_pkey.c",
  436. "crypto/pem/pem_seal.c",
  437. "crypto/pem/pem_sign.c",
  438. "crypto/pem/pem_x509.c",
  439. "crypto/pem/pem_xaux.c",
  440. "crypto/pem/pvkfmt.c",
  441. "crypto/pkcs12/p12_add.c",
  442. "crypto/pkcs12/p12_asn.c",
  443. "crypto/pkcs12/p12_attr.c",
  444. "crypto/pkcs12/p12_crpt.c",
  445. "crypto/pkcs12/p12_crt.c",
  446. "crypto/pkcs12/p12_decr.c",
  447. "crypto/pkcs12/p12_init.c",
  448. "crypto/pkcs12/p12_key.c",
  449. "crypto/pkcs12/p12_kiss.c",
  450. "crypto/pkcs12/p12_mutl.c",
  451. "crypto/pkcs12/p12_npas.c",
  452. "crypto/pkcs12/p12_p8d.c",
  453. "crypto/pkcs12/p12_p8e.c",
  454. "crypto/pkcs12/p12_utl.c",
  455. "crypto/pkcs12/pk12err.c",
  456. "crypto/pkcs7/bio_pk7.c",
  457. "crypto/pkcs7/pk7_asn1.c",
  458. "crypto/pkcs7/pk7_attr.c",
  459. "crypto/pkcs7/pk7_doit.c",
  460. "crypto/pkcs7/pk7_lib.c",
  461. "crypto/pkcs7/pk7_mime.c",
  462. "crypto/pkcs7/pk7_smime.c",
  463. "crypto/pkcs7/pkcs7err.c",
  464. "crypto/pqueue/pqueue.c",
  465. "crypto/rand/md_rand.c",
  466. "crypto/rand/rand_egd.c",
  467. "crypto/rand/rand_err.c",
  468. "crypto/rand/randfile.c",
  469. "crypto/rand/rand_lib.c",
  470. "crypto/rand/rand_nw.c",
  471. "crypto/rand/rand_os2.c",
  472. "crypto/rand/rand_unix.c",
  473. "crypto/rand/rand_win.c",
  474. "crypto/rc2/rc2_cbc.c",
  475. "crypto/rc2/rc2cfb64.c",
  476. "crypto/rc2/rc2_ecb.c",
  477. "crypto/rc2/rc2ofb64.c",
  478. "crypto/rc2/rc2_skey.c",
  479. "crypto/rc4/rc4_enc.c",
  480. "crypto/rc4/rc4_skey.c",
  481. "crypto/rc4/rc4_utl.c",
  482. "crypto/ripemd/rmd_dgst.c",
  483. "crypto/ripemd/rmd_one.c",
  484. "crypto/rsa/rsa_ameth.c",
  485. "crypto/rsa/rsa_asn1.c",
  486. "crypto/rsa/rsa_chk.c",
  487. "crypto/rsa/rsa_crpt.c",
  488. "crypto/rsa/rsa_depr.c",
  489. "crypto/rsa/rsa_eay.c",
  490. "crypto/rsa/rsa_err.c",
  491. "crypto/rsa/rsa_gen.c",
  492. "crypto/rsa/rsa_lib.c",
  493. "crypto/rsa/rsa_none.c",
  494. "crypto/rsa/rsa_null.c",
  495. "crypto/rsa/rsa_oaep.c",
  496. "crypto/rsa/rsa_pk1.c",
  497. "crypto/rsa/rsa_pmeth.c",
  498. "crypto/rsa/rsa_prn.c",
  499. "crypto/rsa/rsa_pss.c",
  500. "crypto/rsa/rsa_saos.c",
  501. "crypto/rsa/rsa_sign.c",
  502. "crypto/rsa/rsa_ssl.c",
  503. "crypto/rsa/rsa_x931.c",
  504. "crypto/seed/seed.c",
  505. "crypto/seed/seed_cbc.c",
  506. "crypto/seed/seed_cfb.c",
  507. "crypto/seed/seed_ecb.c",
  508. "crypto/seed/seed_ofb.c",
  509. "crypto/sha/sha1dgst.c",
  510. "crypto/sha/sha1_one.c",
  511. "crypto/sha/sha256.c",
  512. "crypto/sha/sha512.c",
  513. "crypto/sha/sha_dgst.c",
  514. "crypto/sha/sha_one.c",
  515. "crypto/srp/srp_lib.c",
  516. "crypto/srp/srp_vfy.c",
  517. "crypto/stack/stack.c",
  518. "crypto/ts/ts_asn1.c",
  519. "crypto/ts/ts_conf.c",
  520. "crypto/ts/ts_err.c",
  521. "crypto/ts/ts_lib.c",
  522. "crypto/ts/ts_req_print.c",
  523. "crypto/ts/ts_req_utils.c",
  524. "crypto/ts/ts_rsp_print.c",
  525. "crypto/ts/ts_rsp_sign.c",
  526. "crypto/ts/ts_rsp_utils.c",
  527. "crypto/ts/ts_rsp_verify.c",
  528. "crypto/ts/ts_verify_ctx.c",
  529. "crypto/txt_db/txt_db.c",
  530. "crypto/uid.c",
  531. "crypto/ui/ui_compat.c",
  532. "crypto/ui/ui_err.c",
  533. "crypto/ui/ui_lib.c",
  534. "crypto/ui/ui_openssl.c",
  535. "crypto/ui/ui_util.c",
  536. "crypto/whrlpool/wp_block.c",
  537. "crypto/whrlpool/wp_dgst.c",
  538. "crypto/x509/by_dir.c",
  539. "crypto/x509/by_file.c",
  540. "crypto/x509v3/pcy_cache.c",
  541. "crypto/x509v3/pcy_data.c",
  542. "crypto/x509v3/pcy_lib.c",
  543. "crypto/x509v3/pcy_map.c",
  544. "crypto/x509v3/pcy_node.c",
  545. "crypto/x509v3/pcy_tree.c",
  546. "crypto/x509v3/v3_addr.c",
  547. "crypto/x509v3/v3_akeya.c",
  548. "crypto/x509v3/v3_akey.c",
  549. "crypto/x509v3/v3_alt.c",
  550. "crypto/x509v3/v3_asid.c",
  551. "crypto/x509v3/v3_bcons.c",
  552. "crypto/x509v3/v3_bitst.c",
  553. "crypto/x509v3/v3_conf.c",
  554. "crypto/x509v3/v3_cpols.c",
  555. "crypto/x509v3/v3_crld.c",
  556. "crypto/x509v3/v3_enum.c",
  557. "crypto/x509v3/v3err.c",
  558. "crypto/x509v3/v3_extku.c",
  559. "crypto/x509v3/v3_genn.c",
  560. "crypto/x509v3/v3_ia5.c",
  561. "crypto/x509v3/v3_info.c",
  562. "crypto/x509v3/v3_int.c",
  563. "crypto/x509v3/v3_lib.c",
  564. "crypto/x509v3/v3_ncons.c",
  565. "crypto/x509v3/v3_ocsp.c",
  566. "crypto/x509v3/v3_pcia.c",
  567. "crypto/x509v3/v3_pci.c",
  568. "crypto/x509v3/v3_pcons.c",
  569. "crypto/x509v3/v3_pku.c",
  570. "crypto/x509v3/v3_pmaps.c",
  571. "crypto/x509v3/v3_prn.c",
  572. "crypto/x509v3/v3_purp.c",
  573. "crypto/x509v3/v3_scts.c",
  574. "crypto/x509v3/v3_skey.c",
  575. "crypto/x509v3/v3_sxnet.c",
  576. "crypto/x509v3/v3_utl.c",
  577. "crypto/x509/x509_att.c",
  578. "crypto/x509/x509_cmp.c",
  579. "crypto/x509/x509cset.c",
  580. "crypto/x509/x509_d2.c",
  581. "crypto/x509/x509_def.c",
  582. "crypto/x509/x509_err.c",
  583. "crypto/x509/x509_ext.c",
  584. "crypto/x509/x509_lu.c",
  585. "crypto/x509/x509name.c",
  586. "crypto/x509/x509_obj.c",
  587. "crypto/x509/x509_r2x.c",
  588. "crypto/x509/x509_req.c",
  589. "crypto/x509/x509rset.c",
  590. "crypto/x509/x509_set.c",
  591. "crypto/x509/x509spki.c",
  592. "crypto/x509/x509_trs.c",
  593. "crypto/x509/x509_txt.c",
  594. "crypto/x509/x509type.c",
  595. "crypto/x509/x509_v3.c",
  596. "crypto/x509/x509_vfy.c",
  597. "crypto/x509/x509_vpm.c",
  598. "crypto/x509/x_all.c",
  599. "ssl/bio_ssl.c",
  600. "ssl/d1_both.c",
  601. "ssl/d1_clnt.c",
  602. "ssl/d1_lib.c",
  603. "ssl/d1_meth.c",
  604. "ssl/d1_pkt.c",
  605. "ssl/d1_srtp.c",
  606. "ssl/d1_srvr.c",
  607. "ssl/kssl.c",
  608. "ssl/s23_clnt.c",
  609. "ssl/s23_lib.c",
  610. "ssl/s23_meth.c",
  611. "ssl/s23_pkt.c",
  612. "ssl/s23_srvr.c",
  613. "ssl/s2_clnt.c",
  614. "ssl/s2_enc.c",
  615. "ssl/s2_lib.c",
  616. "ssl/s2_meth.c",
  617. "ssl/s2_pkt.c",
  618. "ssl/s2_srvr.c",
  619. "ssl/s3_both.c",
  620. "ssl/s3_cbc.c",
  621. "ssl/s3_clnt.c",
  622. "ssl/s3_enc.c",
  623. "ssl/s3_lib.c",
  624. "ssl/s3_meth.c",
  625. "ssl/s3_pkt.c",
  626. "ssl/s3_srvr.c",
  627. "ssl/ssl_algs.c",
  628. "ssl/ssl_asn1.c",
  629. "ssl/ssl_cert.c",
  630. "ssl/ssl_ciph.c",
  631. "ssl/ssl_err2.c",
  632. "ssl/ssl_err.c",
  633. "ssl/ssl_lib.c",
  634. "ssl/ssl_rsa.c",
  635. "ssl/ssl_sess.c",
  636. "ssl/ssl_stat.c",
  637. "ssl/ssl_txt.c",
  638. "ssl/t1_clnt.c",
  639. "ssl/t1_enc.c",
  640. "ssl/t1_ext.c",
  641. "ssl/t1_lib.c",
  642. "ssl/t1_meth.c",
  643. "ssl/t1_reneg.c",
  644. "ssl/t1_srvr.c",
  645. "ssl/tls_srp.c",
  646. ]
  647. if "platform" in env and env["platform"] == "winrt":
  648. thirdparty_sources += ['winrt.cpp']
  649. thirdparty_sources = [thirdparty_dir + file for file in thirdparty_sources]
  650. env_openssl.add_source_files(env.modules_sources, thirdparty_sources)
  651. # FIXME: Clone the environment to make a env_openssl and not pollute the modules env
  652. thirdparty_include_paths = [
  653. "",
  654. "crypto",
  655. "crypto/asn1",
  656. "crypto/evp",
  657. "crypto/modes",
  658. "openssl",
  659. ]
  660. env_openssl.Append(CPPPATH=[thirdparty_dir + "/" + dir for dir in thirdparty_include_paths])
  661. env_openssl.Append(CPPFLAGS=["-DOPENSSL_NO_ASM", "-DOPENSSL_THREADS", "-DL_ENDIAN"])
  662. # Workaround for compilation error with GCC/Clang when -Werror is too greedy (GH-4517)
  663. import os
  664. import methods
  665. if not (os.name == "nt" and os.getenv("VCINSTALLDIR") != None): # not Windows and not MSVC
  666. env_openssl.Append(CFLAGS=["-Wno-error=implicit-function-declaration"])
  667. # Module sources
  668. env_openssl.add_source_files(env.modules_sources, "*.cpp")
  669. # Other thirdparty dependencies
  670. thirdparty_misc_dir = "#thirdparty/misc/"
  671. thirdparty_misc_sources = [
  672. "curl_hostcheck.c",
  673. ]
  674. thirdparty_misc_sources = [thirdparty_misc_dir + file for file in thirdparty_misc_sources]
  675. env_openssl.add_source_files(env.modules_sources, thirdparty_misc_sources)
  676. Export('env')