qemu-patch-raspberry4/crypto
Daniel P. Berrange 0e1d02452b crypto: avoid two coverity false positive error reports
In qcrypto_tls_creds_get_path() coverity complains that
we are checking '*creds' for NULL, despite having
dereferenced it previously. This is harmless bug due
to fact that the trace call was too early. Moving it
after the cleanup gets the desired semantics.

In qcrypto_tls_creds_check_cert_key_purpose() coverity
complains that we're passing a pointer to a previously
free'd buffer into gnutls_x509_crt_get_key_purpose_oid()
This is harmless because we're passing a size == 0, so
gnutls won't access the buffer, but rather just report
what size it needs to be. We can avoid it though by
explicitly setting the buffer to NULL after free'ing
it.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
2015-12-04 09:39:55 +03:00
..
Makefile.objs crypto: introduce new module for handling TLS sessions 2015-09-15 15:07:43 +01:00
aes.c crypto: move built-in AES implementation into crypto/ 2015-07-07 12:04:13 +02:00
cipher-builtin.c crypto: add sanity checking of plaintext/ciphertext length 2015-10-22 19:03:08 +01:00
cipher-gcrypt.c crypto: add sanity checking of plaintext/ciphertext length 2015-10-22 19:03:08 +01:00
cipher-nettle.c crypto: add sanity checking of plaintext/ciphertext length 2015-10-22 19:03:08 +01:00
cipher.c crypto: allow use of nettle/gcrypt to be selected explicitly 2015-10-22 19:03:07 +01:00
desrfb.c crypto: move built-in D3DES implementation into crypto/ 2015-07-07 12:04:31 +02:00
hash.c crypto: introduce new module for computing hash digests 2015-07-07 12:04:07 +02:00
init.c crypto: allow use of nettle/gcrypt to be selected explicitly 2015-10-22 19:03:07 +01:00
tlscreds.c crypto: avoid two coverity false positive error reports 2015-12-04 09:39:55 +03:00
tlscredsanon.c crypto: introduce new module for TLS anonymous credentials 2015-09-15 15:00:20 +01:00
tlscredspriv.h crypto: introduce new base module for TLS credentials 2015-09-15 14:47:37 +01:00
tlscredsx509.c crypto: avoid two coverity false positive error reports 2015-12-04 09:39:55 +03:00
tlssession.c crypto: fix mistaken setting of Error in success code path 2015-11-18 14:56:58 +00:00