Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/pki.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ extern OSSL_LIB_CTX *PKI_ossl_ctx;
#endif

#if __APPLE__
#if defined MAC_OS_X_VERSION_10_7 && MAC_OS_X_VERSION_MIN_REQUIRED >= 1070
#if MAC_OS_X_VERSION_MIN_REQUIRED >= 1070
/* use accelerated crypto on OS X instead of OpenSSL crypto */
/* We only use the one-shot functions normally declared in CommonCrypto/CommonDigest.h
to avoid nonsensical warnings */
Expand All @@ -49,7 +49,6 @@ extern unsigned char *CC_SHA256(const void *data, uint32_t len, unsigned char *m
#define SHA256(D,L,H) CC_SHA256(D, (uint32_t)(L), H)
#undef MD5
#define MD5(D,L,H) CC_MD5(D, (uint32_t)(L), H)
#endif
#else /* !LP64 */
#undef SHA1
#define SHA1(D,L,H) do (1) { if ((L) >= 4294967296L) SHA1(D,L,H) else CC_SHA1(D, (uint32_t)(L), H); break }
Expand All @@ -59,3 +58,4 @@ extern unsigned char *CC_SHA256(const void *data, uint32_t len, unsigned char *m
#define MD5 do (1) { if ((L) >= 4294967296L) MD5(D,L,H) else CC_MD5(D, (uint32_t)(L), H); break }
#endif /* LP64 */
#endif
#endif