os: Add CryptoAPI as a choice of SHA1 implementation
Both Cygwin and MinGW can use Windows' native CryptoAPI for SHA1, saving a dependency on libgcrypt or OpenSSL. The necessary functions are in ADVAPI32.DLL, which is among the default lib flags and is already used in hw/xwin for accessing the registry. Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net> Reviewed-by: Mikhail Gusarov <dottedmag@dottedmag.net> Reviewed-by: Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-by: Colin Harrison <colin.harrison@virgin.net> Tested-by: Colin Harrison <colin.harrison@virgin.net>
This commit is contained in:
@@ -148,6 +148,9 @@
|
||||
/* Define to use CommonCrypto SHA1 functions */
|
||||
#undef HAVE_SHA1_IN_COMMONCRYPTO
|
||||
|
||||
/* Define to use CryptoAPI SHA1 functions */
|
||||
#undef HAVE_SHA1_IN_CRYPTOAPI
|
||||
|
||||
/* Define to use libmd SHA1 functions */
|
||||
#undef HAVE_SHA1_IN_LIBMD
|
||||
|
||||
|
||||
Reference in New Issue
Block a user