157 Commits

Author SHA1 Message Date
Brent Cook
98a5122bc6 portable asm generator patches for portable
This reverses changes from the 3.8.x upstream that are causing issues on
a few different platforms, including macOS x64, Windows, and older
Linux/FreeBSD.
2023-10-30 22:55:29 -05:00
Pierre Wendling
c4bb6b79ea MSVC: Enable building ocspcheck.
- Add `STDIN_FILENO` to compat unistd header.
- Use quotes to include compat getopt header in the compat unistd.
- Export additional symbols needed by ocspcheck (optarg, optind,
  ftruncate)
2023-10-29 12:28:44 -05:00
Pierre Wendling
86a6826fef
Move LibreSSL/ to LIBRESSL_INSTALL_CMAKEDIR.
This allows users to install the CMake configs without forcing a
`LibreSSL` directory after `LIBRESSL_INSTALL_CMAKEDIR`.
2023-08-19 12:16:16 -04:00
Pierre Wendling
a89cd65980
CMake: Export and install library targets.
The configs can be consumed by setting LibreSSL_DIR to the build
directory, or after installation using CMAKE_PREFIX_PATH/LibreSSL_DIR.

For compatibility, the EXPORT_NAME of targets and the LIBRESSL_*
variables are set to match the names used in FindLibreSSL.
2023-08-19 12:16:15 -04:00
Viktor Szakats
e0fd031f30
cmake: fix to not force-disable ASM for MinGW builds 2023-08-10 23:01:37 +00:00
Theo Buehler
61025c5a5e Remove bn_blind.c, rsa_crpt.c; add rsa_blinding.c 2023-08-09 05:45:10 -06:00
Theo Buehler
85a0a1ae3f Adjust for file removal and renaming 2023-07-28 06:06:26 -06:00
Theo Buehler
3afb61ff80 Link engine_stubs.c to build 2023-07-21 03:41:12 -06:00
Brent Cook
081cee6207 fixes #681, allow override of library POSTFIX for nested builds 2023-07-07 15:02:16 +03:00
Brent Cook
7463f87cf1 add compat getopt implementation, remove patches
This adds a getopt implementation for compatibility where it is not
available, removing a couple of regress patches.

