]> git.ipfire.org Git - thirdparty/qemu.git/commit
crypto: Remove qcrypto_tls_session_get_handshake_status
authorFabiano Rosas <farosas@suse.de>
Thu, 6 Feb 2025 18:34:08 +0000 (15:34 -0300)
committerFabiano Rosas <farosas@suse.de>
Fri, 14 Feb 2025 18:19:03 +0000 (15:19 -0300)
commit0b8a70d70f65fbcf3ad62c975a64a356779095a9
tree3f86f158f6bbeb9834fcab2b381a01e08a037eee
parent30ee88622edfa962154222b4a674361488ed823b
crypto: Remove qcrypto_tls_session_get_handshake_status

The correct way of calling qcrypto_tls_session_handshake() requires
calling qcrypto_tls_session_get_handshake_status() right after it so
there's no reason to have a separate method.

Refactor qcrypto_tls_session_handshake() to inform the status in its
own return value and alter the callers accordingly.

No functional change.

Suggested-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Acked-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Fabiano Rosas <farosas@suse.de>
crypto/tlssession.c
include/crypto/tlssession.h
io/channel-tls.c
tests/unit/test-crypto-tlssession.c