Alejandro Mery [Thu, 4 Dec 2014 23:09:20 +0000 (00:09 +0100)]
Subject: [PATCH] Introduce lws_free2() helper to free and re-NULL pointers
Signed-off-by: Alejandro Mery <amery@geeks.cl>
Alejandro Mery [Thu, 4 Dec 2014 22:59:35 +0000 (23:59 +0100)]
Subject: [PATCH] Use custom allocator
Signed-off-by: Alejandro Mery <amery@geeks.cl>
Alejandro Mery [Thu, 4 Dec 2014 22:15:27 +0000 (23:15 +0100)]
Subject: [PATCH] Add custom allocator support using the realloc() interface
Signed-off-by: Alejandro Mery <amery@geeks.cl>
Andy Green [Tue, 2 Dec 2014 00:42:47 +0000 (08:42 +0800)]
test ping correct type for fprintf
Reported-by: Michael Habeler <mail17@mah.priv.at>
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Mon, 1 Dec 2014 14:16:17 +0000 (22:16 +0800)]
test echo unbreak no server
Signed-off-by: Andy Green <andy.green@linaro.org>
Michael Haberler [Mon, 1 Dec 2014 13:05:51 +0000 (14:05 +0100)]
Subject: [PATCH] serve_http_file: add feature test macro for API change
introduced in 917f43
Andy Green [Mon, 1 Dec 2014 13:46:35 +0000 (21:46 +0800)]
test echo versa + uri
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Mon, 1 Dec 2014 13:02:55 +0000 (21:02 +0800)]
test echo add port to server host
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Mon, 1 Dec 2014 11:28:28 +0000 (19:28 +0800)]
revert 187
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Mon, 1 Dec 2014 03:21:30 +0000 (11:21 +0800)]
README.md update markup api key
Signed-off-by: Andy Green <andy.green@linaro.org>
=?UTF-8?q?Joakim=20S=C3=B6derberg?= [Mon, 1 Dec 2014 00:21:10 +0000 (01:21 +0100)]
Subject: [PATCH] Nicer readmes using markdown.
This is still readable in raw text, but much nicer for github with heading and syntax highlighting and such.
Andy Green [Sun, 30 Nov 2014 05:55:40 +0000 (13:55 +0800)]
coverity 83669 remove random from fraggle
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Sun, 30 Nov 2014 05:53:19 +0000 (13:53 +0800)]
coverity 83663 remove random from test client
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Sun, 30 Nov 2014 05:47:36 +0000 (13:47 +0800)]
coverity 83687 daemonize was not a close problem
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Sun, 30 Nov 2014 05:39:09 +0000 (13:39 +0800)]
coverity 83682 base64 decode more dead code
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Sun, 30 Nov 2014 05:37:23 +0000 (13:37 +0800)]
coverity 83683 test ping more uint64_t needed
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Sun, 30 Nov 2014 05:35:24 +0000 (13:35 +0800)]
coverity 83684 more ways to close and use freed wsi
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Sun, 30 Nov 2014 05:32:27 +0000 (13:32 +0800)]
coverity 83685 daemonize put the close in the right place
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Sun, 30 Nov 2014 05:30:57 +0000 (13:30 +0800)]
coverity 83686 server close sockfd if failing out
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Sun, 30 Nov 2014 05:17:35 +0000 (13:17 +0800)]
win32 does not know uint64_t without stdint.h
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Sun, 30 Nov 2014 05:07:11 +0000 (13:07 +0800)]
coverity 83656 server check setsockopt return
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Sun, 30 Nov 2014 05:06:09 +0000 (13:06 +0800)]
coverity 83657 plat unix check setsockopt return
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Sun, 30 Nov 2014 05:04:46 +0000 (13:04 +0800)]
coverity 83658 test server check fstat return
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Sun, 30 Nov 2014 05:03:45 +0000 (13:03 +0800)]
coverity 83659 plat unix check fstat return
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Sun, 30 Nov 2014 05:02:32 +0000 (13:02 +0800)]
coverity 83660 plat unix check fcntl return
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Sun, 30 Nov 2014 05:00:47 +0000 (13:00 +0800)]
coverity 83661 output check lseek return
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Sun, 30 Nov 2014 04:57:57 +0000 (12:57 +0800)]
coverity 83662 test server check lseek return
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Sun, 30 Nov 2014 04:56:21 +0000 (12:56 +0800)]
coverity 83664 consistently check NULL
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Sun, 30 Nov 2014 04:54:48 +0000 (12:54 +0800)]
coverity 83665 fail on null buffer
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Sun, 30 Nov 2014 04:53:27 +0000 (12:53 +0800)]
coverity 83666 fail on null buffer
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Sun, 30 Nov 2014 04:51:47 +0000 (12:51 +0800)]
coverity 83667 dead code
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Sun, 30 Nov 2014 04:50:12 +0000 (12:50 +0800)]
coverity 83668 test echo nesting level bug
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Sun, 30 Nov 2014 04:48:22 +0000 (12:48 +0800)]
coverity 83671 dead code
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Sun, 30 Nov 2014 04:47:33 +0000 (12:47 +0800)]
coverity 83672 dead code
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Sun, 30 Nov 2014 04:45:39 +0000 (12:45 +0800)]
coverity 83673 deference after NULL check
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Sun, 30 Nov 2014 04:43:51 +0000 (12:43 +0800)]
83674 dereference after NULL check
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Sun, 30 Nov 2014 04:42:14 +0000 (12:42 +0800)]
83675 test echo param could bust bounds
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Sun, 30 Nov 2014 04:40:32 +0000 (12:40 +0800)]
coverity 83678 unused assignment
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Sun, 30 Nov 2014 04:36:09 +0000 (12:36 +0800)]
coverity 83679 default int expansion might bloat byte reassembly
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Sun, 30 Nov 2014 04:30:36 +0000 (12:30 +0800)]
coverity 83680 kill needless semicolons
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Sun, 30 Nov 2014 04:29:04 +0000 (12:29 +0800)]
coverity 83681 unused assignment
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Sun, 30 Nov 2014 04:27:47 +0000 (12:27 +0800)]
coverity 83682 suspicous signed bytewise reassembly
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Sun, 30 Nov 2014 04:25:36 +0000 (12:25 +0800)]
coverity 83683 shift greater than 31 technically undefined
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Sun, 30 Nov 2014 04:21:40 +0000 (12:21 +0800)]
coverity 83670 daemonize can leak lock handle
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Sun, 30 Nov 2014 04:14:23 +0000 (12:14 +0800)]
coverity 83684 let parent close if ssl service fails
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Sun, 30 Nov 2014 03:52:40 +0000 (11:52 +0800)]
coverty travis fix env indentation
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Sun, 30 Nov 2014 03:24:01 +0000 (11:24 +0800)]
coverity travis add key
Signed-off-by: Andy Green <andy.green@linaro.org>
=?UTF-8?q?Joakim=20S=C3=B6derberg?= [Thu, 27 Nov 2014 22:49:42 +0000 (23:49 +0100)]
Subject: [PATCH] Add support for coverity static analysis scan.
http://www.coverity.com
Samuel Martin [Fri, 2 May 2014 12:24:58 +0000 (14:24 +0200)]
Subject: [PATCH] cmake: set the project language
By default, CMake sets C and C++ as languages used by the project.
This makes the configuration failed if no C++ compiler is found.
Since libwesockets in written in pure C, no C++, there is no reason to
disable it when the toolchain has no C++ support.
This patch just make the CMake code reflecting the real status of the
project with regard to the languages used.
Signed-off-by: Samuel Martin <s.martin49@gmail.com>
Signed-off-by: Christoph Muellner <christoph.muellner@theobroma-systems.com>
=?UTF-8?q?Joakim=20S=C3=B6derberg?= [Wed, 26 Nov 2014 22:55:25 +0000 (23:55 +0100)]
Subject: [PATCH] Add appveyor CI support for Windows.
Christoph Muellner [Wed, 26 Nov 2014 17:16:25 +0000 (18:16 +0100)]
Subject: [PATCH] Adding lws_config.h to list of installed headers.
The lws_config.h is generated based on configuration
options for the build process. In order to write
applications which compile code depending of the
presence of a feature (like the test-server does)
this header file needs to be installed.
Signed-off-by: Christoph Muellner <christoph.muellner@theobroma-systems.com>
Andy Green [Wed, 26 Nov 2014 06:38:04 +0000 (14:38 +0800)]
remove duplicate const
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Wed, 26 Nov 2014 06:36:17 +0000 (14:36 +0800)]
test echo initialize listen port
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Wed, 26 Nov 2014 06:29:03 +0000 (14:29 +0800)]
move bind passphrase out of LWS_NO_SERVER
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Wed, 26 Nov 2014 04:04:29 +0000 (12:04 +0800)]
clean test server a bit
Signed-off-by: Andy Green <andy.green@linaro.org>
Joakim Soderberg [Tue, 25 Nov 2014 17:23:34 +0000 (01:23 +0800)]
Add libev dependecny
Joakim Soderberg [Tue, 25 Nov 2014 17:23:13 +0000 (01:23 +0800)]
Remove lcov depdency
Joakim Soderberg [Tue, 25 Nov 2014 17:22:50 +0000 (01:22 +0800)]
CLang gives an error on -O4
clang: error: -O4 is equivalent to -O3
Joakim Soderberg [Tue, 25 Nov 2014 15:33:47 +0000 (16:33 +0100)]
Added travis support
Roger A. Light [Tue, 3 Jun 2014 00:35:00 +0000 (01:35 +0100)]
Subject: [PATCH] SSL: Disable support for SSLv2 and SSLv3.
Joakim Soderberg [Mon, 24 Nov 2014 15:03:19 +0000 (16:03 +0100)]
Subject: [PATCH] Enable usage of ancient OpenSSL.
Yes people should be upgrading their OpenSSL, but there are still old versions without Heartbleed out there being used...
Joakim Soderberg [Tue, 14 Oct 2014 13:24:31 +0000 (15:24 +0200)]
Subject: [PATCH] BUGFIX: Failed to get proper output dir for test-server
When creating the directory where to put the files needed by the test-server CMake would fail because it tried to create the directory /../share/libwebsockets-test-server, which is not possible. This happens since the TARGET_FILE_DIR for the test-server is not fetched properly.
Also mentioned in this trac ticket:
http://libwebsockets.org/trac/libwebsockets/ticket/84
Andy Green [Thu, 20 Nov 2014 04:10:40 +0000 (12:10 +0800)]
ssl fix client and server passphrase handling
again from "linedot" at
https://github.com/warmcat/libwebsockets/issues/152#issuecomment-
63647996
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Tue, 18 Nov 2014 10:25:24 +0000 (18:25 +0800)]
android64 make bzero def conditional
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Tue, 18 Nov 2014 01:28:35 +0000 (09:28 +0800)]
test-echo: enable for ssl cert serving and verification
Andy Green [Tue, 18 Nov 2014 01:28:06 +0000 (09:28 +0800)]
ssl: improve client error message on server cert probs
Andy Green [Mon, 17 Nov 2014 23:53:20 +0000 (07:53 +0800)]
ssl also allow passphrase management for server
Adapted from idea + diff provided by "linedot"
https://github.com/warmcat/libwebsockets/issues/152#issuecomment-
63364869
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Thu, 13 Nov 2014 23:21:02 +0000 (07:21 +0800)]
return_http_staus fix http2 defeating body addition
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Sun, 9 Nov 2014 04:05:29 +0000 (12:05 +0800)]
readme tag key
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Sat, 8 Nov 2014 03:18:47 +0000 (11:18 +0800)]
lws_union_transition
Signed-off-by: Andy Green <andy.green@linaro.org>
Andrew Canaday [Fri, 7 Nov 2014 20:28:35 +0000 (15:28 -0500)]
Be sure to invoke *lws_free_header_table*:
* Just prior to freeing a session
* When allocating a new header table
This prevents some memory leaks we've found.
Andrew Canaday [Fri, 7 Nov 2014 03:21:09 +0000 (11:21 +0800)]
Don't free wsi->u.hdr.ah except through lws_free_header_table (exception: server.c frees 'ah' after copying the header pointer and transitioning the union state).
Andrew Canaday [Fri, 7 Nov 2014 03:20:59 +0000 (11:20 +0800)]
Adding header table free function to make sure we free cleanly everywhere.
Emerson Clarke [Thu, 6 Nov 2014 15:06:01 +0000 (23:06 +0800)]
plat win add ibterface to sa
Andy Green [Wed, 5 Nov 2014 07:35:05 +0000 (15:35 +0800)]
ssl CYASSL doesnt have new api
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Wed, 5 Nov 2014 07:32:58 +0000 (15:32 +0800)]
clean http2 passphrase code
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Wed, 29 Oct 2014 01:39:08 +0000 (09:39 +0800)]
http2 window update
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Sat, 1 Nov 2014 00:41:02 +0000 (08:41 +0800)]
clean remove debug spew outside http2
Found by Drew Noakes at
https://github.com/warmcat/libwebsockets/issues/190
Signed-off-by: Andy Green <andy.green@linaro.org>
kulwik [Thu, 30 Oct 2014 18:26:14 +0000 (18:26 +0000)]
Subject: [PATCH] ssl fix self-singed certificate acceptation
Rene Jager [Tue, 28 Oct 2014 22:27:20 +0000 (23:27 +0100)]
Subject: [PATCH] fixes for handling multiple protocols in handshake
Andy Green [Mon, 27 Oct 2014 08:46:44 +0000 (16:46 +0800)]
http2 padding and ping to autopong
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Mon, 27 Oct 2014 03:38:03 +0000 (11:38 +0800)]
openssl update deprecated remove_state api
As suggested by svetlin-mladenov here
https://github.com/warmcat/libwebsockets/issues/186
Signed-off-by: Andy Green <andy.green@linaro.org>
Drew Noakes [Thu, 23 Oct 2014 14:34:26 +0000 (15:34 +0100)]
Subject: [PATCH] Fix minor typos in code documentation
Andy Green [Wed, 22 Oct 2014 07:37:28 +0000 (15:37 +0800)]
http2 alpn npn pollout
This adds npn / alpn support if your openssl can handle it.
Then, browsers that understand alpn will by default
negotiate http/1.1 and work as normal.
Clients that understand http2.0 can negotiate h2-14 and
use the basic but working http2.0 support automatically
Signed-off-by: Andy Green <andy.green@linaro.org>
Marek Kochanowicz [Mon, 13 Oct 2014 05:32:32 +0000 (07:32 +0200)]
Subject: [PATCH] Initialize openssl during client initialization.
Andy Green [Sat, 18 Oct 2014 23:36:20 +0000 (07:36 +0800)]
http2 dont use incoming END_STREAM when sending headers
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Sat, 18 Oct 2014 10:52:39 +0000 (18:52 +0800)]
add newline on libwebsockets.c for ancient compilers
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Sat, 18 Oct 2014 10:54:04 +0000 (18:54 +0800)]
http2 working nghttp fetch multi files completely
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Sat, 18 Oct 2014 04:23:05 +0000 (12:23 +0800)]
http2 track content length add END_STREAM
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Fri, 17 Oct 2014 00:38:44 +0000 (08:38 +0800)]
http2 handle flags
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Fri, 17 Oct 2014 00:47:51 +0000 (08:47 +0800)]
ssl clean recent external CTX patch so doesnt break build
Signed-off-by: Andy Green <andy.green@linaro.org>
joseph.urciuoli [Thu, 16 Oct 2014 00:53:19 +0000 (08:53 +0800)]
ssl allow externally managed SSL_CTX
Signed-off-by: joseph.urciuoli <trac90@UNKNOWN.org>
Andy Green [Thu, 16 Oct 2014 00:23:46 +0000 (08:23 +0800)]
trac 89 add flag on fatal send fail to use simple close
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Sun, 12 Oct 2014 06:31:47 +0000 (14:31 +0800)]
http2 able to send test.html to nghttp2
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Sun, 12 Oct 2014 00:38:16 +0000 (08:38 +0800)]
http2 hpack basic decode ok including huff
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Thu, 9 Oct 2014 08:57:47 +0000 (16:57 +0800)]
http2 add hpack decode support
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Thu, 9 Oct 2014 22:13:40 +0000 (06:13 +0800)]
fix return_http_status adaptation for http2
Signed-off-by: Andy Green <andy.green@linaro.org>
Christian Schüldt [Thu, 9 Oct 2014 08:58:24 +0000 (16:58 +0800)]
ssl renew timeout while post keeps coming
Signed-off-by: Christian Schüldt <crilla@kth.se>
Christian Schüldt [Thu, 9 Oct 2014 00:37:12 +0000 (08:37 +0800)]
ssl fix service problem in MORE_SERVICE case
Signed-off-by: Christian Schüldt <crilla@kth.se>
Andy Green [Thu, 9 Oct 2014 00:29:22 +0000 (08:29 +0800)]
ssl optimize poll when buffered ssl read data
Signed-off-by: Andy Green <andy.green@linaro.org>