Note, this is a slightly modified copy from OpenBSD libc that doesn't
expose getopt_long, which has dependency conflicts with Windows system
headers and isn't needed anyway.
2023-07-07 12:11:20 +03:00
Theo Buehler
e06ce19f95 hook bn_print to build 2023-07-07 02:37:45 -06:00
Theo Buehler
186134f7c5 Some ECDH and ECDSA files were (re)moved 2023-07-05 07:08:24 -06:00
Brent Cook
71ce0b8c3e generate opensslconf.h in build dir for cmake 2023-07-04 10:37:24 +03:00
Brent Cook
b328be457a third try's a charm 2023-07-03 18:40:00 +03:00
Brent Cook
cdb7ad4753 define endbr64 as nop 2023-07-03 16:50:10 +03:00
Brent Cook
11dfc90f83 move endbr64 removal to preprocessor 2023-07-03 16:34:38 +03:00
Theo Buehler
ee0a1048b8 Link bn_primitives.c to the build 2023-06-21 02:31:32 -06:00
Theo Buehler
afeeb17fb9 Remove cms_cd.c 2023-06-11 00:09:55 -06:00
Theo Buehler
686f7ff31e Add back rsa_x931.c for salt 2023-05-05 09:20:16 -06:00
Theo Buehler
f08bf79969 Unhook policy code 2023-04-28 11:03:01 -06:00
Theo Buehler
4c2ab9981e Link x509_policy.c to the build 2023-04-26 13:18:17 -06:00
Theo Buehler
b3ab35886f bio_pk7.c was removed 2023-04-26 08:29:58 -06:00
Theo Buehler
6007185dc0 e_old.c went away again 2023-04-26 02:42:48 -06:00
Theo Buehler
3f4235529b add back e_old.c 2023-04-25 17:51:46 -06:00
Theo Buehler
b3c1375588 A handful of files were removed 2023-04-25 16:50:18 -06:00
Theo Buehler
61daaabc61 x509_enum.c is gone 2023-04-21 00:16:20 -06:00
Theo Buehler
e45df9efa6 bn_mpi.c is no more 2023-04-17 08:50:16 -06:00
Theo Buehler
a71c37909f Link sha3 to build. 2023-04-17 01:07:45 -06:00
Theo Buehler
4b388c7a45 Drop dh_prn.c 2023-04-17 00:04:00 -06:00
Theo Buehler
a42f70f8d1 sha_internal.h is in crypto/sha 2023-04-16 13:59:37 -06:00
Theo Buehler
1a6640329d Drop GF2m assembly 2023-04-15 13:38:01 -06:00
Theo Buehler
f5bd09f83c Update file lists 2023-04-14 07:42:59 -06:00
Theo Buehler
4c75669d35 Remove no longer existing *_depr.c and ecs_*.c 2023-04-13 09:31:52 -06:00
Theo Buehler
418d7adf8a Update for mod_sqrt and sha1 changes 2023-04-11 06:11:08 -06:00
Theo Buehler
db30748029 Link cipher_method_lib.c to -portable build 2023-03-11 07:23:54 -07:00
Brent Cook
b98c56fd5e stop exposing hidden defines in public opensslconf.h
pull in hidden headers instead, patching drectly for Windows support
2023-02-28 01:51:41 -06:00
Brent Cook
532d0ef755 include more asm files 2023-02-23 08:52:59 -06:00
Brent Cook
4bcb537aa8 generally disable asm for now 2023-02-21 01:39:35 -06:00
Brent Cook
8fc30eca61 generate and include arch-specific headers for CMake builds 2023-02-21 00:25:04 -06:00
Theo Buehler
5a414e584a Link new ui_null.c to build 2022-12-18 00:19:26 +01:00
Brent Cook
80eb145460 add direct source dependency to each library
Fix library generation with some CMake generators by including a direct
source file dependency for each library.
2022-12-14 06:28:11 -06:00
Theo Buehler
67ab6a1187 Neuter namespace differently to fix Appveyor CI 2022-11-23 12:46:44 +01:00
Theo Buehler
35265d0e44 Fix cmake builds 2022-11-22 19:26:59 +01:00
Brent Cook
ed9359727a build updates for latest upstream 2022-08-29 09:06:06 -05:00
Theo Buehler
8114acb607 add p12_sbag.c 2022-08-15 08:14:33 +02:00
Brent Cook
cc613e785e updates for new files and test cases 2022-07-31 23:31:18 -05:00
Brent Cook
5e974ea695 update for latest upstream 2022-05-08 22:23:36 -05:00
kinichiro
ea53dcd569 Fix build
- Remove pem/pem_seal.c asn1/x_nx509.c asn1/n_pkey.c
- Remove evp/m_dss.c evp/m_dss1.c evp/m_ecdsa.c
- Add include path crypto/bio to libssl for bio_local.h
2022-01-14 22:18:37 +09:00
kinichiro
71f437de62 Follow upstream file changes and fix build
- Add asn1_lib.c
- Consolidation of ASN.1 code
  Add asn1_item.c asn1_old.c
  Remove a_d2i_fp.c a_digest.c a_dup.c a_i2d_fp.c a_sign.c a_verify.c
- Merge evp_asn1.c into a_type.c
- Merge asn_pack.c into asn1_item.c
- Rename tls13_key_share.c to tls_key_share.c
- Add bio/bio_local.h dh/dh_local.h ocsp/ocsp_local.h
- Add comp/comp_local.h
- Add define LIBRESSL_CRYPTO_INTERNAL to regress build
2022-01-12 20:04:53 +09:00
kinichiro
adde656bb7 Add strtonum to compat library and export it
crypto library requires strtonum now, and add it to compat library.
remove it from applications compat/ directories.
2021-12-26 16:00:25 +09:00