Skip to content

Commit

Permalink
Merge d256f5d into b9e3233
Browse files Browse the repository at this point in the history
  • Loading branch information
dougmencken committed Feb 12, 2018
2 parents b9e3233 + d256f5d commit 6b9a8b3
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions lib/sha256.c
Expand Up @@ -27,8 +27,20 @@
#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
#endif

#endif

#if USE_OPENSSL_SHA256

/* When OpenSSL is available we use the SHA256-function from OpenSSL */
#include <openssl/sha.h>

Expand Down

0 comments on commit 6b9a8b3

Please sign in to comment.