Commit Graph
74 Commits
Author SHA1 Message Date
iamdoubz 63d5ecddca Update make clean to remove ev builds 2022-10-20 12:04:02 -05:00
Toni Uhlig d2ec01c072 Makefile generates libsslh.a useable for other projects e.g. fuzzer.
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
2022-08-26 12:12:33 +02:00
yrutschle 3fffce323d fix dependencies for hash.o (fix #333) 2022-05-25 17:07:19 +02:00
yrutschle 82aeedefcd allow gap set and get to be inlined 2022-05-05 22:40:12 +02:00
yrutschle f6fe735171 sort target protocols as TCP or UDP, so only appropriate probes are called by the listeners 2022-05-05 17:45:40 +02:00
yrutschle 7228c0ebc3 refactor: move TCP code to new object tcp-listener 2022-05-03 17:03:30 +02:00
lns f9831df8bc Added support for logging to a file.
* Added ASAN/LSAN/UBSAN support via Makefile
 * Fixed a memory leak

Signed-off-by: lns <matzeton@googlemail.com>
2022-04-28 15:19:18 +02:00
yrutschle 9ce9b5cd82 Integrate hash for UDP 2022-04-02 18:48:24 +02:00
Yves Rutschle 5def70dff5 fix dependencies so conf2struct gets called before sslh-conf.h is used 2022-04-01 19:34:25 +02:00
yrutschle 1e0578c082 don't log to syslog when testing 2022-03-18 18:02:32 +01:00
yrutschle 66f4b18121 ensure conf2struct is called early in the make 2022-03-17 21:51:01 +01:00
yrutschle 58ed185316 missing header dependency 2021-12-19 19:30:21 +01:00
yrutschle 207d482189 refactor: move udp timeout management to udp module 2021-11-09 18:27:52 +01:00
yrutschle 8ddff5e388 sslh-ev working for TCP 2021-11-07 16:13:44 +01:00
yrutschle ec033efbbc refactor more code from sslh-select to processes.c 2021-10-26 21:45:44 +02:00
yrutschle 317c08604b move logging code to its own file 2021-09-15 21:51:11 +02:00
Yves Rutschle 82b8ba547e Merge pull request #205 from inztar/master
add Dockerfile
2021-07-31 16:28:42 +02:00
yrutschle 37d2756703 move to PCRE for conf file 2021-07-23 22:36:20 +02:00
yrutschle da3b51e056 upgraded argtable3 to current last version to fix a parsing issue with command line options 2021-05-08 07:37:20 +02:00
yrutschle c3d019284d made echosrv independant from common.o and with its own configuration 2021-04-24 10:31:41 +02:00
yrutschle 517e4ad5b4 Merge branch 'master' of https://github.com/yrutschle/sslh 2021-04-19 09:39:05 +02:00
yrutschle de474e1d07 stop managing connections as array; instead, allocate connections, and fd2cnx is the only pointer to it 2021-04-14 23:26:01 +02:00
yrutschle cb199ed3c6 remove redundant dependency 2021-04-11 09:38:36 +02:00
yrutschle 654ff0b5b0 rebuild when headers change 2021-03-28 11:39:49 +02:00
yrutschle 5b93e4ab55 abstracted collection management to its own file 2021-03-21 16:42:37 +01:00
Yves Rutschle b72baa0622 Merge pull request #280 from ffontaine/master
Makefile: fix static linking with pcre
2021-03-16 20:32:46 +01:00
yrutschle 49c136691c refactor: move UDP code to its own file 2021-02-23 21:17:39 +01:00
yrutschle 07719f55b8 refactor echosrv to use conf2struct 2020-11-07 09:29:26 +01:00
Fabrice Fontaine 0d9e004d32 Makefile: fix static linking with pcre
Static build with pcre is broken since version 1.19b and
https://github.com/yrutschle/sslh/commit/cb90cc97ae64a445242e517847c6e44b7003eda4
because -lpcre has been replaced by -lpcreposix which will result in
the following static build failure:

/srv/storage/autobuild/run/instance-1/output-1/host/bin/mipsel-linux-gcc -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -Os   -static -static -o echosrv echosrv.o probe.o common.o tls.o  -lpcreposix -lconfig -lcap
/srv/storage/autobuild/run/instance-1/output-1/host/opt/ext-toolchain/bin/../lib/gcc/mipsel-buildroot-linux-uclibc/8.3.0/../../../../mipsel-buildroot-linux-uclibc/bin/ld: /srv/storage/autobuild/run/instance-1/output-1/host/mipsel-buildroot-linux-uclibc/sysroot/usr/lib/libpcreposix.a(libpcreposix_la-pcreposix.o): in function `regfree':
pcreposix.c:(.text+0x120): undefined reference to `pcre_free'

So append -lpcre after -lpcreposix

Fixes:
 - http://autobuild.buildroot.org/results/a601824fc0c205a6a940e0f9f079ce2c39840605

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
2020-10-15 08:05:02 +02:00
yrutschle 2c93a015ea make libconfig optionnal again 2020-07-24 16:51:06 +02:00
Yves Rutschle de8e5725c2 automatically sign release 2020-07-11 21:39:37 +02:00
Niobos 0380a4309f Change process name to indicate task of process 2019-09-05 16:40:59 +02:00
Taras Inzyk 95a6577cda add Dockerfile 2019-04-06 17:26:08 +05:00
yrutschle 530acc7c72 Moved command line parsing to conf2struct 2019-01-12 21:33:44 +01:00
yrutschle e7ce929020 config file now read to struct with c2s; command line no longer works 2018-11-29 11:56:33 +01:00
Yves Rutschle 0fc6bc8d12 Revert "Adjust linking so that wrapper libraries are static."
This reverts commit 021eb836e4.

That commit introduces regression, see
https://github.com/yrutschle/sslh/issues/157#issuecomment-352260802
for discussion.
2017-12-17 16:59:57 +01:00
yrutschle 2f8e635b67 Merge pull request #97 from candrews/patch-2
make sure the files using version.h depend on it being generated first
2017-12-16 19:01:28 +01:00
yrutschle b8851d6714 Merge pull request #98 from candrews/patch-3
Build systemd-sslh-generator if USESYSTEMD is set
2017-12-16 18:59:36 +01:00
Robert de Bath 021eb836e4 Adjust linking so that wrapper libraries are static. 2017-11-23 20:51:57 +00:00
Robert de Bath cb90cc97ae Default to using libpcre and actually use it
as libpcre has to better binary support.

Note, just linking libpcre only has no effect, the posix functions are
provided by libpcreposix.

Use "make USELIBPCRE=" to turn libpcre off and link POSIX library.
2017-11-23 20:51:57 +00:00
Yann E. MORIN 70a2ea926e Makefile: fix parallel build
version.h is included by some .o files, but it is generated. As such, it
must be a dependency of those .o files.

Rather than filter exactly which .o file needs it, just add a generic
dependency for all .o files on version.h.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2017-02-23 22:49:31 +01:00
Craig Andrews a4d2a53a47 Build systemd-sslh-generator if USESYSTEMD is set 2016-06-24 20:30:15 -04:00
Craig Andrews efba558967 make sure the files using version.h depend on it being generated first 2016-06-24 20:11:13 -04:00
James Hogarth b3f48d9876 Add systemd capabilities to sslh, rebased on current master 2016-01-29 16:20:54 +00:00
Yves Rutschle e511534b57 Make USELIBPCRE not the default 2016-01-22 17:09:02 +01:00
John Regan ab3324be47 Enable PCRE as RegEx Library 2015-08-13 14:28:17 -04:00
moparisthebest b988540105 Add SNI hostname based probe 2015-07-12 23:10:53 -04:00
Yves Rutschle 3aefaf3004 Added Makefile option to build without libpcre 2015-07-09 15:31:42 +02:00
Kylie McClain eb3d3be3ab Makefile: use more variables for install directories 2015-06-22 01:51:36 -04:00
Alex Dunn 3bad96865d Makefile: fix install for Mac OS 2015-05-14 23:14:40 -07:00