summaryrefslogtreecommitdiff
path: root/lib/sha256.c
Commit message (Collapse)AuthorAgeFilesLines
* cleanup: fix two empty expression statement has no effectDaniel Stenberg2020-12-301-5/+8
| | | | Follow-up to 26e46617b9
* http: add hmac support for sha256Matthias Gatto2020-12-211-0/+20
| | | | | | | | | | | | It seems current hmac implementation use md5 for the hash, V4 signature require sha256, so I've added the needed struct in this commit. I've added the functions that do the hmac in v4 signature file as a static function ,in the next patch of the serie, because it's used only by this file. Signed-off-by: Matthias Gatto <matthias.gatto@outscale.com>
* curl.se: new homeDaniel Stenberg2020-11-041-1/+1
| | | | Closes #6172
* sha256: move assign to the declaration lineDaniel Stenberg2020-05-191-2/+1
| | | | Follow-up to fae30656. Should've been squashed with that commit...
* sha256: fixed potentially uninitialized variableSiva Sivaraman2020-05-191-0/+1
| | | | Closes #5414
* source cleanup: remove all custom typedef structsDaniel Stenberg2020-05-151-4/+6
| | | | | | | | | | | - Stick to a single unified way to use structs - Make checksrc complain on 'typedef struct {' - Allow them in tests, public headers and examples - Let MD4_CTX, MD5_CTX, and SHA256_CTX typedefs remain as they actually typedef different types/structs depending on build conditions. Closes #5338
* windows: suppress UI in all CryptAcquireContext() callsViktor Szakats2020-03-171-2/+2
| | | | | | Ref: https://docs.microsoft.com/windows/win32/api/wincrypt/nf-wincrypt-cryptacquirecontexta#parameters Reviewed-by: Marc Hörsken Closes https://github.com/curl/curl/pull/5088
* sha256: Added WinCrypt implementationSteve Holme2020-03-081-0/+43
| | | | Closed #5030
* sha256: Added SecureTransport implementationSteve Holme2020-03-081-0/+31
|
* Revert "sha256: Added SecureTransport implementation"Daniel Stenberg2020-03-031-70/+0
| | | | | | | | This reverts commit 4feb38deed33fed14ff7c370a6a9153c661dbb9c (from #4956) That commit broke test 1610 on macos builds without TLS. Closes #5027
* sha256: Tidy up following recent changesSteve Holme2020-03-031-20/+59
| | | | | Reviewed-by: Daniel Stenberg Closes #4956
* sha256: Added WinCrypt implementationSteve Holme2020-03-031-0/+39
|
* sha256: Added SecureTransport implementationSteve Holme2020-03-031-0/+31
|
* sha256: Added mbedtls implementationSteve Holme2020-03-031-0/+48
|
* sha256: Added GNU TLS gcrypt implementationSteve Holme2020-03-031-0/+29
|
* sha256: Added GNU TLS Nettle implementationSteve Holme2020-03-031-1/+31
|
* md5/sha256: Updated the functions to allow non-string data to be hashedSteve Holme2020-02-231-3/+4
|
* tests: Added a unit test for SHA256 digest generationSteve Holme2020-02-221-1/+5
| | | | | | Follow up to 2b5b37c. Closes #4968
* build: Disable Visual Studio warning "conditional expression is constant"Jay Satiro2019-12-011-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Disable warning C4127 "conditional expression is constant" globally in curl_setup.h for when building with Microsoft's compiler. This mainly affects building with the Visual Studio project files found in the projects dir. Prior to this change the cmake and winbuild build systems already disabled 4127 globally for when building with Microsoft's compiler. Also, 4127 was already disabled for all build systems in the limited circumstance of the WHILE_FALSE macro which disabled the warning specifically for while(0). This commit removes the WHILE_FALSE macro and all other cruft in favor of disabling globally in curl_setup. Background: We have various macros that cause 0 or 1 to be evaluated, which would cause warning C4127 in Visual Studio. For example this causes it: #define Curl_resolver_asynch() 1 Full behavior is not clearly defined and inconsistent across versions. However it is documented that since VS 2015 Update 3 Microsoft has addressed this somewhat but not entirely, not warning on while(true) for example. Prior to this change some C4127 warnings occurred when I built with Visual Studio using the generated projects in the projects dir. Closes https://github.com/curl/curl/pull/4658
* sha256: bump the copyright year rangeDaniel Stenberg2019-11-281-1/+1
| | | | Follow-up from 66e21520f
* curl_setup_once: consistently use WHILE_FALSE in macrosDaniel Gustafsson2019-11-281-2/+2
| | | | | | | | | The WHILE_FALSE construction is used to avoid compiler warnings in macro constructions. This fixes a few instances where it was not used in order to keep the code consistent. Closes #4649 Reviewed-by: Daniel Stenberg <daniel@haxx.se>
* http: fix for tiny "HTTP/0.9" responseDaniel Stenberg2018-08-131-5/+2
| | | | | | | | | | | Deal with tiny "HTTP/0.9" (header-less) responses by checking the status-line early, even before a full "HTTP/" is received to allow detecting 0.9 properly. Test 1266 and 1267 added to verify. Fixes #2420 Closes #2872
* cppcheck: fix warningsMarian Klymov2018-06-111-6/+6
| | | | | | | | | | | | | - Get rid of variable that was generating false positive warning (unitialized) - Fix issues in tests - Reduce scope of several variables all over etc Closes #2631
* spelling fixesViktor Szakats2018-02-231-1/+1
| | | | | | | | Detected using the `codespell` tool. Also contains one URL protocol upgrade. Closes https://github.com/curl/curl/pull/2334
* sha256: avoid redefineDaniel Stenberg2018-02-121-6/+2
|
* sha256: build with OpenSSL < 0.9.8 tooDouglas Mencken2018-02-121-0/+12
| | | | | | support for SHA-2 was introduced in OpenSSL 0.9.8 Closes #2305
* auth: add support for RFC7616 - HTTP Digest access authenticationFlorin2017-10-281-0/+262
Signed-off-by: Florin <petriuc.florin@gmail.com>