From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andre Przywara Subject: [PATCH] tools: fix libgcrypt detection Date: Mon, 16 Nov 2009 09:35:35 +0100 Message-ID: <4B010ED7.3070009@amd.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------010504040403010209030302" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser Cc: "xen-devel@lists.xensource.com" , Dulloor List-Id: xen-devel@lists.xenproject.org --------------010504040403010209030302 Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit 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 -- 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 --------------010504040403010209030302 Content-Type: text/x-patch; name="check_gcrypt.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="check_gcrypt.patch" 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 int main(void) { - char dummy[14]; - MD5("DUMMY", 5, dummy); + gcry_md_hash_buffer(GCRY_MD_MD5, NULL, NULL, 0); return 0; } EOF --------------010504040403010209030302 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --------------010504040403010209030302--