Compare commits
4 Commits
02abfefee4
...
7f95731326
Author | SHA1 | Date | |
---|---|---|---|
7f95731326 | |||
c16205d9a7 | |||
9530f3d561 | |||
d9d586555e |
4
.github/workflows/ci.yaml
vendored
4
.github/workflows/ci.yaml
vendored
@ -2,8 +2,6 @@ name: CI
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
@ -35,7 +33,7 @@ jobs:
|
|||||||
|
|
||||||
- if: ${{ matrix.check-format }}
|
- if: ${{ matrix.check-format }}
|
||||||
name: Check Formatting
|
name: Check Formatting
|
||||||
run: zig fmt --ast-check --check .
|
run: zig fmt --check .
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: zig build ${{ matrix.build-options }} --summary all
|
run: zig build ${{ matrix.build-options }} --summary all
|
||||||
|
151
build.zig
151
build.zig
@ -245,7 +245,6 @@ pub fn build(b: *std.Build) !void {
|
|||||||
libressl_common.defineCMacro("HAVE_STRNDUP", null);
|
libressl_common.defineCMacro("HAVE_STRNDUP", null);
|
||||||
libressl_common.defineCMacro("HAVE_STRNLEN", null);
|
libressl_common.defineCMacro("HAVE_STRNLEN", null);
|
||||||
libressl_common.defineCMacro("HAVE_STRSEP", null);
|
libressl_common.defineCMacro("HAVE_STRSEP", null);
|
||||||
libressl_common.defineCMacro("HAVE_TIMEGM", null);
|
|
||||||
|
|
||||||
libressl_common.defineCMacro("HAVE_EXPLICIT_BZERO", null);
|
libressl_common.defineCMacro("HAVE_EXPLICIT_BZERO", null);
|
||||||
libressl_common.defineCMacro("HAVE_GETAUXVAL", null);
|
libressl_common.defineCMacro("HAVE_GETAUXVAL", null);
|
||||||
@ -364,7 +363,6 @@ pub fn build(b: *std.Build) !void {
|
|||||||
libressl_common.defineCMacro("HAVE_STRNLEN", null);
|
libressl_common.defineCMacro("HAVE_STRNLEN", null);
|
||||||
libressl_common.defineCMacro("HAVE_STRSEP", null);
|
libressl_common.defineCMacro("HAVE_STRSEP", null);
|
||||||
libressl_common.defineCMacro("HAVE_STRTONUM", null);
|
libressl_common.defineCMacro("HAVE_STRTONUM", null);
|
||||||
libressl_common.defineCMacro("HAVE_TIMEGM", null);
|
|
||||||
libressl_common.defineCMacro("HAVE_ARC4RANDOM_BUF", null);
|
libressl_common.defineCMacro("HAVE_ARC4RANDOM_BUF", null);
|
||||||
libressl_common.defineCMacro("HAVE_ARC4RANDOM_UNIFORM", null);
|
libressl_common.defineCMacro("HAVE_ARC4RANDOM_UNIFORM", null);
|
||||||
libressl_common.defineCMacro("HAVE_GETENTROPY", null);
|
libressl_common.defineCMacro("HAVE_GETENTROPY", null);
|
||||||
@ -429,18 +427,50 @@ pub fn build(b: *std.Build) !void {
|
|||||||
switch (tinfo.cpu.arch) {
|
switch (tinfo.cpu.arch) {
|
||||||
.aarch64,
|
.aarch64,
|
||||||
.aarch64_be,
|
.aarch64_be,
|
||||||
=> libressl_common.libcrypto.addIncludePath(
|
=> {
|
||||||
upstream.path(libcrypto_src_prefix ++ "bn/arch/aarch64"),
|
libressl_common.libcrypto.addIncludePath(
|
||||||
),
|
upstream.path(libcrypto_src_prefix ++ "bn/arch/aarch64"),
|
||||||
.x86 => libressl_common.libcrypto.addIncludePath(
|
);
|
||||||
upstream.path(libcrypto_src_prefix ++ "bn/arch/i386"),
|
libressl_common.libcrypto.addIncludePath(
|
||||||
),
|
upstream.path(libcrypto_src_prefix ++ "arch/aarch64"),
|
||||||
.riscv64 => libressl_common.libcrypto.addIncludePath(
|
);
|
||||||
upstream.path(libcrypto_src_prefix ++ "bn/arch/riscv64"),
|
libressl_common.libssl.addIncludePath(
|
||||||
),
|
upstream.path(libcrypto_src_prefix ++ "arch/aarch64"),
|
||||||
.x86_64 => libressl_common.libcrypto.addIncludePath(
|
);
|
||||||
upstream.path(libcrypto_src_prefix ++ "bn/arch/amd64"),
|
},
|
||||||
),
|
.x86 => {
|
||||||
|
libressl_common.libcrypto.addIncludePath(
|
||||||
|
upstream.path(libcrypto_src_prefix ++ "bn/arch/i386"),
|
||||||
|
);
|
||||||
|
libressl_common.libcrypto.addIncludePath(
|
||||||
|
upstream.path(libcrypto_src_prefix ++ "arch/i386"),
|
||||||
|
);
|
||||||
|
libressl_common.libssl.addIncludePath(
|
||||||
|
upstream.path(libcrypto_src_prefix ++ "arch/i386"),
|
||||||
|
);
|
||||||
|
},
|
||||||
|
.riscv64 => {
|
||||||
|
libressl_common.libcrypto.addIncludePath(
|
||||||
|
upstream.path(libcrypto_src_prefix ++ "bn/arch/riscv64"),
|
||||||
|
);
|
||||||
|
libressl_common.libcrypto.addIncludePath(
|
||||||
|
upstream.path(libcrypto_src_prefix ++ "arch/riscv64"),
|
||||||
|
);
|
||||||
|
libressl_common.libssl.addIncludePath(
|
||||||
|
upstream.path(libcrypto_src_prefix ++ "arch/riscv64"),
|
||||||
|
);
|
||||||
|
},
|
||||||
|
.x86_64 => {
|
||||||
|
libressl_common.libcrypto.addIncludePath(
|
||||||
|
upstream.path(libcrypto_src_prefix ++ "bn/arch/amd64"),
|
||||||
|
);
|
||||||
|
libressl_common.libcrypto.addIncludePath(
|
||||||
|
upstream.path(libcrypto_src_prefix ++ "arch/amd64"),
|
||||||
|
);
|
||||||
|
libressl_common.libssl.addIncludePath(
|
||||||
|
upstream.path(libcrypto_src_prefix ++ "arch/amd64"),
|
||||||
|
);
|
||||||
|
},
|
||||||
|
|
||||||
else => @panic("unsupported target CPU architecture"),
|
else => @panic("unsupported target CPU architecture"),
|
||||||
}
|
}
|
||||||
@ -584,12 +614,14 @@ const libcrypto_include_paths: []const []const u8 = &.{
|
|||||||
libcrypto_src_prefix ++ "bio",
|
libcrypto_src_prefix ++ "bio",
|
||||||
libcrypto_src_prefix ++ "bn",
|
libcrypto_src_prefix ++ "bn",
|
||||||
libcrypto_src_prefix ++ "bytestring",
|
libcrypto_src_prefix ++ "bytestring",
|
||||||
|
libcrypto_src_prefix ++ "conf",
|
||||||
libcrypto_src_prefix ++ "dh",
|
libcrypto_src_prefix ++ "dh",
|
||||||
libcrypto_src_prefix ++ "dsa",
|
libcrypto_src_prefix ++ "dsa",
|
||||||
libcrypto_src_prefix ++ "curve25519",
|
libcrypto_src_prefix ++ "curve25519",
|
||||||
libcrypto_src_prefix ++ "ec",
|
libcrypto_src_prefix ++ "ec",
|
||||||
libcrypto_src_prefix ++ "ecdh",
|
libcrypto_src_prefix ++ "ecdh",
|
||||||
libcrypto_src_prefix ++ "ecdsa",
|
libcrypto_src_prefix ++ "ecdsa",
|
||||||
|
libcrypto_src_prefix ++ "err",
|
||||||
libcrypto_src_prefix ++ "evp",
|
libcrypto_src_prefix ++ "evp",
|
||||||
libcrypto_src_prefix ++ "hidden",
|
libcrypto_src_prefix ++ "hidden",
|
||||||
libcrypto_src_prefix ++ "hmac",
|
libcrypto_src_prefix ++ "hmac",
|
||||||
@ -640,19 +672,15 @@ const libcrypto_elf_x86_64_asm: []const []const u8 = &[_][]const u8{
|
|||||||
"aes/bsaes-elf-x86_64.S",
|
"aes/bsaes-elf-x86_64.S",
|
||||||
"aes/vpaes-elf-x86_64.S",
|
"aes/vpaes-elf-x86_64.S",
|
||||||
"aes/aesni-elf-x86_64.S",
|
"aes/aesni-elf-x86_64.S",
|
||||||
"aes/aesni-sha1-elf-x86_64.S",
|
|
||||||
"bn/modexp512-elf-x86_64.S",
|
"bn/modexp512-elf-x86_64.S",
|
||||||
"bn/mont-elf-x86_64.S",
|
"bn/mont-elf-x86_64.S",
|
||||||
"bn/mont5-elf-x86_64.S",
|
"bn/mont5-elf-x86_64.S",
|
||||||
"camellia/cmll-elf-x86_64.S",
|
|
||||||
"md5/md5-elf-x86_64.S",
|
"md5/md5-elf-x86_64.S",
|
||||||
"modes/ghash-elf-x86_64.S",
|
"modes/ghash-elf-x86_64.S",
|
||||||
"rc4/rc4-elf-x86_64.S",
|
"rc4/rc4-elf-x86_64.S",
|
||||||
"rc4/rc4-md5-elf-x86_64.S",
|
|
||||||
"sha/sha1-elf-x86_64.S",
|
"sha/sha1-elf-x86_64.S",
|
||||||
"sha/sha256-elf-x86_64.S",
|
"sha/sha256-elf-x86_64.S",
|
||||||
"sha/sha512-elf-x86_64.S",
|
"sha/sha512-elf-x86_64.S",
|
||||||
"whrlpool/wp-elf-x86_64.S",
|
|
||||||
"cpuid-elf-x86_64.S",
|
"cpuid-elf-x86_64.S",
|
||||||
} ++ libcrypto_common_x86_64_asm;
|
} ++ libcrypto_common_x86_64_asm;
|
||||||
|
|
||||||
@ -661,19 +689,15 @@ const libcrypto_macos_x86_64_asm: []const []const u8 = &[_][]const u8{
|
|||||||
"aes/bsaes-macosx-x86_64.S",
|
"aes/bsaes-macosx-x86_64.S",
|
||||||
"aes/vpaes-macosx-x86_64.S",
|
"aes/vpaes-macosx-x86_64.S",
|
||||||
"aes/aesni-macosx-x86_64.S",
|
"aes/aesni-macosx-x86_64.S",
|
||||||
"aes/aesni-sha1-macosx-x86_64.S",
|
|
||||||
"bn/modexp512-macosx-x86_64.S",
|
"bn/modexp512-macosx-x86_64.S",
|
||||||
"bn/mont-macosx-x86_64.S",
|
"bn/mont-macosx-x86_64.S",
|
||||||
"bn/mont5-macosx-x86_64.S",
|
"bn/mont5-macosx-x86_64.S",
|
||||||
"camellia/cmll-macosx-x86_64.S",
|
|
||||||
"md5/md5-macosx-x86_64.S",
|
"md5/md5-macosx-x86_64.S",
|
||||||
"modes/ghash-macosx-x86_64.S",
|
"modes/ghash-macosx-x86_64.S",
|
||||||
"rc4/rc4-macosx-x86_64.S",
|
"rc4/rc4-macosx-x86_64.S",
|
||||||
"rc4/rc4-md5-macosx-x86_64.S",
|
|
||||||
"sha/sha1-macosx-x86_64.S",
|
"sha/sha1-macosx-x86_64.S",
|
||||||
"sha/sha256-macosx-x86_64.S",
|
"sha/sha256-macosx-x86_64.S",
|
||||||
"sha/sha512-macosx-x86_64.S",
|
"sha/sha512-macosx-x86_64.S",
|
||||||
"whrlpool/wp-macosx-x86_64.S",
|
|
||||||
"cpuid-macosx-x86_64.S",
|
"cpuid-macosx-x86_64.S",
|
||||||
} ++ libcrypto_common_x86_64_asm;
|
} ++ libcrypto_common_x86_64_asm;
|
||||||
|
|
||||||
@ -682,31 +706,17 @@ const libcrypto_mingw64_x86_64_asm: []const []const u8 = &.{
|
|||||||
"aes/bsaes-mingw64-x86_64.S",
|
"aes/bsaes-mingw64-x86_64.S",
|
||||||
"aes/vpaes-mingw64-x86_64.S",
|
"aes/vpaes-mingw64-x86_64.S",
|
||||||
"aes/aesni-mingw64-x86_64.S",
|
"aes/aesni-mingw64-x86_64.S",
|
||||||
"aes/aesni-sha1-mingw64-x86_64.S",
|
|
||||||
// "bn/modexp512-mingw64-x86_64.S",
|
|
||||||
// "bn/mont-mingw64-x86_64.S",
|
|
||||||
// "bn/mont5-mingw64-x86_64.S",
|
|
||||||
"camellia/cmll-mingw64-x86_64.S",
|
|
||||||
"md5/md5-mingw64-x86_64.S",
|
"md5/md5-mingw64-x86_64.S",
|
||||||
"modes/ghash-mingw64-x86_64.S",
|
"modes/ghash-mingw64-x86_64.S",
|
||||||
"rc4/rc4-mingw64-x86_64.S",
|
"rc4/rc4-mingw64-x86_64.S",
|
||||||
"rc4/rc4-md5-mingw64-x86_64.S",
|
|
||||||
"sha/sha1-mingw64-x86_64.S",
|
"sha/sha1-mingw64-x86_64.S",
|
||||||
"sha/sha256-mingw64-x86_64.S",
|
"sha/sha256-mingw64-x86_64.S",
|
||||||
"sha/sha512-mingw64-x86_64.S",
|
"sha/sha512-mingw64-x86_64.S",
|
||||||
"whrlpool/wp-mingw64-x86_64.S",
|
|
||||||
"cpuid-mingw64-x86_64.S",
|
"cpuid-mingw64-x86_64.S",
|
||||||
};
|
};
|
||||||
|
|
||||||
// these are used on armv4 with asm, or a nonasm build
|
// these are used on armv4 with asm, or a nonasm build
|
||||||
const libcrypto_nonasm_or_armv4: []const []const u8 = &.{
|
const libcrypto_nonasm_or_armv4: []const []const u8 = &.{};
|
||||||
"aes/aes_cbc.c",
|
|
||||||
"camellia/camellia.c",
|
|
||||||
"camellia/cmll_cbc.c",
|
|
||||||
"rc4/rc4_enc.c",
|
|
||||||
"rc4/rc4_skey.c",
|
|
||||||
"whrlpool/wp_block.c",
|
|
||||||
};
|
|
||||||
|
|
||||||
const libcrypto_unix_sources: []const []const u8 = &.{
|
const libcrypto_unix_sources: []const []const u8 = &.{
|
||||||
"crypto_lock.c",
|
"crypto_lock.c",
|
||||||
@ -777,7 +787,6 @@ const libcrypto_windows_compat: []const []const u8 = &.{
|
|||||||
"compat/strtonum.c",
|
"compat/strtonum.c",
|
||||||
|
|
||||||
"compat/syslog_r.c",
|
"compat/syslog_r.c",
|
||||||
"compat/timegm.c",
|
|
||||||
|
|
||||||
"compat/explicit_bzero_win.c",
|
"compat/explicit_bzero_win.c",
|
||||||
"compat/getentropy_win.c",
|
"compat/getentropy_win.c",
|
||||||
@ -792,21 +801,15 @@ const libcrypto_windows_compat: []const []const u8 = &.{
|
|||||||
const libcrypto_sources: []const []const u8 = &.{
|
const libcrypto_sources: []const []const u8 = &.{
|
||||||
"cpt_err.c",
|
"cpt_err.c",
|
||||||
"cryptlib.c",
|
"cryptlib.c",
|
||||||
|
"crypto_ex_data.c",
|
||||||
"crypto_init.c",
|
"crypto_init.c",
|
||||||
"cversion.c",
|
"cversion.c",
|
||||||
"ex_data.c",
|
|
||||||
"malloc-wrapper.c",
|
"malloc-wrapper.c",
|
||||||
"mem_clr.c",
|
"mem_clr.c",
|
||||||
"mem_dbg.c",
|
"mem_dbg.c",
|
||||||
"o_fips.c",
|
"o_fips.c",
|
||||||
"o_init.c",
|
"aes/aes.c",
|
||||||
"o_str.c",
|
|
||||||
"aes/aes_cfb.c",
|
|
||||||
"aes/aes_ctr.c",
|
|
||||||
"aes/aes_ecb.c",
|
|
||||||
"aes/aes_ige.c",
|
"aes/aes_ige.c",
|
||||||
"aes/aes_ofb.c",
|
|
||||||
"aes/aes_wrap.c",
|
|
||||||
"asn1/a_bitstr.c",
|
"asn1/a_bitstr.c",
|
||||||
"asn1/a_enum.c",
|
"asn1/a_enum.c",
|
||||||
"asn1/a_int.c",
|
"asn1/a_int.c",
|
||||||
@ -867,11 +870,7 @@ const libcrypto_sources: []const []const u8 = &.{
|
|||||||
"asn1/x_val.c",
|
"asn1/x_val.c",
|
||||||
"asn1/x_x509.c",
|
"asn1/x_x509.c",
|
||||||
"asn1/x_x509a.c",
|
"asn1/x_x509a.c",
|
||||||
"bf/bf_cfb64.c",
|
"bf/blowfish.c",
|
||||||
"bf/bf_ecb.c",
|
|
||||||
"bf/bf_enc.c",
|
|
||||||
"bf/bf_ofb64.c",
|
|
||||||
"bf/bf_skey.c",
|
|
||||||
"bio/b_dump.c",
|
"bio/b_dump.c",
|
||||||
"bio/b_print.c",
|
"bio/b_print.c",
|
||||||
"bio/b_sock.c",
|
"bio/b_sock.c",
|
||||||
@ -921,16 +920,8 @@ const libcrypto_sources: []const []const u8 = &.{
|
|||||||
"bytestring/bs_ber.c",
|
"bytestring/bs_ber.c",
|
||||||
"bytestring/bs_cbb.c",
|
"bytestring/bs_cbb.c",
|
||||||
"bytestring/bs_cbs.c",
|
"bytestring/bs_cbs.c",
|
||||||
"camellia/cmll_cfb.c",
|
"camellia/camellia.c",
|
||||||
"camellia/cmll_ctr.c",
|
"cast/cast.c",
|
||||||
"camellia/cmll_ecb.c",
|
|
||||||
"camellia/cmll_misc.c",
|
|
||||||
"camellia/cmll_ofb.c",
|
|
||||||
"cast/c_cfb64.c",
|
|
||||||
"cast/c_ecb.c",
|
|
||||||
"cast/c_enc.c",
|
|
||||||
"cast/c_ofb64.c",
|
|
||||||
"cast/c_skey.c",
|
|
||||||
"chacha/chacha.c",
|
"chacha/chacha.c",
|
||||||
"cmac/cm_ameth.c",
|
"cmac/cm_ameth.c",
|
||||||
"cmac/cm_pmeth.c",
|
"cmac/cm_pmeth.c",
|
||||||
@ -967,27 +958,11 @@ const libcrypto_sources: []const []const u8 = &.{
|
|||||||
"ct/ct_x509v3.c",
|
"ct/ct_x509v3.c",
|
||||||
"curve25519/curve25519-generic.c",
|
"curve25519/curve25519-generic.c",
|
||||||
"curve25519/curve25519.c",
|
"curve25519/curve25519.c",
|
||||||
"des/cbc_cksm.c",
|
"des/des.c",
|
||||||
"des/cbc_enc.c",
|
"des/des_cksum.c",
|
||||||
"des/cfb64ede.c",
|
|
||||||
"des/cfb64enc.c",
|
|
||||||
"des/cfb_enc.c",
|
|
||||||
"des/des_enc.c",
|
"des/des_enc.c",
|
||||||
"des/ecb3_enc.c",
|
"des/des_fcrypt.c",
|
||||||
"des/ecb_enc.c",
|
"des/des_key.c",
|
||||||
"des/ede_cbcm_enc.c",
|
|
||||||
"des/enc_read.c",
|
|
||||||
"des/enc_writ.c",
|
|
||||||
"des/fcrypt.c",
|
|
||||||
"des/fcrypt_b.c",
|
|
||||||
"des/ofb64ede.c",
|
|
||||||
"des/ofb64enc.c",
|
|
||||||
"des/ofb_enc.c",
|
|
||||||
"des/pcbc_enc.c",
|
|
||||||
"des/qud_cksm.c",
|
|
||||||
"des/set_key.c",
|
|
||||||
"des/str2key.c",
|
|
||||||
"des/xcbc_enc.c",
|
|
||||||
"dh/dh_ameth.c",
|
"dh/dh_ameth.c",
|
||||||
"dh/dh_asn1.c",
|
"dh/dh_asn1.c",
|
||||||
"dh/dh_check.c",
|
"dh/dh_check.c",
|
||||||
@ -1065,7 +1040,6 @@ const libcrypto_sources: []const []const u8 = &.{
|
|||||||
"evp/m_sha3.c",
|
"evp/m_sha3.c",
|
||||||
"evp/m_sigver.c",
|
"evp/m_sigver.c",
|
||||||
"evp/m_sm3.c",
|
"evp/m_sm3.c",
|
||||||
"evp/m_wp.c",
|
|
||||||
"evp/p_legacy.c",
|
"evp/p_legacy.c",
|
||||||
"evp/p_lib.c",
|
"evp/p_lib.c",
|
||||||
"evp/p_sign.c",
|
"evp/p_sign.c",
|
||||||
@ -1077,13 +1051,10 @@ const libcrypto_sources: []const []const u8 = &.{
|
|||||||
"hmac/hm_ameth.c",
|
"hmac/hm_ameth.c",
|
||||||
"hmac/hm_pmeth.c",
|
"hmac/hm_pmeth.c",
|
||||||
"hmac/hmac.c",
|
"hmac/hmac.c",
|
||||||
"idea/i_cbc.c",
|
"idea/idea.c",
|
||||||
"idea/i_cfb64.c",
|
|
||||||
"idea/i_ecb.c",
|
|
||||||
"idea/i_ofb64.c",
|
|
||||||
"idea/i_skey.c",
|
|
||||||
"kdf/hkdf_evp.c",
|
"kdf/hkdf_evp.c",
|
||||||
"kdf/kdf_err.c",
|
"kdf/kdf_err.c",
|
||||||
|
"kdf/tls1_prf.c",
|
||||||
"lhash/lhash.c",
|
"lhash/lhash.c",
|
||||||
"md4/md4.c",
|
"md4/md4.c",
|
||||||
"md5/md5.c",
|
"md5/md5.c",
|
||||||
@ -1149,6 +1120,7 @@ const libcrypto_sources: []const []const u8 = &.{
|
|||||||
"rc2/rc2_skey.c",
|
"rc2/rc2_skey.c",
|
||||||
"rc2/rc2cfb64.c",
|
"rc2/rc2cfb64.c",
|
||||||
"rc2/rc2ofb64.c",
|
"rc2/rc2ofb64.c",
|
||||||
|
"rc4/rc4.c",
|
||||||
"ripemd/ripemd.c",
|
"ripemd/ripemd.c",
|
||||||
"rsa/rsa_ameth.c",
|
"rsa/rsa_ameth.c",
|
||||||
"rsa/rsa_asn1.c",
|
"rsa/rsa_asn1.c",
|
||||||
@ -1190,8 +1162,6 @@ const libcrypto_sources: []const []const u8 = &.{
|
|||||||
"ui/ui_err.c",
|
"ui/ui_err.c",
|
||||||
"ui/ui_lib.c",
|
"ui/ui_lib.c",
|
||||||
"ui/ui_null.c",
|
"ui/ui_null.c",
|
||||||
"ui/ui_util.c",
|
|
||||||
"whrlpool/wp_dgst.c",
|
|
||||||
"x509/by_dir.c",
|
"x509/by_dir.c",
|
||||||
"x509/by_file.c",
|
"x509/by_file.c",
|
||||||
"x509/by_mem.c",
|
"x509/by_mem.c",
|
||||||
@ -1232,6 +1202,7 @@ const libcrypto_sources: []const []const u8 = &.{
|
|||||||
"x509/x509_r2x.c",
|
"x509/x509_r2x.c",
|
||||||
"x509/x509_req.c",
|
"x509/x509_req.c",
|
||||||
"x509/x509_set.c",
|
"x509/x509_set.c",
|
||||||
|
"x509/x509_siginfo.c",
|
||||||
"x509/x509_skey.c",
|
"x509/x509_skey.c",
|
||||||
"x509/x509_trs.c",
|
"x509/x509_trs.c",
|
||||||
"x509/x509_txt.c",
|
"x509/x509_txt.c",
|
||||||
@ -1252,6 +1223,7 @@ const libssl_include_paths: []const []const u8 = &.{
|
|||||||
libssl_src_prefix,
|
libssl_src_prefix,
|
||||||
libssl_src_prefix ++ "hidden",
|
libssl_src_prefix ++ "hidden",
|
||||||
|
|
||||||
|
libcrypto_src_prefix[0 .. libcrypto_src_prefix.len - 1],
|
||||||
libcrypto_src_prefix ++ "bio",
|
libcrypto_src_prefix ++ "bio",
|
||||||
|
|
||||||
// these are order-dependent and they have to go after the "hidden" directory
|
// these are order-dependent and they have to go after the "hidden" directory
|
||||||
@ -1410,7 +1382,6 @@ const openssl_app_sources: []const []const u8 = &.{
|
|||||||
"sess_id.c",
|
"sess_id.c",
|
||||||
"smime.c",
|
"smime.c",
|
||||||
"speed.c",
|
"speed.c",
|
||||||
"spkac.c",
|
|
||||||
"ts.c",
|
"ts.c",
|
||||||
"verify.c",
|
"verify.c",
|
||||||
"version.c",
|
"version.c",
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
.{
|
.{
|
||||||
.name = "libressl",
|
.name = "libressl",
|
||||||
.version = "3.9.2+1",
|
.version = "4.0.0",
|
||||||
.minimum_zig_version = "0.12.0",
|
.minimum_zig_version = "0.12.0",
|
||||||
.dependencies = .{
|
.dependencies = .{
|
||||||
.libressl = .{
|
.libressl = .{
|
||||||
.url = "https://github.com/libressl/portable/releases/download/v3.9.2/libressl-3.9.2.tar.gz",
|
.url = "https://github.com/libressl/portable/releases/download/v4.0.0/libressl-4.0.0.tar.gz",
|
||||||
.hash = "1220713b293eab87698edf5d6b9bbacf6c17684e65c42da2ad00da6e7e9cf1df5517",
|
.hash = "1220c6577f1aa9137d3c200b804838fd71315388eec5d4c9313550143d02fe69308b",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
.paths = .{
|
.paths = .{
|
||||||
|
@ -10,7 +10,7 @@ This project currently builds the three main LibreSSL libraries as static librar
|
|||||||
- `libssl`: OpenSSL 1.1 compatibility layer
|
- `libssl`: OpenSSL 1.1 compatibility layer
|
||||||
- `libtls`: LibreSSL's new cryptography API
|
- `libtls`: LibreSSL's new cryptography API
|
||||||
|
|
||||||
Operating systems and hardware architectures are supported on a best-effort basis. Building for Linux, macOS, and Windows (mingw64) is directly tested by CI.
|
Operating systems and hardware architectures are supported on a best-effort basis, and patches to add additional OS/arch support are welcome. Building for Linux (`x86_64`), macOS (`aarch64`), and Windows (`x86_64` via `mingw64`) is directly tested by CI.
|
||||||
|
|
||||||
The command-line programs `nc`, `ocspcheck`, and `openssl` are not built by default, and building them when targeting Windows is not supported. Building the command-line programs may be enabled by specifing the `-Dbuild-apps` option to `zig build`
|
The command-line programs `nc`, `ocspcheck`, and `openssl` are not built by default, and building them when targeting Windows is not supported. Building the command-line programs may be enabled by specifing the `-Dbuild-apps` option to `zig build`
|
||||||
|
|
||||||
@ -21,7 +21,7 @@ First, update your `build.zig.zon`:
|
|||||||
```sh
|
```sh
|
||||||
# Initialize a `zig build` project if you haven't already
|
# Initialize a `zig build` project if you haven't already
|
||||||
zig init
|
zig init
|
||||||
# replace <refname> with the version you want to use, e.g. 3.9.2+1
|
# replace <refname> with the version you want to use, e.g. 4.0.0
|
||||||
zig fetch --save git+https://github.com/allyourcodebase/libressl#<refname>
|
zig fetch --save git+https://github.com/allyourcodebase/libressl#<refname>
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -36,8 +36,9 @@ const libressl_dependency = b.dependency("libressl", .{
|
|||||||
your_exe.linkLibrary(libressl_dependency.artifact("tls")); // or "ssl", or "crypto"
|
your_exe.linkLibrary(libressl_dependency.artifact("tls")); // or "ssl", or "crypto"
|
||||||
```
|
```
|
||||||
|
|
||||||
## Version Support Matrix
|
## Zig Version Support Matrix
|
||||||
|
|
||||||
| Refname | LibreSSL Version | Zig `0.12.x` | Zig `0.13.x` | Zig `0.14.0-dev` |
|
| Refname | LibreSSL Version | Zig `0.12.x` | Zig `0.13.x` | Zig `0.14.0-dev` |
|
||||||
|----------|------------------|--------------|--------------|------------------|
|
|----------|------------------|--------------|--------------|------------------|
|
||||||
| `3.9.2+1`| `3.9.2+1` | ✅ | ✅ | ✅ |
|
| `3.9.2+1`| `3.9.2+1` | ✅ | ✅ | ✅ |
|
||||||
|
| `4.0.0` | `4.0.0` | ✅ | ✅ | ✅ |
|
||||||
|
Loading…
x
Reference in New Issue
Block a user