tools: fix libgcrypt detection
PATCH 1/1 tools: fix libgcrypt detection
Hi,
if we want to check the functionality of libgcrypt, we shouldn't test a function only exported by openssl, but instead the one actually used in the code.
Signed-off-by Andre Przywara <[email protected]>
Signature · 9 lines
Andre Przywara AMD-Operating System Research Center (OSRC), Dresden, Germany Tel: +49 351 448 3567 12 ----to satisfy European Law for business letters: Advanced Micro Devices GmbH Karl-Hammerschmidt-Str. 34, 85609 Dornach b. Muenchen Geschaeftsfuehrer: Andrew Bowd; Thomas M. McCoy; Giuliano Meroni Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen Registergericht Muenchen, HRB Nr. 43632
tools/blktap2/drivers/check_gcrypt +1 -2
@@ -4,8 +4,7 @@ #include <gcrypt.h> int main(void) { - char dummy[14]; - MD5("DUMMY", 5, dummy); + gcry_md_hash_buffer(GCRY_MD_MD5, NULL, NULL, 0); return 0; } EOF
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel