diff options
author | Yaakov Selkowitz <yselkowitz@users.sourceforge.net> | 2012-04-26 01:49:06 -0500 |
---|---|---|
committer | Yaakov Selkowitz <yselkowitz@users.sourceforge.net> | 2012-05-04 13:13:50 -0500 |
commit | e6461db6dcb437cfa7d4b23008c2c12f8169ff79 (patch) | |
tree | fcf4d8f7922d3ad99d8f49a24d50eb91a8e0b231 /include | |
parent | 97041364a6acb2b66b5cfd06757c90a006ad50e9 (diff) |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/dix-config.h.in | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/dix-config.h.in b/include/dix-config.h.in index 3fb641367..3c9bbafeb 100644 --- a/include/dix-config.h.in +++ b/include/dix-config.h.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 |