324 Commits

Author SHA1 Message Date
Brent Cook
dd1d96f643 fix cross-compilation on Windows 11 Arm64
signal.h is less populated in this environment, remove stub signal
handlers
2023-10-30 22:57:33 -05:00
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
Brent Cook
1defa3baa5 package getopt compat files 2023-10-01 21:11:11 -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
6650dcecc6 rmdconst.h was removed 2023-08-10 05:09:06 -06: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
89de230099 obj_xref.h was removed 2023-07-22 13:26:13 -06:00
Theo Buehler
3afb61ff80 Link engine_stubs.c to build 2023-07-21 03:41:12 -06:00
Theo Buehler
fbe39d0157 Add hidden dh.h 2023-07-08 09:28:08 -06:00
Theo Buehler
2c8e1eb716 Add hidden curve25519.h 2023-07-08 09:15:02 -06:00
Theo Buehler
0761bd33f2 Add hidden modes.h 2023-07-08 08:54:23 -06:00
Theo Buehler
5696d1ac30 Add hidden cmac.h, dsa.h, gost.h 2023-07-08 08:24:54 -06:00
Theo Buehler
bedbbe39ce sort hidden headers 2023-07-08 08:23:38 -06:00
Theo Buehler
a6c28611a7 Add hidden objects.h, rsa.h, sha.h 2023-07-08 06:20:34 -06:00
Theo Buehler
22e7b97c8a Add hidden bn.h 2023-07-08 05:40:49 -06:00
Theo Buehler
4a3af592b2 Add hidden txt_cb.h 2023-07-08 05:27:37 -06:00
Theo Buehler
11cdcdd595 Add hidden cast.h idea.h md4.h md5.h ocsp.h 2023-07-08 04:52:03 -06:00
Theo Buehler
bf99e422ce Add hidden crypto.h 2023-07-08 04:43:47 -06:00
Theo Buehler
977bd49c5b Add hidden buffer.h, cms.h, comp.h, conf_api.h 2023-07-08 04:42:45 -06:00
Theo Buehler
fb2b33289c Add hidden ct.h and dso.h 2023-07-08 04:36:30 -06:00
Theo Buehler
bad876da8c Remove sm3_local.h 2023-07-08 04:36:30 -06:00
Theo Buehler
a471f2e054 Add hidden ecdh.h, sm3.h 2023-07-08 04:36:30 -06:00
Theo Buehler
eae1263233 Remove hidden sm3.h and evp.h again 2023-07-08 04:36:30 -06:00
Theo Buehler
f555467a6f Add hidden ec.h, ecdh.h, err.h, evp.h hkdf.h 2023-07-07 08:39:25 -06:00
Theo Buehler
e2714304ed Add hidden rc2.h, pem.h, lhash.h 2023-07-07 08:37:43 -06:00
Theo Buehler
45b1b1db94 Add hidden poly1305.h rand.h sm3.h sm4.h 2023-07-07 08:37:43 -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
51368394eb Land #886, add compat getopt implementation 2023-07-07 04:32:20 -05:00
Brent Cook
2354879274 Land #883, improve socket / file descriptor checks on Windows 2023-07-07 04:31:00 -05: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
990fd347ee Add hidden ts.h 2023-07-07 02:37:42 -06:00
Brent Cook
c9b18cb296 fix get/setsockopt reversed logic 2023-07-06 22:05:06 +03:00
Brent Cook
f75c00226c remove unneeded extern since we're not trying to hack this into mingw-w64 2023-07-06 20:53:12 +03:00
Brent Cook
afcd4be8a7 change socket / file descriptor checks on windows
based on discussion in https://github.com/libressl/portable/issues/266
and https://bugs.python.org/issue23524 adjust the compat layer for
Windows to use _get_osfhandle in combination with
_set_thread_local_invalid_parameter_handler if applicable to more
reliably determine if a handle is a socket, file, or closed socket.

This prevents assertions when calling tls_close on an already-closed
socket.
2023-07-06 20:32:34 +03:00
Theo Buehler
546a622bcd Add hidden asn1.h, asn1t.h, bio.h to build 2023-07-05 15:38:50 -06:00
Theo Buehler
b2b1923600 Add hidden/openssl/chacha.h 2023-07-05 13:46:42 -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
7204769b60 ech_local.h was removed 2023-06-25 14:06:59 -06: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
Brent Cook
54b31ce5ec unexport internal compat symbols from libcrypto 2023-05-27 01:20:54 -05:00