crypto: define cleanup functions for use with g_autoptr
Allow crypto structs to be used with g_autoptr, avoiding the need to explicitly call XXX_free() functions when variables go out of scope on the stack. Reviewed-by:Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by:
Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by:
Daniel P. Berrangé <berrange@redhat.com>
Showing
- include/crypto/block.h 2 additions, 0 deletionsinclude/crypto/block.h
- include/crypto/cipher.h 2 additions, 0 deletionsinclude/crypto/cipher.h
- include/crypto/hmac.h 2 additions, 0 deletionsinclude/crypto/hmac.h
- include/crypto/ivgen.h 2 additions, 0 deletionsinclude/crypto/ivgen.h
- include/crypto/tlssession.h 2 additions, 0 deletionsinclude/crypto/tlssession.h
Please register or sign in to comment