It is only used in xt_pknock.c, and only once, so also make it an
anonymous struct.
static DEFINE_SPINLOCK(list_lock);
-static struct ipt_pknock_crypto crypto = {
+static struct {
+ char *algo;
+ struct crypto_hash *tfm;
+ int size;
+ struct hash_desc desc;
+} crypto = {
.algo = "hmac(sha256)",
.tfm = NULL,
.size = 0
unsigned long max_time; /* max matching time between ports */
};
-#include <linux/crypto.h>
-
-struct ipt_pknock_crypto {
- char *algo;
- struct crypto_hash *tfm;
- int size;
- struct hash_desc desc;
-};
-
struct transport_data {
uint8_t proto;
uint16_t port; /* destination port */