qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH for-2.9 v3 0/6] crypto: add HMAC algorithms supp


From: Daniel P. Berrange
Subject: Re: [Qemu-devel] [PATCH for-2.9 v3 0/6] crypto: add HMAC algorithms support
Date: Tue, 13 Dec 2016 09:30:24 +0000
User-agent: Mutt/1.7.1 (2016-10-04)

On Tue, Dec 13, 2016 at 03:35:00PM +0800, Longpeng (Mike) wrote:
> Hi Daniel,
> 
> The error is due to auto-build environment doesn't support both gcrypt and
> nettle, and it's glibc(2.28) is too old, so I think I should add no-op in
> hmac-glib.c when glibc is older than 2.30. for example:
> 
> #include <...>
> 
> #if GLIB_CHECK_VERSION(2, 30, 0)
>       ....
> #else
>       ...(no-op func)
> #endif
> 
> Do you have any suggestion ?

Yep, you need to wrap the entire hmac-glib.c file in the #if so that you
hide the method impl too.

Regards,
Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://entangle-photo.org       -o-    http://search.cpan.org/~danberr/ :|



reply via email to

[Prev in Thread] Current Thread [Next in Thread]