Andy Green
b709d50f8f
coverity: mark false positive
...
Coverity doesn't understand the state relationship means that ssi will only
be used to create the proxy-side SS representing the remote client SS,
which happens as the first command in the state flow.
Mark the call up to disable the false error report.
2022-01-28 10:20:29 +00:00
Andy Green
1b77c2ff4c
coverity: change ss handle priv style
...
Coverity is able to misunderstand &h[1] to be a dereference of h, when it
is just (h + 1).
Adapt places where we use this style to get a pointer to the SS priv data
to use (h + 1) so we don't have to see any more of coverity's confusion.
2022-01-28 08:59:52 +00:00
Andy Green
310c8baa81
logs: lock log context refcount changes
...
Enabling the locking requires -DLWS_MAX_SMP=2 or more.
2022-01-27 14:31:29 +00:00
Andy Green
f99bf7748c
logs: openssl session: improve detection of INFO enabled
...
https://github.com/warmcat/libwebsockets/issues/2540
2022-01-27 14:31:10 +00:00
yogpstop
637ed905af
http: lws_add_http_header_by_name: add colon if needed
2022-01-27 14:30:12 +00:00
Andy Green
91f0b3bc0f
sort-dns: fix scope comparison
...
https://github.com/warmcat/libwebsockets/issues/2537
2022-01-16 13:32:51 +00:00
Andy Green
a352b9bf20
http: access_log: fix nwsi check
...
h2 logging often lacked the IP as it checked the af on the sa46_peer of the
child stream when it meant to check the nwsi one.
2022-01-16 13:32:30 +00:00
Andy Green
10a34fc43b
coverity fixes
2022-01-16 13:32:09 +00:00
Ferenc Gerlits
d90361b771
cmake: fix compilation with OpenSSL subproject
...
https://github.com/warmcat/libwebsockets/pull/2535
2022-01-13 16:06:46 +00:00
Andy Green
0d9acf7a31
http: redirect: keep ssl options at redirect
2022-01-04 16:00:07 +00:00
Andy Green
f2e43272a7
esp32: update against Dec 21 idf
...
Freertos in idf has moved around a bit.
2022-01-04 15:59:50 +00:00
chenzhongaaron
9cd7438259
qnx: toolchain file and adaptations
...
https://github.com/warmcat/libwebsockets/issues/2527
2022-01-04 15:58:41 +00:00
Paul Lee
141ebf373c
service: make sure to sleep if nothing to do
...
https://github.com/warmcat/libwebsockets/issues/2524
2021-12-14 08:10:48 +00:00
chilL1n
7aaa87766d
docs: lws_service_tsi
2021-12-14 08:10:38 +00:00
Vitaliy Orazov
e529720fc1
http: proxying: allow for large headers
...
set the buffer size (rpath) for header processing during
proxying equal to the value in max_http_header_data
2021-12-14 08:10:25 +00:00
Andy Green
91da9e30c7
cancel pipe: mark close when wsi is close
2021-12-14 08:09:25 +00:00
DerKleinePunk
0bc5b58ee3
http: cookie_get
...
The loop check shouldn't care about bl any more, since we snipped bl from n
already.
2021-12-02 09:46:46 +00:00
Andy Green
122cf591a3
docs: decruft README.coding
2021-12-02 09:26:30 +00:00
Vitaliy Orazov
0dc0f92f29
http proxy: support PUT, PATCH and DELETE methods
2021-11-29 15:26:04 +00:00
Andy Green
741cf67b7f
windows: mingw file type is int (v2)
2021-11-22 17:23:12 +00:00
Daniel
c295f8014a
extpoll: make sure DEL_POLL_FD only coming once
...
https://github.com/warmcat/libwebsockets/issues/2500
2021-11-22 15:44:23 +00:00
Andy Green
d42a7900d6
ws: client: fail server link if masked
2021-11-22 15:42:14 +00:00
Chunho Lee
c182871358
mqtt: always init wildcard and shadow
2021-11-22 15:41:37 +00:00
calvin2021y
b0b7fff957
android: fix extra warnings on android-resolv
2021-11-22 15:40:07 +00:00
Andy Green
eba4f8cfb8
http: remove stray debug log
2021-11-22 15:39:42 +00:00
Andy Green
bc83a57207
h2: post: do not try to bind origin for files
2021-11-18 08:06:32 +00:00
Andy Green
121dd5e8ee
ss: revert make ss timeout handle underlying wsi gone
2021-11-09 09:54:08 +00:00
Andy Green
3ef446f27c
freertos-service: remove cruft
...
This can't be reached currently, so remove it and simplify the setting of c
to the exact equivalent.
2021-11-09 09:29:00 +00:00
Andy Green
b45dfcb81e
windows: mingw file type is int
2021-11-09 09:28:37 +00:00
Yichen Gu
cab34801ea
wsimux: immortal: only process immortality once per stream
...
We can call mark immortal multiple times for a child stream, make sure it
is only processed (and increments the nwsi refcount) the once.
2021-11-09 09:28:26 +00:00
Andy Green
f8a21fec22
adopt: coverity: move vh deref until after pointless check
2021-11-09 09:27:41 +00:00
Andy Green
3e1a1a443d
coverity: client_reset: no longer any way to get NULL *pwsi
...
Coverity belatedly noticed that client_reset no longer changes *pwsi
2021-11-08 11:08:45 +00:00
Andy Green
f9fc45bd98
sspc: proxy: coverity: handle unknown metadata name
2021-11-08 11:05:28 +00:00
Andy Green
1db45d17df
h2: coverity: check for OOM on dynamic table alloc
...
It can fail, we should check it.
2021-11-08 11:05:28 +00:00
Andy Green
b415f59bd2
ss-deserialize: add pointless h NULL check
...
h cannot be NULL since it's set by address offset earlier.
Help coverity understand that.
2021-11-08 11:05:28 +00:00
Andy Green
11ba0b713b
adopt: coverity: add pointless vh NULL check
...
The wsi is always created on a valid vhost. Add a needless NULL check on
it to satisfy coverity.
2021-11-08 11:05:28 +00:00
Andy Green
b0cd8f6703
ss-h1: coverity: add needless header NULL check
...
Coverity does not understand that once we checked that the header has
a non-zero length, the associated pointer can never be NULL. Add a
pointless check to make it happy.
2021-11-08 11:05:28 +00:00
Andy Green
6e9c25d1f7
mbedtls-x509: coverity: remove needless check
...
ip can't be NULL, it's set to the address of another object.
2021-11-08 11:05:28 +00:00
Andy Green
a00703f500
unix-sockets: NOP for coverity
...
continue here makes no difference than using break, but continue gets us a
pointless complaint "statement continue does not have any effect" and break
does not.
2021-11-08 11:05:28 +00:00
Andy Green
39380ffbac
client: connect: confirm we have a protocol
...
Coverity gets antsy that we were checking wsi->a.protocol for NULL earlier
then start using it... explicitly bail if it's NULL before we start using
it.
2021-11-08 11:05:28 +00:00
Andy Green
57c5a0da55
jit-trust: SAN_RFC822_NAME needs other_name union member
...
->san is a union, in this case we set the type to indicate we use
SAN_OTHER_NAME member, but set the unstructured_name union member, that is
smaller.
This doesn't cause any problem, since the union has space for it. But
Coverity noticed, it is wrong, so fix it.
2021-11-08 11:05:28 +00:00
Andy Green
240cd55ef6
jit-trust: show coverity we handle NULL attribute source
...
Coverity doesn't understand that since we already handled
akid.keyIdentifier.MBEDTLS_PRIVATE(len) being zero, we don't need to
check for akid.keyIdentifier.MBEDTLS_PRIVATE(p) being NULL.
So explicitly check it, even though it is a NOP.
2021-11-08 11:05:28 +00:00
Andy Green
7882a6dc13
jit-trust: clean after failed mbedtls_x509_get_name
...
mbedtls_x509_get_name() does not clean up properly after itself in the case
of OOM on multi-segment name. We have to add extra handling and cleaning.
2021-11-08 11:05:24 +00:00
PW Hu
433ad32216
docs: audit api return information
...
https://github.com/warmcat/libwebsockets/issues/2481
2021-11-08 10:34:18 +00:00
Andy Green
c42c2adba9
retry: handle empty retry table
2021-11-08 10:33:12 +00:00
Jakov Smolić
897eb02431
plugins: sshd: eg musl needs sys/types if available
...
https://github.com/warmcat/libwebsockets/issues/2477
2021-11-04 07:16:18 +00:00
Hannes Achleitner
972f154a62
examples-lowlevel: ws client: add -n to README table
2021-11-02 07:25:24 +00:00
Andy Green
0c8dbadc1f
examples-lowlevel: ws-server: pvo for WITH_PLUGINS
2021-11-02 07:25:05 +00:00
Andy Green
4935fe9e1e
openssl: remove lws_ssl_get_error_string as cruft
...
It's not exported, it seems nothing wants it any more
2021-11-02 07:23:28 +00:00
Andy Green
c0f324fce2
esp32-c3dev: remove stray ssd1306 copy
2021-11-02 07:21:41 +00:00