Octav Zlatior
d4dd69a254
Subject: [PATCH] Fixes occasional segfault in lws_chage_pollfd
...
* so it happens that sometimes lws_change_pollfd is called with
bad or incomplete data structures, mainly the context pointer
obtained from wsi->protocol is null or wsi->position_in_fds_table
is -1; checks have been added to avoid this condition
2014-12-13 12:17:59 +08:00
Andy Green
f48ddd2a55
http2 remove some dead code
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-12-10 10:53:46 +08:00
Andy Green
66ecc2538d
NO_EXTENSION clean out handled var in handle_POLLOUT_event
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-12-10 10:28:46 +08:00
Andy Green
a349367a0b
NO_SERVER_fix cosmetic warning
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-12-10 10:24:33 +08:00
Alejandro Mery
ac3ec39bb1
Subject: [PATCH] Introduce lws_free2() helper to free and re-NULL pointers
...
Signed-off-by: Alejandro Mery <amery@geeks.cl>
2014-12-05 07:27:52 +08:00
Alejandro Mery
6ff28248aa
Subject: [PATCH] Use custom allocator
...
Signed-off-by: Alejandro Mery <amery@geeks.cl>
2014-12-05 07:26:26 +08:00
Alejandro Mery
cdc9717be1
Subject: [PATCH] Add custom allocator support using the realloc() interface
...
Signed-off-by: Alejandro Mery <amery@geeks.cl>
2014-12-05 07:25:24 +08:00
Michael Haberler
49d0ce17d5
Subject: [PATCH] serve_http_file: add feature test macro for API change
...
introduced in 917f43
2014-12-01 21:47:37 +08:00
Andy Green
62fe015455
revert 187
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-12-01 19:28:28 +08:00
Andy Green
0c5f6709a8
coverity 83687 daemonize was not a close problem
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-11-30 13:47:36 +08:00
Andy Green
b03430745b
coverity 83682 base64 decode more dead code
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-11-30 13:39:09 +08:00
Andy Green
28e2ab6a97
coverity 83684 more ways to close and use freed wsi
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-11-30 13:35:24 +08:00
Andy Green
dfa0f9444e
coverity 83685 daemonize put the close in the right place
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-11-30 13:32:27 +08:00
Andy Green
9c8d590f9d
coverity 83686 server close sockfd if failing out
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-11-30 13:30:57 +08:00
Andy Green
a3439032db
win32 does not know uint64_t without stdint.h
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-11-30 13:17:35 +08:00
Andy Green
f38e7860f4
coverity 83656 server check setsockopt return
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-11-30 13:10:26 +08:00
Andy Green
abb48113e7
coverity 83657 plat unix check setsockopt return
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-11-30 13:10:26 +08:00
Andy Green
24109f40ae
coverity 83659 plat unix check fstat return
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-11-30 13:10:26 +08:00
Andy Green
956a08a9c0
coverity 83660 plat unix check fcntl return
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-11-30 13:10:26 +08:00
Andy Green
7ef4b2e1f2
coverity 83661 output check lseek return
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-11-30 13:10:26 +08:00
Andy Green
8ab2b5af8b
coverity 83664 consistently check NULL
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-11-30 13:10:26 +08:00
Andy Green
adc720dfb5
coverity 83665 fail on null buffer
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-11-30 13:10:26 +08:00
Andy Green
cd838506a9
coverity 83666 fail on null buffer
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-11-30 13:10:26 +08:00
Andy Green
c5814fbaa9
coverity 83667 dead code
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-11-30 12:51:47 +08:00
Andy Green
66a5faa633
coverity 83671 dead code
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-11-30 12:48:22 +08:00
Andy Green
4bd1a4d4e0
coverity 83672 dead code
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-11-30 12:47:33 +08:00
Andy Green
f14ea7a906
coverity 83673 deference after NULL check
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-11-30 12:45:39 +08:00
Andy Green
47afcddccf
83674 dereference after NULL check
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-11-30 12:43:51 +08:00
Andy Green
5549998ac3
coverity 83678 unused assignment
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-11-30 12:40:32 +08:00
Andy Green
59800b764e
coverity 83679 default int expansion might bloat byte reassembly
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-11-30 12:37:50 +08:00
Andy Green
74f93d190b
coverity 83680 kill needless semicolons
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-11-30 12:30:36 +08:00
Andy Green
2c8161c9eb
coverity 83681 unused assignment
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-11-30 12:29:04 +08:00
Andy Green
e4d6f1c116
coverity 83670 daemonize can leak lock handle
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-11-30 12:21:40 +08:00
Andy Green
26193fab34
coverity 83684 let parent close if ssl service fails
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-11-30 12:14:23 +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
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
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
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
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