Skip to content

Commit 084f2c8

Browse files
chore: unity build (#9)
1 parent c56a36a commit 084f2c8

32 files changed

Lines changed: 414 additions & 485 deletions

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ import boringssl
3838

3939
The bindings expose BoringSSL's C API; refer to the headers under [`boringssl/include/openssl/`](boringssl/include/openssl/) for the available symbols.
4040

41-
[`boringssl.nim`](boringssl.nim) is a generated file. It is the concatenation of [`prelude.nim`](prelude.nim) — which carries the build glue (`{.compile:.}` directives for the C/assembly sources, compiler flags, platform guards) — and `tmp_boringssl_ffi.nim`, the raw FFI bindings produced by [futhark](https://github.com/PMunch/futhark) from the BoringSSL headers. See [Regenerating bindings](#regenerating-bindings) below.
41+
[`boringssl.nim`](boringssl.nim) is a generated file. It is the concatenation of [`prelude.nim`](prelude.nim) — which carries the build glue (`{.compile:.}` directives for the C/assembly sources, compiler flags, platform guards) — and `tmp_boringssl_ffi.nim`, the raw FFI bindings produced by [futhark](https://github.com/PMunch/futhark) from the BoringSSL headers. Most compatible C++ sources are compiled through unity chunks under [`boringssl_units/`](boringssl_units/) to reduce compiler invocations. See [Regenerating bindings](#regenerating-bindings) below.
4242

4343
BoringSSL is a C++ library, so [`config.nims`](config.nims) overrides the linker to `g++` (Linux), `clang++` (macOS) for downstream builds. Windows uses the default `clang` toolchain.
4444

boringssl.nim

Lines changed: 29 additions & 241 deletions
Original file line numberDiff line numberDiff line change
@@ -242,289 +242,77 @@ when BORINGSS_USE_ASM:
242242
linkAsmFiles(asmFiles, outDir)
243243

244244
# ----- generated sources -----
245+
# Compile compatible BoringSSL C++ files as unity chunks.
245246
{.compile: "./boringssl/crypto/fipsmodule/bcm.cc".}
246247
{.compile: "./boringssl/crypto/aes/aes.cc".}
247-
{.compile: "./boringssl/crypto/asn1/a_bitstr.cc".}
248-
{.compile: "./boringssl/crypto/asn1/a_bool.cc".}
249-
{.compile: "./boringssl/crypto/asn1/a_d2i_fp.cc".}
250-
{.compile: "./boringssl/crypto/asn1/a_dup.cc".}
251-
{.compile: "./boringssl/crypto/asn1/a_gentm.cc".}
252-
{.compile: "./boringssl/crypto/asn1/a_i2d_fp.cc".}
253-
{.compile: "./boringssl/crypto/asn1/a_int.cc".}
254-
{.compile: "./boringssl/crypto/asn1/a_mbstr.cc".}
255-
{.compile: "./boringssl/crypto/asn1/a_object.cc".}
256-
{.compile: "./boringssl/crypto/asn1/a_octet.cc".}
257-
{.compile: "./boringssl/crypto/asn1/a_strex.cc".}
258-
{.compile: "./boringssl/crypto/asn1/a_strnid.cc".}
259-
{.compile: "./boringssl/crypto/asn1/a_time.cc".}
260-
{.compile: "./boringssl/crypto/asn1/a_type.cc".}
261-
{.compile: "./boringssl/crypto/asn1/a_utctm.cc".}
262-
{.compile: "./boringssl/crypto/asn1/asn1_lib.cc".}
263-
{.compile: "./boringssl/crypto/asn1/asn1_par.cc".}
264-
{.compile: "./boringssl/crypto/asn1/asn_pack.cc".}
265-
{.compile: "./boringssl/crypto/asn1/f_int.cc".}
266-
{.compile: "./boringssl/crypto/asn1/f_string.cc".}
267-
{.compile: "./boringssl/crypto/asn1/posix_time.cc".}
268-
{.compile: "./boringssl/crypto/asn1/tasn_dec.cc".}
269-
{.compile: "./boringssl/crypto/asn1/tasn_enc.cc".}
270-
{.compile: "./boringssl/crypto/asn1/tasn_fre.cc".}
271-
{.compile: "./boringssl/crypto/asn1/tasn_new.cc".}
272-
{.compile: "./boringssl/crypto/asn1/tasn_typ.cc".}
273-
{.compile: "./boringssl/crypto/asn1/tasn_utl.cc".}
248+
{.compile: "./boringssl_units/crypto_asn1.cc".}
274249
{.compile: "./boringssl/crypto/base64/base64.cc".}
275-
{.compile: "./boringssl/crypto/bio/bio.cc".}
276-
{.compile: "./boringssl/crypto/bio/bio_mem.cc".}
277-
{.compile: "./boringssl/crypto/bio/connect.cc".}
278-
{.compile: "./boringssl/crypto/bio/errno.cc".}
279-
{.compile: "./boringssl/crypto/bio/fd.cc".}
280-
{.compile: "./boringssl/crypto/bio/file.cc".}
281-
{.compile: "./boringssl/crypto/bio/hexdump.cc".}
282-
{.compile: "./boringssl/crypto/bio/pair.cc".}
283-
{.compile: "./boringssl/crypto/bio/printf.cc".}
250+
{.compile: "./boringssl_units/crypto_bio_core.cc".}
284251
{.compile: "./boringssl/crypto/bio/socket.cc".}
285-
{.compile: "./boringssl/crypto/bio/socket_helper.cc".}
286252
{.compile: "./boringssl/crypto/blake2/blake2.cc".}
287-
{.compile: "./boringssl/crypto/bn/bn_asn1.cc".}
288-
{.compile: "./boringssl/crypto/bn/convert.cc".}
289-
{.compile: "./boringssl/crypto/bn/div.cc".}
290-
{.compile: "./boringssl/crypto/bn/exponentiation.cc".}
291-
{.compile: "./boringssl/crypto/bn/sqrt.cc".}
253+
{.compile: "./boringssl_units/crypto_bn.cc".}
292254
{.compile: "./boringssl/crypto/buf/buf.cc".}
293-
{.compile: "./boringssl/crypto/bytestring/asn1_compat.cc".}
294-
{.compile: "./boringssl/crypto/bytestring/ber.cc".}
295-
{.compile: "./boringssl/crypto/bytestring/cbb.cc".}
296-
{.compile: "./boringssl/crypto/bytestring/cbs.cc".}
297-
{.compile: "./boringssl/crypto/bytestring/unicode.cc".}
255+
{.compile: "./boringssl_units/crypto_bytestring.cc".}
298256
{.compile: "./boringssl/crypto/chacha/chacha.cc".}
299-
{.compile: "./boringssl/crypto/cipher/derive_key.cc".}
300-
{.compile: "./boringssl/crypto/cipher/e_aesctrhmac.cc".}
301-
{.compile: "./boringssl/crypto/cipher/e_aeseax.cc".}
302-
{.compile: "./boringssl/crypto/cipher/e_aesgcmsiv.cc".}
303-
{.compile: "./boringssl/crypto/cipher/e_chacha20poly1305.cc".}
304-
{.compile: "./boringssl/crypto/cipher/e_des.cc".}
305-
{.compile: "./boringssl/crypto/cipher/e_null.cc".}
257+
{.compile: "./boringssl_units/crypto_cipher_core.cc".}
306258
{.compile: "./boringssl/crypto/cipher/e_rc2.cc".}
307-
{.compile: "./boringssl/crypto/cipher/e_rc4.cc".}
308-
{.compile: "./boringssl/crypto/cipher/e_tls.cc".}
309-
{.compile: "./boringssl/crypto/cipher/get_cipher.cc".}
310-
{.compile: "./boringssl/crypto/cipher/tls_cbc.cc".}
311259
{.compile: "./boringssl/crypto/cms/cms.cc".}
312260
{.compile: "./boringssl/crypto/conf/conf.cc".}
313-
{.compile: "./boringssl/crypto/cpu_aarch64_apple.cc".}
314-
{.compile: "./boringssl/crypto/cpu_aarch64_fuchsia.cc".}
315-
{.compile: "./boringssl/crypto/cpu_aarch64_linux.cc".}
316-
{.compile: "./boringssl/crypto/cpu_aarch64_openbsd.cc".}
317-
{.compile: "./boringssl/crypto/cpu_aarch64_sysreg.cc".}
318-
{.compile: "./boringssl/crypto/cpu_aarch64_win.cc".}
319-
{.compile: "./boringssl/crypto/cpu_arm_freebsd.cc".}
320-
{.compile: "./boringssl/crypto/cpu_arm_linux.cc".}
321-
{.compile: "./boringssl/crypto/cpu_intel.cc".}
322-
{.compile: "./boringssl/crypto/crypto.cc".}
323-
{.compile: "./boringssl/crypto/curve25519/curve25519.cc".}
324-
{.compile: "./boringssl/crypto/curve25519/curve25519_64_adx.cc".}
325-
{.compile: "./boringssl/crypto/curve25519/spake25519.cc".}
261+
{.compile: "./boringssl_units/crypto.cc".}
262+
{.compile: "./boringssl_units/crypto_curve25519.cc".}
326263
{.compile: "./boringssl/crypto/des/des.cc".}
327-
{.compile: "./boringssl/crypto/dh/dh_asn1.cc".}
328-
{.compile: "./boringssl/crypto/dh/params.cc".}
264+
{.compile: "./boringssl_units/crypto_dh.cc".}
329265
{.compile: "./boringssl/crypto/digest/digest_extra.cc".}
330-
{.compile: "./boringssl/crypto/dsa/dsa.cc".}
331-
{.compile: "./boringssl/crypto/dsa/dsa_asn1.cc".}
332-
{.compile: "./boringssl/crypto/ec/ec_asn1.cc".}
333-
{.compile: "./boringssl/crypto/ec/ec_derive.cc".}
334-
{.compile: "./boringssl/crypto/ec/hash_to_curve.cc".}
266+
{.compile: "./boringssl_units/crypto_dsa.cc".}
267+
{.compile: "./boringssl_units/crypto_ec.cc".}
335268
{.compile: "./boringssl/crypto/ecdh/ecdh.cc".}
336-
{.compile: "./boringssl/crypto/ecdsa/ecdsa_asn1.cc".}
337-
{.compile: "./boringssl/crypto/ecdsa/ecdsa_p1363.cc".}
269+
{.compile: "./boringssl_units/crypto_ecdsa.cc".}
338270
{.compile: "./boringssl/crypto/engine/engine.cc".}
339271
{.compile: "./boringssl/crypto/err/err.cc".}
340-
{.compile: "./boringssl/crypto/evp/evp.cc".}
341-
{.compile: "./boringssl/crypto/evp/evp_asn1.cc".}
342-
{.compile: "./boringssl/crypto/evp/evp_ctx.cc".}
343-
{.compile: "./boringssl/crypto/evp/evp_kem.cc".}
344-
{.compile: "./boringssl/crypto/evp/p_dh.cc".}
345-
{.compile: "./boringssl/crypto/evp/p_dsa.cc".}
346-
{.compile: "./boringssl/crypto/evp/p_ec.cc".}
347-
{.compile: "./boringssl/crypto/evp/p_ed25519.cc".}
348-
{.compile: "./boringssl/crypto/evp/p_hkdf.cc".}
349-
{.compile: "./boringssl/crypto/evp/p_mldsa.cc".}
272+
{.compile: "./boringssl_units/crypto_evp_core.cc".}
350273
{.compile: "./boringssl/crypto/evp/p_mlkem.cc".}
351-
{.compile: "./boringssl/crypto/evp/p_rsa.cc".}
352-
{.compile: "./boringssl/crypto/evp/p_x25519.cc".}
353-
{.compile: "./boringssl/crypto/evp/p_xwing.cc".}
354-
{.compile: "./boringssl/crypto/evp/pbkdf.cc".}
355-
{.compile: "./boringssl/crypto/evp/print.cc".}
356-
{.compile: "./boringssl/crypto/evp/scrypt.cc".}
357-
{.compile: "./boringssl/crypto/evp/sign.cc".}
358-
{.compile: "./boringssl/crypto/ex_data.cc".}
359274
{.compile: "./boringssl/crypto/fipsmodule/fips_shared_support.cc".}
360-
{.compile: "./boringssl/crypto/fuzzer_mode.cc".}
361275
{.compile: "./boringssl/crypto/hpke/hpke.cc".}
362276
{.compile: "./boringssl/crypto/hrss/hrss.cc".}
363277
{.compile: "./boringssl/crypto/kyber/kyber.cc".}
364278
{.compile: "./boringssl/crypto/lhash/lhash.cc".}
365279
{.compile: "./boringssl/crypto/md4/md4.cc".}
366280
{.compile: "./boringssl/crypto/md5/md5.cc".}
367-
{.compile: "./boringssl/crypto/mem.cc".}
368281
{.compile: "./boringssl/crypto/mldsa/mldsa.cc".}
369282
{.compile: "./boringssl/crypto/mlkem/mlkem.cc".}
370-
{.compile: "./boringssl/crypto/obj/obj.cc".}
371-
{.compile: "./boringssl/crypto/obj/obj_xref.cc".}
372-
{.compile: "./boringssl/crypto/pem/pem_all.cc".}
373-
{.compile: "./boringssl/crypto/pem/pem_info.cc".}
374-
{.compile: "./boringssl/crypto/pem/pem_lib.cc".}
375-
{.compile: "./boringssl/crypto/pem/pem_oth.cc".}
376-
{.compile: "./boringssl/crypto/pem/pem_pk8.cc".}
377-
{.compile: "./boringssl/crypto/pem/pem_pkey.cc".}
378-
{.compile: "./boringssl/crypto/pem/pem_x509.cc".}
379-
{.compile: "./boringssl/crypto/pem/pem_xaux.cc".}
380-
{.compile: "./boringssl/crypto/pkcs7/pkcs7.cc".}
381-
{.compile: "./boringssl/crypto/pkcs7/pkcs7_x509.cc".}
382-
{.compile: "./boringssl/crypto/pkcs8/p5_pbev2.cc".}
383-
{.compile: "./boringssl/crypto/pkcs8/pkcs8.cc".}
384-
{.compile: "./boringssl/crypto/pkcs8/pkcs8_x509.cc".}
385-
{.compile: "./boringssl/crypto/poly1305/poly1305.cc".}
386-
{.compile: "./boringssl/crypto/poly1305/poly1305_arm.cc".}
387-
{.compile: "./boringssl/crypto/poly1305/poly1305_vec.cc".}
283+
{.compile: "./boringssl_units/crypto_obj.cc".}
284+
{.compile: "./boringssl_units/crypto_pem.cc".}
285+
{.compile: "./boringssl_units/crypto_pkcs7.cc".}
286+
{.compile: "./boringssl_units/crypto_pkcs8.cc".}
287+
{.compile: "./boringssl_units/crypto_poly1305.cc".}
388288
{.compile: "./boringssl/crypto/pool/pool.cc".}
389-
{.compile: "./boringssl/crypto/rand/deterministic.cc".}
390-
{.compile: "./boringssl/crypto/rand/fork_detect.cc".}
391-
{.compile: "./boringssl/crypto/rand/forkunsafe.cc".}
392-
{.compile: "./boringssl/crypto/rand/getentropy.cc".}
393-
{.compile: "./boringssl/crypto/rand/ios.cc".}
394-
{.compile: "./boringssl/crypto/rand/passive.cc".}
395-
{.compile: "./boringssl/crypto/rand/rand.cc".}
396-
{.compile: "./boringssl/crypto/rand/trusty.cc".}
397-
{.compile: "./boringssl/crypto/rand/urandom.cc".}
398-
{.compile: "./boringssl/crypto/rand/windows.cc".}
289+
{.compile: "./boringssl_units/crypto_rand.cc".}
399290
{.compile: "./boringssl/crypto/rc4/rc4.cc".}
400-
{.compile: "./boringssl/crypto/refcount.cc".}
401-
{.compile: "./boringssl/crypto/rsa/rsa_asn1.cc".}
402-
{.compile: "./boringssl/crypto/rsa/rsa_crypt.cc".}
403-
{.compile: "./boringssl/crypto/rsa/rsa_extra.cc".}
404-
{.compile: "./boringssl/crypto/rsa/rsa_print.cc".}
405-
{.compile: "./boringssl/crypto/sha/sha1.cc".}
406-
{.compile: "./boringssl/crypto/sha/sha256.cc".}
407-
{.compile: "./boringssl/crypto/sha/sha512.cc".}
291+
{.compile: "./boringssl_units/crypto_rsa.cc".}
292+
{.compile: "./boringssl_units/crypto_sha.cc".}
408293
{.compile: "./boringssl/crypto/siphash/siphash.cc".}
409294
{.compile: "./boringssl/crypto/slhdsa/slhdsa.cc".}
410295
{.compile: "./boringssl/crypto/spake2plus/spake2plus.cc".}
411296
{.compile: "./boringssl/crypto/stack/stack.cc".}
412-
{.compile: "./boringssl/crypto/thread.cc".}
413-
{.compile: "./boringssl/crypto/thread_none.cc".}
414-
{.compile: "./boringssl/crypto/thread_pthread.cc".}
415-
{.compile: "./boringssl/crypto/thread_win.cc".}
416-
{.compile: "./boringssl/crypto/trust_token/pmbtoken.cc".}
417-
{.compile: "./boringssl/crypto/trust_token/trust_token.cc".}
297+
{.compile: "./boringssl_units/crypto_trust_token_core.cc".}
418298
{.compile: "./boringssl/crypto/trust_token/voprf.cc".}
419-
{.compile: "./boringssl/crypto/x509/a_digest.cc".}
420-
{.compile: "./boringssl/crypto/x509/a_sign.cc".}
421-
{.compile: "./boringssl/crypto/x509/a_verify.cc".}
422-
{.compile: "./boringssl/crypto/x509/algorithm.cc".}
423-
{.compile: "./boringssl/crypto/x509/asn1_gen.cc".}
424-
{.compile: "./boringssl/crypto/x509/by_dir.cc".}
425-
{.compile: "./boringssl/crypto/x509/by_file.cc".}
426-
{.compile: "./boringssl/crypto/x509/i2d_pr.cc".}
427-
{.compile: "./boringssl/crypto/x509/name_print.cc".}
428-
{.compile: "./boringssl/crypto/x509/policy.cc".}
429-
{.compile: "./boringssl/crypto/x509/rsa_pss.cc".}
430-
{.compile: "./boringssl/crypto/x509/t_crl.cc".}
431-
{.compile: "./boringssl/crypto/x509/t_req.cc".}
432-
{.compile: "./boringssl/crypto/x509/t_x509.cc".}
433-
{.compile: "./boringssl/crypto/x509/t_x509a.cc".}
434-
{.compile: "./boringssl/crypto/x509/v3_akey.cc".}
435-
{.compile: "./boringssl/crypto/x509/v3_akeya.cc".}
436-
{.compile: "./boringssl/crypto/x509/v3_alt.cc".}
437-
{.compile: "./boringssl/crypto/x509/v3_bcons.cc".}
438-
{.compile: "./boringssl/crypto/x509/v3_bitst.cc".}
439-
{.compile: "./boringssl/crypto/x509/v3_conf.cc".}
440-
{.compile: "./boringssl/crypto/x509/v3_cpols.cc".}
441-
{.compile: "./boringssl/crypto/x509/v3_crld.cc".}
442-
{.compile: "./boringssl/crypto/x509/v3_enum.cc".}
443-
{.compile: "./boringssl/crypto/x509/v3_extku.cc".}
444-
{.compile: "./boringssl/crypto/x509/v3_genn.cc".}
445-
{.compile: "./boringssl/crypto/x509/v3_ia5.cc".}
446-
{.compile: "./boringssl/crypto/x509/v3_info.cc".}
447-
{.compile: "./boringssl/crypto/x509/v3_int.cc".}
448-
{.compile: "./boringssl/crypto/x509/v3_lib.cc".}
449-
{.compile: "./boringssl/crypto/x509/v3_ncons.cc".}
450-
{.compile: "./boringssl/crypto/x509/v3_ocsp.cc".}
451-
{.compile: "./boringssl/crypto/x509/v3_pcons.cc".}
452-
{.compile: "./boringssl/crypto/x509/v3_pmaps.cc".}
453-
{.compile: "./boringssl/crypto/x509/v3_prn.cc".}
454-
{.compile: "./boringssl/crypto/x509/v3_purp.cc".}
455-
{.compile: "./boringssl/crypto/x509/v3_skey.cc".}
456-
{.compile: "./boringssl/crypto/x509/v3_utl.cc".}
457-
{.compile: "./boringssl/crypto/x509/x509.cc".}
458-
{.compile: "./boringssl/crypto/x509/x509_att.cc".}
459-
{.compile: "./boringssl/crypto/x509/x509_cmp.cc".}
460-
{.compile: "./boringssl/crypto/x509/x509_d2.cc".}
461-
{.compile: "./boringssl/crypto/x509/x509_def.cc".}
462-
{.compile: "./boringssl/crypto/x509/x509_ext.cc".}
463-
{.compile: "./boringssl/crypto/x509/x509_lu.cc".}
464-
{.compile: "./boringssl/crypto/x509/x509_obj.cc".}
465-
{.compile: "./boringssl/crypto/x509/x509_req.cc".}
466-
{.compile: "./boringssl/crypto/x509/x509_set.cc".}
467-
{.compile: "./boringssl/crypto/x509/x509_trs.cc".}
468-
{.compile: "./boringssl/crypto/x509/x509_txt.cc".}
469-
{.compile: "./boringssl/crypto/x509/x509_v3.cc".}
470-
{.compile: "./boringssl/crypto/x509/x509_vfy.cc".}
471-
{.compile: "./boringssl/crypto/x509/x509_vpm.cc".}
472-
{.compile: "./boringssl/crypto/x509/x509cset.cc".}
473-
{.compile: "./boringssl/crypto/x509/x509name.cc".}
474-
{.compile: "./boringssl/crypto/x509/x509rset.cc".}
475-
{.compile: "./boringssl/crypto/x509/x509spki.cc".}
476-
{.compile: "./boringssl/crypto/x509/x_algor.cc".}
477-
{.compile: "./boringssl/crypto/x509/x_all.cc".}
478-
{.compile: "./boringssl/crypto/x509/x_attrib.cc".}
479-
{.compile: "./boringssl/crypto/x509/x_crl.cc".}
480-
{.compile: "./boringssl/crypto/x509/x_exten.cc".}
481-
{.compile: "./boringssl/crypto/x509/x_name.cc".}
482-
{.compile: "./boringssl/crypto/x509/x_pubkey.cc".}
483-
{.compile: "./boringssl/crypto/x509/x_req.cc".}
484-
{.compile: "./boringssl/crypto/x509/x_sig.cc".}
485-
{.compile: "./boringssl/crypto/x509/x_spki.cc".}
486-
{.compile: "./boringssl/crypto/x509/x_x509.cc".}
487-
{.compile: "./boringssl/crypto/x509/x_x509a.cc".}
299+
{.compile: "./boringssl_units/crypto_x509_head.cc".}
300+
{.compile: "./boringssl_units/crypto_x509_v3.cc".}
301+
{.compile: "./boringssl_units/crypto_x509_mid.cc".}
302+
{.compile: "./boringssl_units/crypto_x509_x.cc".}
488303
{.compile: "./boringssl/crypto/xwing/xwing.cc".}
489304
{.compile: "./boringssl/gen/crypto//err_data.cc".}
490-
{.compile: "./boringssl/ssl/bio_ssl.cc".}
491-
{.compile: "./boringssl/ssl/d1_both.cc".}
492-
{.compile: "./boringssl/ssl/d1_lib.cc".}
493-
{.compile: "./boringssl/ssl/d1_pkt.cc".}
494-
{.compile: "./boringssl/ssl/d1_srtp.cc".}
495-
{.compile: "./boringssl/ssl/dtls_method.cc".}
496-
{.compile: "./boringssl/ssl/dtls_record.cc".}
497-
{.compile: "./boringssl/ssl/encrypted_client_hello.cc".}
498-
{.compile: "./boringssl/ssl/extensions.cc".}
499-
{.compile: "./boringssl/ssl/handoff.cc".}
305+
{.compile: "./boringssl_units/ssl_dtls.cc".}
306+
{.compile: "./boringssl_units/ssl_common.cc".}
500307
{.compile: "./boringssl/ssl/handshake.cc".}
501308
{.compile: "./boringssl/ssl/handshake_client.cc".}
502309
{.compile: "./boringssl/ssl/handshake_server.cc".}
503-
{.compile: "./boringssl/ssl/s3_both.cc".}
504-
{.compile: "./boringssl/ssl/s3_lib.cc".}
505-
{.compile: "./boringssl/ssl/s3_pkt.cc".}
506-
{.compile: "./boringssl/ssl/ssl_aead_ctx.cc".}
507-
{.compile: "./boringssl/ssl/ssl_asn1.cc".}
508-
{.compile: "./boringssl/ssl/ssl_buffer.cc".}
509-
{.compile: "./boringssl/ssl/ssl_cert.cc".}
510310
{.compile: "./boringssl/ssl/ssl_cipher.cc".}
511311
{.compile: "./boringssl/ssl/ssl_credential.cc".}
512-
{.compile: "./boringssl/ssl/ssl_file.cc".}
513-
{.compile: "./boringssl/ssl/ssl_key_share.cc".}
514-
{.compile: "./boringssl/ssl/ssl_lib.cc".}
515-
{.compile: "./boringssl/ssl/ssl_privkey.cc".}
516312
{.compile: "./boringssl/ssl/ssl_session.cc".}
517-
{.compile: "./boringssl/ssl/ssl_stat.cc".}
518-
{.compile: "./boringssl/ssl/ssl_transcript.cc".}
519-
{.compile: "./boringssl/ssl/ssl_versions.cc".}
520-
{.compile: "./boringssl/ssl/ssl_x509.cc".}
521-
{.compile: "./boringssl/ssl/t1_enc.cc".}
522-
{.compile: "./boringssl/ssl/tls13_both.cc".}
313+
{.compile: "./boringssl_units/ssl_tls13_misc.cc".}
523314
{.compile: "./boringssl/ssl/tls13_client.cc".}
524-
{.compile: "./boringssl/ssl/tls13_enc.cc".}
525315
{.compile: "./boringssl/ssl/tls13_server.cc".}
526-
{.compile: "./boringssl/ssl/tls_method.cc".}
527-
{.compile: "./boringssl/ssl/tls_record.cc".}
528316
{.compile: "./boringssl/decrepit/x509/x509_decrepit.cc".}
529317

530318
type ERR_LIB_BIO* = object

boringssl.nimble

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
packageName = "boringssl"
2-
version = "0.0.9"
2+
version = "0.0.10"
33
author = "Status Research & Development GmbH"
44
description = "Nim ffi bindings for boringssl"
55
license = "MIT"
6-
installDirs = @["boringssl"]
6+
installDirs = @["boringssl", "boringssl_units"]
77
installFiles = @["boringssl.nim", "boringssl_types.nim"]
88

99
requires "nim >= 2.0.0"

boringssl_units/crypto.cc

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
// SPDX-License-Identifier: Apache-2.0 OR MIT
2+
// Copyright (c) Status Research & Development GmbH
3+
4+
// Unity build chunk for BoringSSL sources. Keep in sync with prelude.nim.
5+
#include "../boringssl/crypto/cpu_aarch64_apple.cc"
6+
#include "../boringssl/crypto/cpu_aarch64_fuchsia.cc"
7+
#include "../boringssl/crypto/cpu_aarch64_linux.cc"
8+
#include "../boringssl/crypto/cpu_aarch64_openbsd.cc"
9+
#include "../boringssl/crypto/cpu_aarch64_sysreg.cc"
10+
#include "../boringssl/crypto/cpu_aarch64_win.cc"
11+
#include "../boringssl/crypto/cpu_arm_freebsd.cc"
12+
#include "../boringssl/crypto/cpu_arm_linux.cc"
13+
#include "../boringssl/crypto/cpu_intel.cc"
14+
#include "../boringssl/crypto/crypto.cc"
15+
#include "../boringssl/crypto/ex_data.cc"
16+
#include "../boringssl/crypto/fuzzer_mode.cc"
17+
#include "../boringssl/crypto/mem.cc"
18+
#include "../boringssl/crypto/refcount.cc"
19+
#include "../boringssl/crypto/thread.cc"
20+
#include "../boringssl/crypto/thread_none.cc"
21+
#include "../boringssl/crypto/thread_pthread.cc"
22+
#include "../boringssl/crypto/thread_win.cc"

boringssl_units/crypto_asn1.cc

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
// SPDX-License-Identifier: Apache-2.0 OR MIT
2+
// Copyright (c) Status Research & Development GmbH
3+
4+
// Unity build chunk for BoringSSL sources. Keep in sync with prelude.nim.
5+
#include "../boringssl/crypto/asn1/a_bitstr.cc"
6+
#include "../boringssl/crypto/asn1/a_bool.cc"
7+
#include "../boringssl/crypto/asn1/a_d2i_fp.cc"
8+
#include "../boringssl/crypto/asn1/a_dup.cc"
9+
#include "../boringssl/crypto/asn1/a_gentm.cc"
10+
#include "../boringssl/crypto/asn1/a_i2d_fp.cc"
11+
#include "../boringssl/crypto/asn1/a_int.cc"
12+
#include "../boringssl/crypto/asn1/a_mbstr.cc"
13+
#include "../boringssl/crypto/asn1/a_object.cc"
14+
#include "../boringssl/crypto/asn1/a_octet.cc"
15+
#include "../boringssl/crypto/asn1/a_strex.cc"
16+
#include "../boringssl/crypto/asn1/a_strnid.cc"
17+
#include "../boringssl/crypto/asn1/a_time.cc"
18+
#include "../boringssl/crypto/asn1/a_type.cc"
19+
#include "../boringssl/crypto/asn1/a_utctm.cc"
20+
#include "../boringssl/crypto/asn1/asn1_lib.cc"
21+
#include "../boringssl/crypto/asn1/asn1_par.cc"
22+
#include "../boringssl/crypto/asn1/asn_pack.cc"
23+
#include "../boringssl/crypto/asn1/f_int.cc"
24+
#include "../boringssl/crypto/asn1/f_string.cc"
25+
#include "../boringssl/crypto/asn1/posix_time.cc"
26+
#include "../boringssl/crypto/asn1/tasn_dec.cc"
27+
#include "../boringssl/crypto/asn1/tasn_enc.cc"
28+
#include "../boringssl/crypto/asn1/tasn_fre.cc"
29+
#include "../boringssl/crypto/asn1/tasn_new.cc"
30+
#include "../boringssl/crypto/asn1/tasn_typ.cc"
31+
#include "../boringssl/crypto/asn1/tasn_utl.cc"

0 commit comments

Comments
 (0)