aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-04-29Add METADATA to libwebsockets: contains LGPL=RESTRICTEDandroid10-gsiBob Badour
Bug: 68860345 Bug: 69058154 Bug: 151953481 Test: no code changes Change-Id: I722b958601ed78344a29bccfe666c32a9e57636b
2020-04-08created OWNERS file for libwebsocketsplatform-tools-30.0.1platform-tools-30.0.0Steve Kim
Bug: 152085202 Test: none Change-Id: Ia7bc71c36dd0984f04bd9cc7cab9a9487f6cc53c
2020-04-08libsockets header generation resolves dependency automaticallySteve Kim
Bug: 152085202 Test: removed out, see if the dependency build correctly Change-Id: Ib45db57357249186b77168cbe3739b34bf01a1e4
2020-04-08build libsockets into a static library with SoongSteve Kim
Bug: 152085202 Test: built, tested with a minimal ws-proxy example Change-Id: Ic88709fbfa640e0ab9cbd4fcd4cf58e680816cf1
2020-04-08Merge remote-tracking branch 'aosp/upstream-v4.0-stable'Steve Kim
Test: none Change-Id: I58c929ba2fd32f091bb5ec766315af17255bb37c
2020-03-27Initial empty repositoryInna Palant
2020-03-26h1: handle LRS_FLUSHING_BEFORE_CLOSE at ops readupstream-v4.0-stableAndy Green
read has a tight leash on the states it's happy to turn up there, it's good to be like that but it turns out LRS_FLUSHING_BEFORE_CLOSE should be whitelisted since it can happen under some transient conditions and is valid. https://github.com/warmcat/libwebsockets/issues/1872
2020-03-23http server: Using default filename also for subdirectories.Karl Rupp
If a user sets a default filename for a http mount (.def in lws_http_mount), eg. 'default.html', then a GET request for '/' correctly forwards to '/default.html'. However, without this commit the default filename is not taken into account for subdirectories. Thus, GET subdir/ will forward to 'subdir/index.html' instead of the expected 'subdir/default.html' This commit changes the behavior such that the user-provided default filename is also used for subdirectories.
2020-03-21jws: lws_gencrypto_jws_alg_to_definition needs sentinelAkira Tsukamoto
Otherwise segfault when end of array reached.
2020-03-20wolfssl: build fixesAndy Green
2020-03-19lws_set_wsi_user: allow setting to override existing internal allocationAndy Green
2020-03-19lws_dir: uv: clean up temp loop on failAndy Green
2020-03-19ss: reduce logging of unknown streamtypesAndy Green
There are a few automatic things that look for streamtypes that may or may not exist now - captive_portal_detect - fetch_policy - api_amazon_com_auth logging them as notice every startup is pretty intrusive, change to info.
2020-03-19mbedtls: support older versions without net_sockets.hAndy Green
2020-03-19example: convert ws ping example to use validityAndy Green
2020-03-16ss: use system trust store if none given in policyAndy Green
For general OpenSSL case, we leave connection validity to system trust store bundle to decide; even for mbedtls it may have been passed a bundle externally and we don't want to have to list the x.509 stack explicitly for a server we don't have any control over. Instead of erroring out, allow the case no trust store is specified, just use vhost[0] and let the system trust store decide if it likes the server's cert or not. No ABI change.
2020-03-16ss: support metadata string expansion in endpoint stringAndy Green
This lets you set metadata symbols exposed by the streamtype policy into the endpoint address. No ABI change
2020-03-14lws_spa: avoid reading past tableAndy Green
Didn't check the lenghts of the NUL-terminated header table properly. https://github.com/warmcat/libwebsockets/issues/1859
2020-03-10v4.0.1Andy Green
2020-03-10build: release mode compile fixesAndy Green
2020-03-07client: unify post tls accept handlingAndy Green
2020-03-07README: update changlog link and include contentAndy Green
2020-03-06minilex: fix ROLE_WS=0 caseAndy Green
2020-03-06v4.0.0Andy Green
2020-03-06fallback: dont check after first ssl accept attemptAndy Green
2020-03-06logs: don't print junk if no timestampAndy Green
2020-03-06mux: disable already optimizationAndy Green
This leads to problems at the moment with sticky mux.requested_POLLOUT causing writeable to not be sent. Remove it and always set writeable on parents for now.
2020-03-06lws logo: update minimal examplesAndy Green
2020-03-05fsmount: delete session dir on mountAndy Green
2020-03-05clean: reduce some log levelAndy Green
2020-03-04ws: make sure we understand frame finished when buflist_out flushedTerry Zhang
When lws_write as many bytes as user can until function returns not all sent, the next user`s lws_write call will write wrong frame to the other end. This will cause connection be close by the other side.
2020-03-04freertos: forward-port lwip version adaptationsAndy Green
2020-03-04client: make sure all paths after connect go via tls if setAndy Green
2020-03-04ss: mqtt: add will and other sundries to policyAndy Green
Replace the hacked-in constants with policy entries for sundry MQTT features, and add to the policy readme.
2020-03-04client: secure streamsAndy Green
Secure Streams is an optional layer on top of lws that separates policy like endpoint selection and tls cert validation into a device JSON policy document. Code that wants to open a client connection just specifies a streamtype name, and no longer deals with details like the endpoint, the protocol (!) or anything else other than payloads and optionally generic metadata; the JSON policy contains all the details for each streamtype. h1, h2, ws and mqtt client connections are supported. Logical secure streams outlive any particular connection and supports "nailed-up" connectivity regardless of underlying connection stability.
2020-03-04client: MQTTSakthi Kannan
Adds client support for MQTT QoS0 and QoS1, compatible with AWS IoT Supports stream binding where independent client connections to the same endpoint can mux on a single tcp + tls connection with topic routing managed internally.
2020-03-04cleaning: windowsAndy Green
2020-03-04event lib: fix LWS_WITH_GLIB typoKarl Vogel
2020-03-04overview: updateAndy Green
2020-03-04lws_struct: store which toplevel schema matchedAndy Green
We can give the lws_struct parser a table of toplevel schemas, record which one we chose so the caller can know how to interpret the result
2020-03-04lws_struct sqlite3Andy Green
Continue with lws_struct, add sqlite support for one level of lws_dll2_t lists of structs serialization and deserialization, plus the matching api-test.
2020-03-04rtos diet: http: remove headers at buildtime according to configAndy Green
Headers related to ws or h2 are now elided if the ws or h2 role is not enabled for build. In addition, a new build-time option LWS_WITH_HTTP_UNCOMMON_HEADERS on by default allows removal of less-common http headers to shrink the parser footprint. Minilex is adapted to produce 8 different versions of the lex table, chosen at build-time according to which headers are included in the build. If you don't need the unusual headers, or aren't using h2 or ws, this chops down the size of the ah and the rodata needed to hold the parsing table from 87 strings / pointers to 49, and the parsing table from 1177 to 696 bytes.
2020-03-04rtos diet: make basic auth support a config option on by defaultAndy Green
Remove wrapper content for < tls v1.2
2020-03-04rtos diet: make raw_file role optionalAndy Green
2020-03-04rtos diet: mbedtls: wrapper: delete unused functionsAndy Green
Surprisingly -fdata-sections -ffunction-sections does not remove any string literals and __func__ implicit .rodata generated by the removed function's compilation. That means potentially considerable deadweight is in the image even if the function is removed at linktime.
2020-03-04jose: copy typ into jose object without testing for JWTAndy Green
2020-03-04lws_set_wsi_user: allow setting if protocol pss size zeroAndy Green
2020-03-04socks5: add support to raw sktAndy Green
2020-03-04README-test-apps: fix crufty reference to test-server-v2.0.cAndy Green
2020-03-04malloc_trim: move out of unix plat and into lwswsAndy Green
https://github.com/warmcat/libwebsockets/issues/1849