2032 Commits

Author SHA1 Message Date
Joris Vink
fab2e0f746 moving to 4.2.2 2022-04-20 12:00:49 +02:00
Joris Vink
66de41fb8a Merge branch 'master' into 4.x-releng 2022-04-20 11:38:50 +02:00
Joris Vink
b0a5257f93 rename RELEASE to RELEASE.md 2022-04-20 11:37:58 +02:00
Joris Vink
3516d50be3 adjust log messages 2022-04-20 11:10:01 +02:00
Joris Vink
dcdfce5763 Unbreak x509dict.
I accidentally swapped issuer and subject while constructing it.
2022-04-20 11:06:10 +02:00
Joris Vink
8969c14575 Add a quick and dirty release procedure.
Mostly for myself so I remember the goodies.
2022-03-21 14:22:46 +01:00
Joris Vink
11e553f5c9 Merge branch 'master' into 4.x-releng 4.2.1 2022-03-21 12:52:11 +01:00
Joris Vink
48ae94eb47 Pull in stddef.h in seccomp.h.
offsetof() on Linux is defined in it.
2022-03-21 12:51:22 +01:00
Joris Vink
3587e88249 adjust README version number 2022-03-21 12:46:29 +01:00
Joris Vink
2c54c2dab2 Merge branch 'master' into 4.x-releng 2022-03-21 12:44:28 +01:00
Joris Vink
f072e4d5e4 update README with correct versions 2022-03-21 12:44:01 +01:00
Joris Vink
1ae07ade1c This will be Kore 4.2.1 2022-03-21 12:28:24 +01:00
Joris Vink
a85b44e9d9 Merge branch 'master' into 4.x-releng 2022-03-21 12:28:14 +01:00
Joris Vink
38d7a5f88d Fix handling kore_tls_connection_accept() return codes.
When this code was moved from src/connection.c into src/tls_openssl.c
a return wouldn't break us out from kore_connection_handle() as
previously expected.

This ment that Kore would move the connection into established state
immediately even if SSL_accept() needed to read more.

This broke TLS client authentication as Kore its belts and suspenders
kept throwing a 403 due to the code not properly obtaining the client
certificate when expected.
2022-03-21 12:23:38 +01:00
Joris Vink
5bfd61d136 Hide kore_pymodule behind !KORE_SINGLE_BINARY.
Unbreaks building single binaries with Python support.
2022-03-21 08:52:38 +01:00
Joris Vink
c290412f62 Merge branch 'master' into 4.x-releng 4.2.0 2022-03-18 21:06:33 +01:00
Joris Vink
057080b991 adjust release file for 4.2.0 2022-03-18 14:51:45 +01:00
Joris Vink
cd53f7a407 Merge remote-tracking branch 'origin/4.x-releng' into 4.x-releng 2022-03-18 14:51:06 +01:00
Joris Vink
f9c3fac6fa Add logfile to example configuration 2022-03-15 19:37:17 +01:00
Joris Vink
8689df70d9 adjust example configuration 2022-03-15 19:30:57 +01:00
Joris Vink
5ef70e78e9 prepare for 4.2.0 2022-03-15 17:25:30 +01:00
Joris Vink
0d305ecf5a fix format specifier, previous commit touched a bit too much. 2022-03-15 13:47:35 +01:00
Joris Vink
5021eeb597 use correct format specifier for size_t 2022-03-15 13:39:01 +01:00
Joris Vink
41b6b858e6 move to beta3 4.2.0-beta3 2022-03-01 10:00:34 +01:00
Joris Vink
419ed53b0e Merge branch 'master' into 4.x-releng 2022-03-01 09:59:48 +01:00
Joris Vink
78d667abc7 Set socklen to 0 by default in pysocket_async_recv(). 2022-02-20 21:30:17 +01:00
Joris Vink
a65be853f0 Simplify python_push_integer().
We're not doing anything with ret, so kill it.
2022-02-20 21:27:35 +01:00
Joris Vink
a7aa51d8d5 Fix unhappy path cleanup.
The whole while (cnt-- >= 0) idiom is busted since cnt started
at 0 and if the first call to PyUnicode_FromStringAndSize() fails
then we're attempting to access -1.
2022-02-20 21:25:18 +01:00
Joris Vink
daca80f1cb execve() its envp shouldn't be NULL. 2022-02-20 21:20:14 +01:00
Joris Vink
96d1396df1 Change logic for http_version a bit. 2022-02-20 21:19:44 +01:00
Joris Vink
29eb5b1537 Explicitly cast integer args for JSON create apis 2022-02-20 20:32:39 +01:00
Joris Vink
f3135d5e71 Mention TLS_BACKEND in README 2022-02-18 15:49:56 +01:00
Joris Vink
045beb8622 add kore_mem_zero().
use it in places explicit_bzero() used to be called.

