1. 22 May, 2018 2 commits
    • Johannes Schindelin's avatar
      schannel: make CAinfo parsing resilient to CR/LF · aa0f41a5
      Johannes Schindelin authored
      
      
      OpenSSL has supported --cacert for ages, always accepting LF-only line
      endings ("Unix line endings") as well as CR/LF line endings ("Windows
      line endings").
      
      When we introduced support for --cacert also with Secure Channel (or in
      cURL speak: "WinSSL"), we did not take care to support CR/LF line
      endings, too, even if we are much more likely to receive input in that
      form when using Windows.
      
      Let's fix that.
      
      Happily, CryptQueryObject(), the function we use to parse the ca-bundle,
      accepts CR/LF input already, and the trailing LF before the END
      CERTIFICATE marker catches naturally any CR/LF line ending, too. So all
      we need to care about is the BEGIN CERTIFICATE marker. We do not
      actually need to verify here that the line ending is CR/LF. Just
      checking for a CR or an LF is really plenty enough.
      
      Signed-off-by: default avatarJohannes Schindelin <johannes.schindelin@gmx.de>
      
      Closes https://github.com/curl/curl/pull/2592
      aa0f41a5
    • Daniel Stenberg's avatar
  2. 21 May, 2018 8 commits
  3. 18 May, 2018 4 commits
  4. 17 May, 2018 4 commits
  5. 16 May, 2018 5 commits
  6. 15 May, 2018 3 commits
  7. 14 May, 2018 14 commits