mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 17:23:56 -06:00
Drop qemu_foo() socket API wrapper
The socket API wrappers were initially introduced in commit00aa0040
("Wrap recv to avoid warnings"), but made redundant with commita2d96af4
("osdep: add wrappers for socket functions") which fixes the win32 declarations and thus removed the earlier warnings. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
This commit is contained in:
parent
8ef2513d87
commit
e7b7942822
15 changed files with 45 additions and 64 deletions
|
@ -84,8 +84,8 @@ qcrypto_afalg_cipher_ctx_new(QCryptoCipherAlgorithm alg,
|
|||
g_free(name);
|
||||
|
||||
/* setkey */
|
||||
if (qemu_setsockopt(afalg->tfmfd, SOL_ALG, ALG_SET_KEY, key,
|
||||
nkey) != 0) {
|
||||
if (setsockopt(afalg->tfmfd, SOL_ALG, ALG_SET_KEY, key,
|
||||
nkey) != 0) {
|
||||
error_setg_errno(errp, errno, "Set key failed");
|
||||
qcrypto_afalg_comm_free(afalg);
|
||||
return NULL;
|
||||
|
|
|
@ -88,8 +88,8 @@ qcrypto_afalg_hash_hmac_ctx_new(QCryptoHashAlgorithm alg,
|
|||
|
||||
/* HMAC needs setkey */
|
||||
if (is_hmac) {
|
||||
if (qemu_setsockopt(afalg->tfmfd, SOL_ALG, ALG_SET_KEY,
|
||||
key, nkey) != 0) {
|
||||
if (setsockopt(afalg->tfmfd, SOL_ALG, ALG_SET_KEY,
|
||||
key, nkey) != 0) {
|
||||
error_setg_errno(errp, errno, "Set hmac key failed");
|
||||
qcrypto_afalg_comm_free(afalg);
|
||||
return NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue