Commit graph

1060 commits

Author SHA1 Message Date
Andy Green
f1e52361c5 coverity travis add key
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-11-30 11:24:01 +08:00
=?UTF-8?q?Joakim=20S=C3=B6derberg?=
6b6f1e188d Subject: [PATCH] Add support for coverity static analysis scan.
http://www.coverity.com
2014-11-30 10:58:52 +08:00
Samuel Martin
a11a28278f 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>
2014-11-27 09:14:31 +08:00
=?UTF-8?q?Joakim=20S=C3=B6derberg?=
2a5ec139ef Subject: [PATCH] Add appveyor CI support for Windows. 2014-11-27 07:45:42 +08:00
Christoph Muellner
b921e521cd 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>
2014-11-27 06:25:16 +08:00
Andy Green
904b07d08c remove duplicate const
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-11-26 14:38:04 +08:00
Andy Green
745a69e7ce test echo initialize listen port
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-11-26 14:36:17 +08:00
Andy Green
70b543f7c2 move bind passphrase out of LWS_NO_SERVER
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-11-26 14:29:03 +08:00
Andy Green
ba4e415006 clean test server a bit
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-11-26 12:04:29 +08:00
Joakim Soderberg
ced66021f4 Add libev dependecny 2014-11-26 01:23:34 +08:00
Joakim Soderberg
4eb182f873 Remove lcov depdency 2014-11-26 01:23:13 +08:00
Joakim Soderberg
1632c9a894 CLang gives an error on -O4
clang: error: -O4 is equivalent to -O3
2014-11-26 01:22:50 +08:00
Joakim Soderberg
3476e0ce10 Added travis support 2014-11-26 01:22:37 +08:00
Roger A. Light
d893d96f8f Subject: [PATCH] SSL: Disable support for SSLv2 and SSLv3. 2014-11-25 05:55:41 +08:00
Joakim Soderberg
1b97ec2efa 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...
2014-11-25 05:53:31 +08:00
Joakim Soderberg
bf3e8a998e 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
2014-11-25 05:49:11 +08:00
Andy Green
4076a2c8bc 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>
2014-11-20 12:10:40 +08:00
Andy Green
e5ea1f91d3 android64 make bzero def conditional
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-11-18 18:25:24 +08:00
Andy Green
752963da00 test-echo: enable for ssl cert serving and verification 2014-11-18 09:28:35 +08:00
Andy Green
77c209c412 ssl: improve client error message on server cert probs 2014-11-18 09:28:06 +08:00
Andy Green
50000a1ac5 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>
2014-11-18 07:53:20 +08:00
Andy Green
3adeca8eca return_http_staus fix http2 defeating body addition
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-11-14 07:21:02 +08:00
Andy Green
c983baf040 readme tag key
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-11-09 12:05:29 +08:00
Andy Green
44c116172d lws_union_transition
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-11-08 11:18:47 +08:00
Andrew Canaday
03f0ceaf97 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.
2014-11-08 09:02:22 +08:00
Andrew Canaday
a19d485b80 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). 2014-11-07 11:25:36 +08:00
Andrew Canaday
377188189a Adding header table free function to make sure we free cleanly everywhere. 2014-11-07 11:20:59 +08:00
Emerson Clarke
32ec9d0299 plat win add ibterface to sa 2014-11-06 23:06:01 +08:00
Andy Green
fce6bde622 ssl CYASSL doesnt have new api
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-11-05 15:35:05 +08:00
Andy Green
5db6c0fa01 clean http2 passphrase code
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-11-05 15:32:58 +08:00
Andy Green
97ee57fa35 http2 window update
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-11-02 06:54:09 +08:00
Andy Green
7f2878a503 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>
2014-11-01 08:41:02 +08:00
kulwik
76fc5fc88d Subject: [PATCH] ssl fix self-singed certificate acceptation 2014-10-31 12:52:48 +08:00
Rene Jager
c0eb2c3e9d Subject: [PATCH] fixes for handling multiple protocols in handshake 2014-10-29 09:39:34 +08:00
Andy Green
bbbf07a834 http2 padding and ping to autopong
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-10-27 16:46:44 +08:00
Andy Green
040465d082 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>
2014-10-27 11:38:03 +08:00
Drew Noakes
efe10b0f42 Subject: [PATCH] Fix minor typos in code documentation 2014-10-23 22:57:05 +08:00
Andy Green
7df53c5550 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>
2014-10-22 15:38:12 +08:00
Marek Kochanowicz
b21122994c Subject: [PATCH] Initialize openssl during client initialization. 2014-10-22 15:37:58 +08:00
Andy Green
1cea5816fa http2 dont use incoming END_STREAM when sending headers
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-10-19 07:36:20 +08:00
Andy Green
260a0fce54 add newline on libwebsockets.c for ancient compilers
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-10-18 18:56:25 +08:00
Andy Green
b0e2e50c75 http2 working nghttp fetch multi files completely
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-10-18 18:54:04 +08:00
Andy Green
200f385716 http2 track content length add END_STREAM
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-10-18 12:23:05 +08:00
Andy Green
91b0589795 http2 handle flags
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-10-17 09:33:16 +08:00
Andy Green
0c51239023 ssl clean recent external CTX patch so doesnt break build
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-10-17 08:47:51 +08:00
joseph.urciuoli
4d9c8fc01a ssl allow externally managed SSL_CTX
Signed-off-by: joseph.urciuoli <trac90@UNKNOWN.org>
2014-10-16 08:53:19 +08:00
Andy Green
1e49918a4f trac 89 add flag on fatal send fail to use simple close
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-10-16 08:23:46 +08:00
Andy Green
917f43ab82 http2 able to send test.html to nghttp2
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-10-12 14:31:47 +08:00
Andy Green
2add6340d5 http2 hpack basic decode ok including huff
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-10-12 08:38:16 +08:00
Andy Green
ecc2e72ca1 http2 add hpack decode support
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-10-10 06:15:02 +08:00