mirror of
https://github.com/curl/curl.git
synced 2026-07-23 20:57:16 +03:00
sha256: avoid redefine
This commit is contained in:
parent
50c0033a6c
commit
3f6051f4ed
1 changed files with 2 additions and 6 deletions
|
|
@ -27,23 +27,19 @@
|
|||
#include "warnless.h"
|
||||
#include "curl_sha256.h"
|
||||
|
||||
#define USE_OPENSSL_SHA256 0
|
||||
|
||||
#if defined(USE_OPENSSL)
|
||||
|
||||
#include <openssl/opensslv.h>
|
||||
|
||||
#if (OPENSSL_VERSION_NUMBER >= 0x0090800fL)
|
||||
#define USE_OPENSSL_SHA256 1
|
||||
#define USE_OPENSSL_SHA256
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
#if USE_OPENSSL_SHA256
|
||||
|
||||
#ifdef USE_OPENSSL_SHA256
|
||||
/* When OpenSSL is available we use the SHA256-function from OpenSSL */
|
||||
#include <openssl/sha.h>
|
||||
|
||||
#else
|
||||
|
||||
/* When no other crypto library is available we use this code segment */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue