Commit Graph

27 Commits (56ddbcb5c80bc36b6d6d331255825f63b28bca1e)

Author SHA1 Message Date
Soner Tari b6f2203495 Validate proxyspec protocols http, pop3, and smtp 6 years ago
Soner Tari f3e7a359a6 Update documentation with user auth feature 6 years ago
Soner Tari 6f37661772 Enable user auth for all supported protos or proxyspec types 6 years ago
Soner Tari fcd24a2cbe Do not terminate redirected connection until src outbuf is empty, otherwise 302 redirection may not have been sent yet 6 years ago
Soner Tari fd52ba0c56 Refactor, handle error conditions, and clean up 6 years ago
Soner Tari cde3fbca3f Redirect user to login page and redirect again to orig target after successful authentication, currently supported only on OpenBSD
Get ethernet address and compare with the one in userdb, on each conn setup
Create user_auth options
Rename and clean-up
6 years ago
Soner Tari 19f68a2800 Fix documentation 6 years ago
Soner Tari d0687b3398 Fix double init of protoctx, memory leak
Free vars where they are allocated, always
6 years ago
Soner Tari 12ecc96648 Assume co-ownership of refactored and new pxy and proto source files by adding copyright line below the original copyright line 6 years ago
Soner Tari 87eb6ce004 Move conn end free function callback to conn end struct, proto ctx should not keep track of such conn end details, conn end should know which function to be called to free itself, we may have different protos on different ends of the same conn
Improve and clean up
6 years ago
Soner Tari d4a209cbfb Avoid redundant void to ctx type casts by passing ctx explicitly 6 years ago
Soner Tari c085cafe0f Rename srv_dst to srvdst
Clean up
6 years ago
Soner Tari 2aeec751e0 Handle out of memory conditions correctly 6 years ago
Soner Tari c91d569723 Improve debug logging, log proto name on connect/disconnect
Rename vars and functions
Improve and clean up
6 years ago
Soner Tari 1374d37722 Decouple stats from proto code
Move connect logging to the topmost callback functions, amap
Improve and clean up
6 years ago
Soner Tari 0c2d12f35d Decouple connect logging from proxy code
Improve and clean up
6 years ago
Soner Tari 3e0cbc2905 Rearrange and clean up 6 years ago
Soner Tari 59c11017bd Refactor to move common logging and stats code to topmost callback functions
Log only orig content in the topmost readcb
Improve and clean up
6 years ago
Soner Tari 6c4dff69eb Move proto specific structs from h to c files 6 years ago
Soner Tari 13040639b7 Add static and NONNULL attrib
Rename, improve, and clean up
6 years ago
Soner Tari f681b31497 Decouple ssl from tcp and other protocols
Improve and clean up
6 years ago
Soner Tari 0c55600ec7 Move ssl proto to its own file, but still needs more refactoring to decouple ssl from other protocols, especially tcp
Rename and clean up
6 years ago
Soner Tari 8fc9b0a44d Move tcp proto to its own file
Rename and clean up
6 years ago
Soner Tari bb0afcfee6 Introduce ssl ctx, complete all protocol setup, so remove function tables and related code
Fix header string alloc and insert
Other improvements, fixes, and clean-up
6 years ago
Soner Tari 429c4c7a32 Refactor for code reuse
Clean up
6 years ago
Soner Tari c25e1ca0f5 Refactor child conns and autossl
Other fixes and improvements
6 years ago
Soner Tari 8aae4c1125 Separate http protocol from proxy code and move http related functions to protohttp source files
Introduce protocol context, and set http protocol up using http context and interface functions in http protocol driver, the rest of the protocols still runs on callback function tables
Refactor for further short functions
Other fixes and improvements
6 years ago