1. 15 Aug, 2022 1 commit
    • Stan Hu's avatar
      Make it possible to set SSL verify mode · 71119a71
      Stan Hu authored
      If no SSL certificates are provided, many Redis clients default to
      disabling SSL peer verification. Previously it was a bit cumbersome to
      configure this because the client would either have to reimplement
      `redisCreateSSLContext()` or reach into the internals to set the
      OpenSSL verify mode.
      
      We can improve the SSL API by introducing a
      `redisCreateSSLContextWithOptions()` call that takes into structured
      parameters for SSL initialization. This structure contains a verify
      mode that is used to set the OpenSSL verify mode.
      
      Relates to https://github.com/redis/hiredis/issues/646
      71119a71
  2. 11 Apr, 2021 1 commit
  3. 10 Nov, 2020 1 commit
  4. 18 Oct, 2020 1 commit
  5. 08 Sep, 2020 1 commit
  6. 29 Jul, 2020 1 commit
    • Michael Grunder's avatar
      Move SSL management to a distinct private pointer. (#855) · d8ff7238
      Michael Grunder authored
      We need to allow our users to use redisContext->privdata as context
      for any RESP3 PUSH messages, which means we can't use it for managing
      SSL connections.
      
      Bulletpoints:
      
      * Create a secondary redisContext member for internal use only called
        privctx and rename the redisContextFuncs->free_privdata accordingly.
      
      * Adds a `free_privdata` function pointer so the user can tie allocated
        memory to the lifetime of a redisContext (like they can already do
        with redisAsyncContext)
      
      * Enables SSL tests in .travis.yml
      d8ff7238
  7. 09 Jul, 2020 1 commit
  8. 07 Jun, 2020 1 commit
  9. 30 May, 2020 1 commit
  10. 24 May, 2020 1 commit
  11. 22 May, 2020 1 commit
    • Michael Grunder's avatar
      Allow users to replace allocator and handle OOM everywhere. (#800) · 8e0264cf
      Michael Grunder authored
      * Adds an indirection to every allocation/deallocation to allow users to 
        plug in ones of their choosing (use custom functions, jemalloc, etc).
      
      * Gracefully handle OOM everywhere in hiredis.  This should make it possible
        for users of the library to have more flexibility in how they handle such situations.
      
      * Changes `redisReaderTask->elements` from an `int` to a `long long` to prevent
        a possible overflow when transferring the task elements into a `redisReply`.
      
      * Adds a configurable `max elements` member to `redisReader` that defaults to
        2^32 - 1.  This can be set to "unlimited" by setting the value to zero.
      8e0264cf
  12. 09 Apr, 2020 1 commit
  13. 28 Jan, 2020 1 commit
  14. 25 Nov, 2019 1 commit
  15. 16 Sep, 2019 1 commit
  16. 01 Sep, 2019 1 commit
  17. 29 Aug, 2019 2 commits
  18. 25 Aug, 2019 1 commit
  19. 22 Aug, 2019 1 commit
  20. 13 Aug, 2019 1 commit
  21. 11 Apr, 2019 1 commit
  22. 20 Feb, 2019 6 commits