1. 21 Jun, 2018 1 commit
  2. 26 Apr, 2018 1 commit
  3. 13 Apr, 2018 2 commits
  4. 10 Apr, 2018 1 commit
    • Deomid Ryabkov's avatar
      Add mg_url_encode_opt() · e89be2e9
      Deomid Ryabkov authored
      CL: Add `mg_url_encode_opt()` - a parametrized version of `mg_url_encode()`
      
      PUBLISHED_FROM=17fa57a7a5325b51b6e3aef3855eac4e82c35782
      e89be2e9
  5. 03 Apr, 2018 1 commit
  6. 30 Mar, 2018 1 commit
    • Deomid Ryabkov's avatar
      Mongoose net_if and ssl_if refactoring · 3e33e577
      Deomid Ryabkov authored
      A major cleanup, disentangling net_if and ssl_if.
      Pulled a lot of common logic into the core and reduced size of net_if implementations.
      
      CL: Mongoose net_if and ssl_if refactoring
      
      PUBLISHED_FROM=29bd4dcb264a1fd96b3dd164e2d880e1c2c0921e
      3e33e577
  7. 22 Mar, 2018 1 commit
    • Deomid Ryabkov's avatar
      Improve mbuf allocation behavior · 0a90cab4
      Deomid Ryabkov authored
       * Limit total amount of headroom, in absolute terms (`MBUF_SIZE_MAX_HEADROOM`).
       * If unable to allocate with headroom, fall back to allocating the required minimum.
       * For mOS, set default `MBUF_SIZE_MULTIPLIER` to 2 to avoid floating point operations.
         Since max headroom size is now capped to 128 bytes, this will not result in much of a bloat.
      
      PUBLISHED_FROM=11d4fc65a46a805bb7c8960f89a3d0b753c58bb8
      0a90cab4
  8. 18 Feb, 2018 1 commit
  9. 08 Feb, 2018 1 commit
  10. 07 Feb, 2018 1 commit
    • Dmitry Frank's avatar
      Implement mg_http_parse_header2() · b9b20c64
      Dmitry Frank authored
      Which is a replacement of (deprecated) `mg_http_parse_header`, but,
      similarly to `asprintf`, allocates a new buffer if the client-provided
      one is not large enough.
      
      Also use it throughout mongoose code, and thus some header-related
      limitations are removed; in particular,
      https://github.com/cesanta/mongoose/issues/813 is fixed.
      
      CL: Mongoose Web Server: Deprecate `mg_http_parse_header()` and implement `mg_http_parse_header2()` instead, which allocates a new buffer if the client-provided one is not large enough (similarly to `asprintf`).
      CL: Mongoose Web Server: Fix limitations of header value lengths, e.g. when parsing authentication headers such as nonce, etc.
      
      PUBLISHED_FROM=c75b1bbbbdb294ea85075ce69b1368f115fdd1ef
      b9b20c64
  11. 05 Feb, 2018 1 commit
    • Dmitry Frank's avatar
      Remove "mongoose" prefix from includes · c3d9d17e
      Dmitry Frank authored
      In certain files it was necessary to make tests work from public
      mongoose repo, so this commit makes things consistent.
      
      PUBLISHED_FROM=694454d0ff007229c65d524a2a2beaf126420f15
      c3d9d17e
  12. 02 Feb, 2018 2 commits
  13. 01 Feb, 2018 2 commits
    • Dmitry Frank's avatar
      Fix nonce in digest authentication · 47abc641
      Dmitry Frank authored
      CL: Mongoose Web Server: Digest authentication: Fix nonce validity check (expired nonce or nonce from the future did not cause the the check to fail)
      CL: Mongoose Web Server: Digest authentication: Fix nonce request value; it worked before because nonce validity check was broken as well
      CL: Mongoose Web Server: Digest authentication: Add `nonce` argument to `mg_http_create_digest_auth_header()`: clients should use the value received from the server's authentication request.
      
      Resolves https://github.com/cesanta/mongoose/issues/809
      
      PUBLISHED_FROM=5e59f90ed6b2a4311ed6763159da81c2aaf6af4c
      47abc641
    • Dmitry Frank's avatar
      Improve websocket implementation · 7519b2ef
      Dmitry Frank authored
      CL: Mongoose Web Server: Websocket: Respond to Ping with Pong
      CL: Mongoose Web Server: Websocket: Properly close a connection with Close frame (in response to a client's close and when protocol failure is detected)
      CL: Mongoose Web Server: Websocket: Fix support of fragmented messages
      CL: Mongoose Web Server: Websocket: Add support for control frames interjected in the middle of a fragmented message
      
      PUBLISHED_FROM=e2b3794aaacc64633540c493194cccc62afa2077
      7519b2ef
  14. 29 Jan, 2018 1 commit
  15. 27 Jan, 2018 1 commit
    • Бобби's avatar
      Fix OOB access in mg_match_prefix_n() · 961fb96b
      Бобби authored
      CL: Fix OOB access in mg_match_prefix_n().
          Made mg_match_prefix_n() return non-negative result.
      
      PUBLISHED_FROM=611454df6a6c55bfa7ddf05e7d268a86fa0457a8
      961fb96b
  16. 12 Jan, 2018 1 commit
  17. 04 Jan, 2018 1 commit
  18. 17 Dec, 2017 1 commit
  19. 14 Dec, 2017 1 commit
  20. 04 Dec, 2017 1 commit
    • Dmitry Frank's avatar
      Improve docs · be63c0dc
      Dmitry Frank authored
      PUBLISHED_FROM=3b75fd8247ba9028e0ef0c3e211e7c1a80013951
      be63c0dc
  21. 28 Nov, 2017 2 commits
  22. 24 Nov, 2017 1 commit
  23. 23 Nov, 2017 1 commit
  24. 08 Nov, 2017 1 commit
  25. 31 Oct, 2017 1 commit
  26. 24 Oct, 2017 1 commit
  27. 19 Oct, 2017 2 commits
  28. 18 Oct, 2017 1 commit
  29. 13 Sep, 2017 2 commits
  30. 12 Sep, 2017 1 commit
  31. 06 Sep, 2017 1 commit
  32. 31 Aug, 2017 1 commit
  33. 30 Aug, 2017 2 commits
    • Deomid Ryabkov's avatar
      CC3220: GPIO, sys_config and mgos_init support · 20230095
      Deomid Ryabkov authored
      ```
      Using port /dev/ttyACM0
      [Aug 30 19:33:02.105]
      [Aug 30 19:33:02.114] cc32xx_init          c_no_libs 1.0 (20170830-163205/mos8@6587ffd6+)
      [Aug 30 19:33:02.123] cc32xx_init          Mongoose OS 2017083016 (20170830-163205/mos8@6587ffd6+)
      [Aug 30 19:33:02.130] cc32xx_init          RAM: 253588 total, 240044 free
      [Aug 30 19:33:04.430] cc32xx_start_nwp     NWP v3.4.0.0 started, host driver v2.0.1.19
      [Aug 30 19:33:04.437] mgos_vfs_dev_open    slfs_container ({"prefix": "spiffs.img.0"}) -> 20005a64
      [Aug 30 19:33:04.450] cc32xx_vfs_dev_slfs_ 20005a64 spiffs.img.0.0 262144 0xfffffffffffffffe
      [Aug 30 19:33:04.457] mgos_vfs_mount       Mount SPIFFS @ / (dev 20005a64, opts ) -> 20005a74
      [Aug 30 19:33:06.102] mgos_vfs_mount       /: size 233681, used: 4016, free: 229665
      [Aug 30 19:33:06.108] mgos_vfs_mount       Mount SLFS @ /slfs (dev 0, opts ) -> 20005ed4
      [Aug 30 19:33:06.114] mgos_vfs_mount       /slfs: size 0, used: 0, free: 0
      [Aug 30 19:33:06.718] mgos_sys_config_init MAC: 04A316459442
      [Aug 30 19:33:06.720] mgos_sys_config_init WDT: 30 seconds
      [Aug 30 19:33:06.724] Hello, world!
      [Aug 30 19:33:06.728] mgos_init            Init done, RAM: 253588 total, 236544 free, 235864 min free
      ```
      
      PUBLISHED_FROM=7e83c9ddcc642bd324a40e125d6636ece824fb18
      20230095
    • Deomid Ryabkov's avatar
      CC3220 FS support · c7bea65a
      Deomid Ryabkov authored
      For now, we only support SPIFFS-in-a-box, same as CC3200.
      On CC3200SF it should be possible to have SPIFFS on built-in flash, but that is left for later.
      
      PUBLISHED_FROM=dee337c8cd8ed288c22abe9960eef81e6e90cc4a
      c7bea65a