]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
PASN: Mark wpas_pasn_start() comeback argument const
authorJouni Malinen <quic_jouni@quicinc.com>
Fri, 4 Nov 2022 10:56:37 +0000 (12:56 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 4 Nov 2022 10:56:37 +0000 (12:56 +0200)
Make it clear that this argument is not modified and freed within PASN
processing to be consistent with the only use of it by calling
wpas_pasn_build_auth_1() which has already marked it const.

Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
src/pasn/pasn_common.h
src/pasn/pasn_initiator.c

index e091b8eb4c64aca3a6d489be86e66d1d346e7ce7..837ea4fc0c75824b8d79760f635411f179dc6c93 100644 (file)
@@ -151,7 +151,7 @@ int wpas_pasn_start(struct wpas_pasn *pasn, const u8 *own_addr,
                    const u8 *bssid, int akmp, int cipher, u16 group,
                    int freq, const u8 *beacon_rsne, u8 beacon_rsne_len,
                    const u8 *beacon_rsnxe, u8 beacon_rsnxe_len,
-                   struct wpabuf *comeback);
+                   const struct wpabuf *comeback);
 int wpa_pasn_auth_rx(struct wpas_pasn *pasn, const u8 *data, size_t len,
                     struct wpa_pasn_params_data *pasn_params);
 int wpa_pasn_auth_tx_status(struct wpas_pasn *pasn,
index 4afe7859a85eeb76182133156a7940f64dd7050d..71f4120294d137bb646232226c03ef4052d8e8f8 100644 (file)
@@ -859,7 +859,7 @@ int wpas_pasn_start(struct wpas_pasn *pasn, const u8 *own_addr,
                    const u8 *bssid, int akmp, int cipher, u16 group,
                    int freq, const u8 *beacon_rsne, u8 beacon_rsne_len,
                    const u8 *beacon_rsnxe, u8 beacon_rsnxe_len,
-                   struct wpabuf *comeback)
+                   const struct wpabuf *comeback)
 {
        struct wpabuf *frame;
        int ret;