wireguard: do not include crypto/algapi.h
authorHerbert Xu <herbert@gondor.apana.org.au>
Thu, 24 Aug 2023 05:17:45 +0000 (13:17 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 15 Sep 2023 10:29:44 +0000 (18:29 +0800)
The header file crypto/algapi.h is for internal use only.  Use the
header file crypto/utils.h instead.

Acked-by: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/net/wireguard/cookie.c
drivers/net/wireguard/netlink.c
drivers/net/wireguard/noise.c

index 4956f0499c198d0ab5fe1cb0cb7d42bcfbe86062..f89581b5e8cbe14f5040396ccf787e19f977182f 100644 (file)
@@ -12,9 +12,9 @@
 
 #include <crypto/blake2s.h>
 #include <crypto/chacha20poly1305.h>
+#include <crypto/utils.h>
 
 #include <net/ipv6.h>
-#include <crypto/algapi.h>
 
 void wg_cookie_checker_init(struct cookie_checker *checker,
                            struct wg_device *wg)
index dc09b75a32485c2f7e57700a4e451d19a69841b0..e220d761b1f27aa31eab3ad1b9211ddfe55eaabd 100644 (file)
@@ -15,7 +15,7 @@
 #include <linux/if.h>
 #include <net/genetlink.h>
 #include <net/sock.h>
-#include <crypto/algapi.h>
+#include <crypto/utils.h>
 
 static struct genl_family genl_family;
 
index 720952b92e784c5e94dadb5e0e70fa16ee53f6a5..202a33af5a721f2216ad0815e7b63a28d2bf5888 100644 (file)
@@ -15,7 +15,7 @@
 #include <linux/bitmap.h>
 #include <linux/scatterlist.h>
 #include <linux/highmem.h>
-#include <crypto/algapi.h>
+#include <crypto/utils.h>
 
 /* This implements Noise_IKpsk2:
  *