summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorMarc-André Lureau2022-02-18 22:34:50 +0100
committerMarc-André Lureau2022-03-22 11:40:51 +0100
commite7b794282264868d84b3d9a5da222b08a783d8fb (patch)
tree16c03c50cd6f8bf875b893c80d151ec171baeb2e /crypto
parentm68k/nios2-semi: fix gettimeofday() result check (diff)
downloadqemu-e7b794282264868d84b3d9a5da222b08a783d8fb.tar.gz
qemu-e7b794282264868d84b3d9a5da222b08a783d8fb.tar.xz
qemu-e7b794282264868d84b3d9a5da222b08a783d8fb.zip
Drop qemu_foo() socket API wrapper
The socket API wrappers were initially introduced in commit 00aa0040 ("Wrap recv to avoid warnings"), but made redundant with commit a2d96af4 ("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>
Diffstat (limited to 'crypto')
-rw-r--r--crypto/cipher-afalg.c4
-rw-r--r--crypto/hash-afalg.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/crypto/cipher-afalg.c b/crypto/cipher-afalg.c
index 052355a8a9..c55cd28bf0 100644
--- a/crypto/cipher-afalg.c
+++ b/crypto/cipher-afalg.c
@@ -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;
diff --git a/crypto/hash-afalg.c b/crypto/hash-afalg.c
index cf34c694af..4ac18c7c1d 100644
--- a/crypto/hash-afalg.c
+++ b/crypto/hash-afalg.c
@@ -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;