aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* Got rid of those non working extended options, because:removed_extended_optionsToni Uhlig2020-03-22
| | | | | | | | | | | * legendary spaghetti code * did not work at all, caused several buffer overflows * pain-in-the-ass to maintain and test * badly reviewed from my side :/ * improved and working "extended options" may be added later * basically reverts most of #8 Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* moved queueing code for out-of-order payload data into subroutineToni Uhlig2020-03-21
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* braces for conditionsToni Uhlig2020-03-21
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* moved payload queueing code into subroutineToni Uhlig2020-03-16
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* travis-ci: do not spam me with config.logToni Uhlig2020-03-16
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* reduced statement nesting depth of function handle_packetToni Uhlig2020-03-16
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* fixed invalid sequence count during auth (`--passwd`)Toni Uhlig2020-03-15
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* ignore incomplete packets instead of exit(0), only allow packet queueing if ↵Toni Uhlig2020-03-15
| | | | | | state allows it Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* fixed mingw build caused by an invalid explicit function type castToni Uhlig2020-03-14
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* sequence number timeout table uses now correct time_t for timestampsToni Uhlig2020-03-14
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* improved icmp/forward descriptor structs and use -Wextra for all buildsToni Uhlig2020-03-14
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* integration_test.sh supports other build directories then ↵Toni Uhlig2020-03-12
| | | | | | ${SOURCE_ROOT}/src/ptunnel-ng Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* autogen.sh can now be executed from any current working directoryToni Uhlig2020-03-12
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* moved header byte-re-ordering code into a subroutineToni Uhlig2020-03-12
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* moved proxy descriptor search into getter functionToni Uhlig2020-03-12
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* send/recv/verify data testToni Uhlig2020-03-11
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* moved authentication request/response code to subroutinesToni Uhlig2020-03-07
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* gitlab-ci: use archlinux:latestToni Uhlig2020-03-01
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* Revert "gitlab-ci: use archlinux:latest"Toni Uhlig2020-03-01
| | | | This reverts commit 32ff9ee7fadf6f3e1e705c49a8545fca2cc3d4bc.
* gitlab-ci: use archlinux:latestToni Uhlig2020-03-01
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* code formattingToni Uhlig2020-02-22
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* gitlab-ci: run at least a simple integration testToni Uhlig2020-02-22
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* handle incoming tunnel request in a subroutineToni Uhlig2020-02-21
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* Merge pull request #17 from eriksimon/masterToni Uhlig2020-02-20
|\ | | | | Run clang-format on old ptk.c/.h files
| * Run clang-format on old ptk.c/.h filesErik Simon2020-02-20
|/
* integration test instrumentalizes ptunnelToni Uhlig2020-02-01
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* gitlab-ci: preps for integration testsToni Uhlig2020-02-01
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* added very simple integration test scriptToni Uhlig2020-02-01
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* gitlab-ci: removed archlinux-keyring pkgToni Uhlig2020-02-01
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* Merge branch 'master' of ssh://github.com/lnslbrty/ptunnel-ngToni Uhlig2020-01-28
|\
| * gitlab-ci: switched from finalduty/archlinux to archlinux/base docker containerToni Uhlig2020-01-05
| | | | | | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
| * removed superfluous explicit numeric castsToni Uhlig2019-12-05
| | | | | | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
| * log at least an info message if our receive window is not big enoughToni Uhlig2019-12-04
| | | | | | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
| * reduced function signature and removed dead code in acknowledge handlingToni Uhlig2019-12-03
| | | | | | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
| * fixed missing variable initialize - before used in conditionToni Uhlig2019-12-03
| | | | | | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
| * fixed missing challenge response memcpyToni Uhlig2019-12-03
| | | | | | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
| * removed superfluous if statementToni Uhlig2019-12-02
| | | | | | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* | removed failed fuzzer attemptToni Uhlig2020-01-28
|/ | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* reduced handle_data unnecessary complex function signatureToni Uhlig2019-12-01
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* print sequence number for superfluous ACK's recvToni Uhlig2019-11-30
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* gitlab-ci, travis-ci: build ptunnel-ng with sanitizer and assertions enabledToni Uhlig2019-09-12
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* indentationToni Uhlig2019-09-11
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* configure.ac: enable ASAN, LSAN and UBSANToni Uhlig2019-09-11
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* configure.ac: enable assertions explicitlyToni Uhlig2019-09-11
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* removed broken gitlab badgeToni Uhlig2019-09-09
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* typ0s fixedToni Uhlig2019-09-09
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* refactored queue_packet by shrinking the function signature to the minimaToni Uhlig2019-09-09
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* removed unused function prototype, improved termination msgsToni Uhlig2019-09-05
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* Revert "added fallback random source ("/dev/urandom") for systems with low ↵Toni Uhlig2019-08-18
| | | | | | entropy available and "/dev/random" activated" This reverts commit 9f2cf5f50a337d73058c43e88453cb2926b49fb3.
* added fallback random source ("/dev/urandom") for systems with low entropy ↵Toni Uhlig2019-08-11
| | | | | | available and "/dev/random" activated Signed-off-by: Toni Uhlig <matzeton@googlemail.com>