This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


[Xen-devel] [PATCH] tools: fix libgcrypt detection

To: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] tools: fix libgcrypt detection
From: Andre Przywara <andre.przywara@xxxxxxx>
Date: Mon, 16 Nov 2009 09:35:35 +0100
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, Dulloor <dulloor@xxxxxxxxx>
Delivery-date: Mon, 16 Nov 2009 00:36:32 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird (X11/20090329)

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 <andre.przywara@xxxxxxx>

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
diff -r bec27eb6f72c tools/blktap2/drivers/check_gcrypt
--- a/tools/blktap2/drivers/check_gcrypt        Sat Nov 14 10:32:59 2009 +0000
+++ b/tools/blktap2/drivers/check_gcrypt        Mon Nov 16 09:30:44 2009 +0100
@@ -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; 
Xen-devel mailing list
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] tools: fix libgcrypt detection, Andre Przywara <=