Skip to content

Commit

Permalink
Only use ncrypt where needed
Browse files Browse the repository at this point in the history
  • Loading branch information
qpernil committed Apr 7, 2022
1 parent c35d930 commit 973af54
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion common/hash.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

#ifdef _WIN32_BCRYPT
#include <windows.h>
#include <ncrypt.h>
#include <bcrypt.h>
#else
#include <openssl/evp.h>
#endif
Expand Down
2 changes: 1 addition & 1 deletion common/hash.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ bool YH_INTERNAL hash_destroy(hash_ctx ctx);
const YH_INTERNAL EVP_MD *get_hash(hash_t hash);
#else
#include <windows.h>
#include <ncrypt.h>
#include <bcrypt.h>
BCRYPT_ALG_HANDLE YH_INTERNAL get_hash(hash_t hash, bool hmac);
#endif

Expand Down
2 changes: 1 addition & 1 deletion common/pkcs5.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

#ifdef _WIN32_BCRYPT
#include <windows.h>
#include <ncrypt.h>
#include <bcrypt.h>
#else
#include <openssl/evp.h>
#endif
Expand Down
2 changes: 1 addition & 1 deletion common/rand.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

#ifdef _WIN32_BCRYPT
#include <windows.h>
#include <ncrypt.h>
#include <bcrypt.h>
#else
#include <openssl/rand.h>
#endif
Expand Down

0 comments on commit 973af54

Please sign in to comment.