The kore_mem_zero() is a best effort to try and let the compiler
not optimize the code away. Highly platform dependent.
2022-02-18 11:13:01 +01:00
Joris Vink
722a0eca21 Get rid of MAKE_CLONE macro 2022-02-18 11:08:13 +01:00
Joris Vink
576d7ba5e8 more whitespace fixes 2022-02-18 11:07:40 +01:00
Joris Vink
404ccf622f whitespace fixes 2022-02-18 11:06:35 +01:00
Joris Vink
7f74790da7 Define KORE_PRIVATE_KEY per TLS backend. 2022-02-18 10:50:17 +01:00
Joris Vink
80383024a3 For each TLS backend let us use correct types. 2022-02-18 10:47:05 +01:00
Joris Vink
a9f7bd7faf rename ssl prefixed things to tls. 2022-02-18 10:20:28 +01:00
Joris Vink
c93a8f3b40 disallow ACME with TLS_BACKEND != openssl 2022-02-18 09:18:13 +01:00
Joris Vink
b20d26e839 Throw exception is TLS backend isnt supported. 2022-02-18 09:17:58 +01:00
Joris Vink
feb90208ef Add kore_tls_x509_data().
Use it in the Python code, which requires it.
2022-02-18 09:14:30 +01:00
Joris Vink
169a4e7c5d wrap 2 more syscalls in ifdefs. 2022-02-17 14:46:33 +01:00
Joris Vink
3c3a93e5c5 Add missing header files for SHA1/SHA2. 2022-02-17 14:11:39 +01:00
Joris Vink
d8505bab0d Always add -rdynamic to LDFLAGS. 2022-02-17 14:59:36 +02:00
Joris Vink
99a1581e19 Initial work splitting OpenSSL code away.
This work moves all TLS / crypto related code into a tls_openssl.c
file and adds a tls_none.c which contains just stubs.

Allows compilation of Kore with TLS_BACKEND=none to remove building
against OpenSSL.

Also adds code for SHA1/SHA2 taken from openssh-portable so we don't
depend on those being present anymore in libcrypto.
2022-02-17 13:45:28 +01:00
Joris Vink
6dc162e7ee Handle ECHILD when reaping workers on shutdown.
If the child process is already dead we must handle it accordingly
instead of getting stuck waiting on it.
2022-02-16 12:32:20 +01:00
Joris Vink
23d762d682 Allow parent to send msgs to workers via kore_msg.
It wasn't possible for the parent process to send messages
directly via kore_msg_send() to other worker processes.

This is now rectified to from the parent process one can call
kore_msg_send() with a worker destination and it'll work.
2022-02-01 10:36:07 +01:00
Joris Vink
b3f54e290a Change parent behaviour when calling waitpid().
Wait for any process in our process group only instead of WAIT_ANY.

This allows the parent process to start subprocesses that end up
in different process groups which are handled in user code instead
completely (using signalfd for example).
2022-02-01 10:34:12 +01:00
Joris Vink
833ca646e7 i forgot, it's 2022. 2022-01-31 22:02:06 +01:00