| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
| |
These are portable implementations from NetBSD that are needed on
Windows and perhaps some other platforms with the new versions of
the mlkem tests.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Since commit b98c56fd5e86fa76eb55a98a2266a923f64f705c ("stop exposing
hidden defines in public opensslconf.h"), only a subset of CPU
architectures is supported by libressl. However, when a build is
attempted for an unsupported architecture, it doesn't fail with a
clear error message at configure time, but it fails with a weird error
at build time:
crypto/../include/openssl/rc4.h:75:9: error: unknown type name 'RC4_INT'
In order to help users, let's bail out nicely at configure time with a
good error message when the CPU architecture is not supported.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
|
|
|
|
| |
Fixes #1064
|
|
|
|
|
| |
Now that all uses of gmtime_r() and timegm() have been converted to
OPENSSL_gmtime() and OPENSSL_timegm(), this is no longer needed.
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
Visual studio does not define __BYTE_ORDER__ so all architectures
were detected as LITTLE_ENDIAN since both __BYTE_ORDER__ and
__ORDER_LITTLE_ENDIAN__ would evaluate to 0 and compare equal. This
updates the checks to use CMakes detection of endianness, with a hard
error, if this also fails.
|
| |
|
| |
|
|
|
|
|
|
|
| |
You can't pass a function pointer through a void pointer.
So wrap the pthread callback in a struct.
Fixes #966
|
|\ |
|
| |
| |
| |
| |
| |
| | |
- posix_win.c: use `snprintf` as-is with _MSC_VER >= 1900
- stdio.h: include socket header before windows.h
- pthread.h: delete exec permission from source file
|
|/
|
|
|
| |
See #928. This isn't a full fix, but should remove much of the friction
already.
|
|
|
|
| |
2022's preprocessor
|
|
|
|
|
|
|
| |
- 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)
|
| |
|
| |
|
|
|
|
| |
Fixes #898
|
| |
|
|
|
|
| |
Windows assumes little endian for now...
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
Prefer function-like macros where possible, some style tweaks, and add
Solaris support.
|
|
|
|
|
| |
There's not a great place for these, but since they are internal, we can
just move them to the most common header.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
pull in hidden headers instead, patching drectly for Windows support
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This fixes nc failing to run on darwin due to it incorrectly setting the
linux-specific SOCK_NONBLOCK flag on connect.
nc already had a portability shim in apps/nc/compat/sys/socket.h, which
kicks in if SOCK_NONBLOCK is undefined. But that header includes
include/compat/sys/socket.h, which also has a portability shim that
defines a default value for SOCK_NONBLOCK if it's undefined. Thus the
first portability shim was unreachable.
Fixes this by moving the NEED_SOCKET_FLAGS flag into the outer shim, and
having the inner shim activate if NEED_SOCKET_FLAGS is defined.
This closes https://github.com/libressl-portable/portable/issues/631
|
| |
|
|
|
|
|
| |
Move machine/endian.h to endian.h, use AC_HEADER_RESOLV over individual
header checks, and include prerequisites for netinet/ip.h check.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The arpa/nameser.h, netinet/ip.h, and resolv.h headers are not crucial
to building LibreSSL. The netinet/ip.h header is used in nc(1) for
optional IPTOS_ features that can be ifdef'd on systems without support.
The endian.h header is the upcoming standard header and should be used
whenever available and correct. The machine/endian.h header is
non-standard and doesn't have to exist on POSIX systems.
Fix the check for getpagesize(3) not forward declaring the function,
such that CFLAGS with -Werror=implicit-function-declaration doesn't
cause the check to fail.
|
| |
|
|
|
|
|
| |
Free the lock pointer in addition to the critical section. Thanks to
martinkucera74 on github.
|
| |
|
|
|
|
|
|
|
|
|
| |
This takes the dynamic initialisation code added to CRYPTO_lock() in e5081719
and applies it to the Window's pthread_mutex implementation. This allows for
PTHREAD_MUTEX_INITIALIZER to be used on Windows.
bcook has agreed to place this code in the public domain (as per the rest of
the code in pthread.h).
|
|
|
|
|
| |
Import queue.h tree.h _null.h header files from OpenBSD upstream
since x509_issuer_cache.c requires them.
|
| |
|
| |
|
| |
|
| |
|