Skip to contentSkip to conversation

tools: fix libgcrypt detection

PATCH New Andre Przywara 1 participant 1 message Nov 16, 2009

lore
Share & tools
lore
#0 lore raw

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.

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
diff -r bec27eb6f72c tools/blktap2/drivers/check_gcrypt
@@ -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