Commit Graph

1085 Commits (e456f56001e4dd99972a0430122a5782538a60fd)
 

Author SHA1 Message Date
Soner Tari e456f56001 Release v0.9.3 2 years ago
Soner Tari b78a367d76 Silence warning for unused var on OpenBSD 2 years ago
Soner Tari 604fb58646 Fix macOS header selection
Must have been broken since the restructuring of the source tree
2 years ago
Soner Tari c3feea53f9 Make sure natengine is not NULL before freeing 2 years ago
Soner Tari 674893cc79 Fix compiler warnings for format spec for size_t 2 years ago
Soner Tari efc0be9991 Re-enable osx on travis
XNU versions fixed now
2 years ago
Soner Tari 01d0b156d6 Decouple autossl code handling underlying bufs
And clean up redundant child callbacks
2 years ago
Soner Tari 0124fb33c5 Update XNU headers for macOS
About 2 years old.
2 years ago
Soner Tari 3a215f4f3f Use parent protoctx for autossl ctx
This fixes a crash.
And improve logging.
2 years ago
Soner Tari 63a48308cd Fix autossl without STARTTLS in divert mode
In the previous implementation, the use case for autossl was assumed to
be STARTTLS with POP3 or SMTP. But there are users who use autossl with
HTTP too. The split mode was fine, but the divert mode was broken. This
change makes autossl a generic upgrade mechanism.
Also fix sslproxy line in autossl, change p to s if upgraded.
Add e2e tests for autossl in divert and split mode.
2 years ago
Soner Tari 45abd2e85c Make sure srvdst.bev is not NULL in autossl 2 years ago
Soner Tari fce838e43b Move code handling underlying bevs to autossl
Non-autossl protos do not have underlying bevs, so we should not try
check them. But there are still a couple of functions left which needs
to be moved to autossl.
2 years ago
Soner Tari 571720e24c OR not AND retval -1 with term and enomem flags
Similarly to what we do in pxy_listener_acceptcb_child().
2 years ago
Soner Tari fec19b8c8b Remove unnecessary function calls 2 years ago
Soner Tari e43564635a Add WUNRES and NONNULL attribs to function types with return values
Otherwise gcc does not issue warnings for them.
2 years ago
Soner Tari 76ea48f2d0 Remove srvdst_xferred flag
Setting srvdst.bev to NULL can be used as a flag to indicate that we
have reused the srvdst of the parent as the dst of the first child conn.
This also prevents access to srvdst.bev after we do the xfer, without
any extra flag.
2 years ago
Soner Tari 02a6cc12e6 Remove redundant srvdst_xferred flag in child ctx 2 years ago
Soner Tari dc40f74c13 Update copyright year to 2022 2 years ago
Soner Tari 722c2f59d2 Disable srvdst events asap when xferring to child and in split mode
This is the correct implementation. And disabling later on is
problematic while terminating, and can even cause a crash.
2 years ago
Soner Tari 61e28a5c86 Fix crash in split mode if we try to access srvdst while terminating
Disable events and NULL callbacks of srvdst at assignment time to dst,
not at termination.
2 years ago
Soner Tari af6b40b5bf Fix natengine opt passed in proxyspec on command line 2 years ago
Soner Tari 2e8e677bac Discard underlying bufs while closing, sending errors, and denying ocsp
Also refactor for code reuse.
Since we are closing in all such cases, performance is not important.
2 years ago
Soner Tari 7143102efa Create callback functions for set/unset watermark
Watermarking for underlying bevs is for autossl only. The other
protocols should not waste time with it.
2 years ago
Soner Tari 013814317c Fix buffer watermarking for underlying bevs 2 years ago
Soner Tari 3efac5658f Fix build errors with OpenSSL 3.0.x, but not deprecation warnings
This patch fixes errors only, so that build succeeds, but deprecation
warnings remain. It seems we need considerable changes to replace those
deprecated functions in the warnings.
2 years ago
Soner Tari 3dea854173 Improve documentation 2 years ago
Soner Tari 59c28f6ad9 Fix enabling pcap and mirror logging, issue #37
Reported by @Leonschmitt
3 years ago
Soner Tari 7033afced1 Improve documentation 3 years ago
Soner Tari 7654f5e7b3 Fix unit tests with libressl 2.2.7
OPENSSL_VERSION_NUMBER in libressl 2.2.7 is 20000000, which is >=
0x10100000L.
3 years ago
Soner Tari 923bea195a Fix unit tests with libressl 3.4.1 3 years ago
Soner Tari fe3bdc5dac Migrate to travis-ci.com 3 years ago
Soner Tari 8b2860b0b3 Fix unit tests with WITHOUT_USERAUTH enabled 3 years ago
Soner Tari 6bd0dea851 Disable travis e2e tests 3 years ago
Soner Tari 49c58048f6 Disable travis build with WITHOUT_MIRROR
We cannot run unit tests with WITHOUT_MIRROR enabled, debug output for
filter rules have mirror logging
3 years ago
Soner Tari 3f3c3623ad Fix unit tests for openssl-1.0.0s 3 years ago
Soner Tari 90b32e0595 Fix unit tests for openssl and libressl versions in travis config 3 years ago
Soner Tari 0600a5c2ea Do not verify server cert due to expired Let's Encrypt cert 3 years ago
Soner Tari 5bc6933f79 Fix unit tests for libressl-2.2.7, libressl-2.7.4, and openssl-1.1.0 3 years ago
Soner Tari b3be019ffa Fix travis unit tests with max ssl proto 3 years ago
Soner Tari c90f71f5ef Bump version to 0.9.2 3 years ago
Soner Tari eba4eb3ea6 Fix syntax documentation for Log actions in struct filtering rules
And clean up
3 years ago
Soner Tari 677178c2d9 Fix use of uninitialised value error by valgrind 3 years ago
Soner Tari 2f2dd468f2 Free macros after setting filter rules during startup 3 years ago
Soner Tari d876710acf Add the full text of the GPL and LGPL licenses
This is required for complying with the LGPL license of the aho corasick
library.
3 years ago
Soner Tari 3003d237c7 Reflect the license change of aho corasick library to LGPL
Laurent Farhi, @farhiongit, the developer of the Aho Corasick library
has changed the license of the library to the LGPL. Thanks Laurent.
3 years ago
Soner Tari e05dd2b884 Update release date 3 years ago
Soner Tari 3e55d4820e Release v0.9.1 3 years ago
Soner Tari 700a901e29 Add missing FilterRule option to proxyspec documentation 3 years ago
Soner Tari dd4975690e Check if userdb file can be opened before setting userdb_path option 3 years ago
Soner Tari 5877e81301 Improve proxyspec documentation 3 years ago