Skip to content
  1. Jun 08, 2017
    • Daniel Stenberg's avatar
      expire: remove Curl_expire_latest() · 7fffe97b
      Daniel Stenberg authored
      With the introduction of expire IDs and the fact that existing timers
      can be removed now and thus never expire, the concept with adding a
      "latest" timer is not working anymore as it risks to not expire at all.
      
      So, to be certain the timers actually are in line and will expire, the
      plain Curl_expire() needs to be used. The _latest() function was added
      as a sort of shortcut in the past that's quite simply not necessary
      anymore.
      
      Follow-up to 31b39c40
      
      Reported-by: Paul Harris
      
      Closes #1555
      7fffe97b
  2. Jun 07, 2017
  3. Jun 05, 2017
    • Daniel Stenberg's avatar
      test1521: test *all* curl_easy_setopt options · cccac4fb
      Daniel Stenberg authored
      mk-lib1521.pl generates a test program (lib1521.c) that calls
      curl_easy_setopt() for every known option with a few typical values to
      make sure they work (ignoring the return codes).
      
      Some small changes were necessary to avoid asserts and NULL accesses
      when doing this.
      
      The perl script needs to be manually rerun when we add new options.
      
      Closes #1543
      cccac4fb
  4. Jun 04, 2017
    • Marcel Raad's avatar
      curl_ntlm_core: use Curl_raw_toupper instead of toupper · 79604427
      Marcel Raad authored
      This was the only remaining use of toupper in the entire source code.
      
      Suggested-by: Daniel Stenberg
      79604427
    • Marcel Raad's avatar
      curl_ntlm_core: pass unsigned char to toupper · 892c5e4c
      Marcel Raad authored
      Otherwise, clang on Cygwin64 warns:
      curl_ntlm_core.c:525:35: error: array subscript is of type 'char'
      [-Werror,-Wchar-subscripts]
          dest[2 * i] = (unsigned char)(toupper(src[i]));
                                        ^~~~~~~~~~~~~~~
      /usr/include/ctype.h:152:25: note: expanded from macro 'toupper'
            (void) __CTYPE_PTR[__x]; (toupper) (__x);})
                              ^~~~
      892c5e4c
  5. Jun 03, 2017
  6. Jun 02, 2017
  7. May 30, 2017
    • Daniel Stenberg's avatar
      transfer: init the infilesize from the postfields... · e54db1b0
      Daniel Stenberg authored
      ... with a strlen() if no size was set, and do this in the pretransfer
      function so that the info is set early. Otherwise, the default strlen()
      done on the POSTFIELDS data never sets state.infilesize.
      
      Reported-by: Vincas Razma
      Bug: #1294
      e54db1b0
  8. May 29, 2017
    • Jay Satiro's avatar
      mbedtls: fix variable shadow warning · 35e9281e
      Jay Satiro authored
      vtls/mbedtls.c:804:69: warning: declaration of 'entropy' shadows a global declaration [-Wshadow]
       CURLcode Curl_mbedtls_random(struct Curl_easy *data, unsigned char *entropy,
                                                                           ^~~~~~~
      35e9281e
  9. May 25, 2017
  10. May 24, 2017
  11. May 23, 2017
  12. May 22, 2017
    • Kamil Dudka's avatar
      memdebug: fix compilation failure · 945919db
      Kamil Dudka authored
      .... caused by a typo in the last commit (fixing issue #1504):
      
      memdebug.c: In function ‘curl_fclose’:
      memdebug.c:444:3: error: implicit declaration of function
      ‘DEBUGDEBUGASSERT’ [-Werror=implicit-function-declaration]
      945919db
    • Daniel Stenberg's avatar
      assert: avoid, use DEBUGASSERT instead! · 8589e1fe
      Daniel Stenberg authored
      ... as it does extra checks to actually work.
      
      Reported-by: jonrumsey at github
      Fixes #1504
      8589e1fe
  13. May 21, 2017
  14. May 20, 2017
  15. May 17, 2017
  16. May 16, 2017
  17. May 15, 2017
  18. May 13, 2017
  19. May 12, 2017
  20. May 11, 2017
  21. May 10, 2017
  22. May 09, 2017
  23. May 08, 2017
    • Jay Satiro's avatar
      rand: treat fake entropy the same regardless of endianness · 1cafede9
      Jay Satiro authored
      When the random seed is purposely made predictable for testing purposes
      by using the CURL_ENTROPY environment variable, process that data in an
      endian agnostic way so the the initial random seed is the same
      regardless of endianness.
      
      - Change Curl_rand to write to a char array instead of int array.
      
      - Add Curl_rand_hex to write random hex characters to a buffer.
      
      Fixes #1315
      Closes #1468
      
      Co-authored-by: Daniel Stenberg
      Reported-by: Michael Kaufmann
      1cafede9
  24. May 07, 2017