]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
PASN: Fix pasn-resp fuzzing tester build
authorJouni Malinen <quic_jouni@quicinc.com>
Thu, 12 Sep 2024 18:33:30 +0000 (21:33 +0300)
committerJouni Malinen <j@w1.fi>
Thu, 12 Sep 2024 18:33:30 +0000 (21:33 +0300)
The recently added calls to src/ap/pmksa_cache_auth.c needs to be faked
to allow pasn-resp to be built without having to pull in multiple
additional files from src/ap.

Fixes: b7de417c8a47 ("PASN: Define PMKSA helper functions for initiator and responder")
Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
tests/fuzzing/pasn-resp/pasn-resp.c

index 8d44de66a27c18bf74fe6d5ee87b7283c84a93d1..26100542ac99096eb2c598ff9a1d58a65e8e085b 100644 (file)
@@ -41,6 +41,30 @@ pmksa_cache_auth_get(struct rsn_pmksa_cache *pmksa,
 }
 
 
+struct rsn_pmksa_cache *
+pmksa_cache_auth_init(void (*free_cb)(struct rsn_pmksa_cache_entry *entry,
+                                     void *ctx), void *ctx)
+{
+       return NULL;
+}
+
+
+void pmksa_cache_auth_deinit(struct rsn_pmksa_cache *pmksa)
+{
+}
+
+
+void pmksa_cache_free_entry(struct rsn_pmksa_cache *pmksa,
+                           struct rsn_pmksa_cache_entry *entry)
+{
+}
+
+
+void pmksa_cache_auth_flush(struct rsn_pmksa_cache *pmksa)
+{
+}
+
+
 static int pasn_send_mgmt(void *ctx, const u8 *data, size_t data_len,
                          int noack, unsigned int freq, unsigned int wait)
 {