On Sat, Apr 22, 2017 at 03:20:17PM +0800, Longpeng(Mike) wrote: > 1) Fix a handle-leak problem in qcrypto_hmac_new(), doesn't free > ctx->handle if gcry_mac_setkey fails. > > 2) Extracts qcrypto_hmac_ctx_new() from qcrypto_hmac_new() for > gcrypt-backend impls. > > Reviewed-by: Gonglei <arei.gong...@huawei.com> > Signed-off-by: Longpeng(Mike) <longpe...@huawei.com> > --- > crypto/hmac-gcrypt.c | 35 +++++++++++++++++++++++++---------- > 1 file changed, 25 insertions(+), 10 deletions(-)
Reviewed-by: Daniel P. Berrange <berra...@redhat.com> Regards, Daniel -- |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|