mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-24 11:46:34 +00:00
fix some warnings in the wireguard library
This commit is contained in:
parent
45dd1ed438
commit
3789d446bd
@ -272,6 +272,7 @@ bool wireguard_create_handshake_initiation(struct wireguard_device *device, stru
|
||||
bool wireguard_create_handshake_response(struct wireguard_device *device, struct wireguard_peer *peer, struct message_handshake_response *dst);
|
||||
void wireguard_create_cookie_reply(struct wireguard_device *device, struct message_cookie_reply *dst, const uint8_t *mac1, uint32_t index, uint8_t *source_addr_port, size_t source_length);
|
||||
|
||||
void handshake_destroy(struct wireguard_handshake *handshake);
|
||||
|
||||
bool wireguard_check_mac1(struct wireguard_device *device, const uint8_t *data, size_t len, const uint8_t *mac1);
|
||||
bool wireguard_check_mac2(struct wireguard_device *device, const uint8_t *data, size_t len, uint8_t *source_addr_port, size_t source_length, const uint8_t *mac2);
|
||||
|
@ -48,7 +48,7 @@
|
||||
#include "wireguard.h"
|
||||
#include "crypto.h"
|
||||
#include "esp_log.h"
|
||||
#include "tcpip_adapter.h"
|
||||
#include "esp_netif.h"
|
||||
|
||||
#include "esp32-hal-log.h"
|
||||
|
||||
@ -921,7 +921,7 @@ err_t wireguardif_init(struct netif *netif) {
|
||||
size_t private_key_len = sizeof(private_key);
|
||||
|
||||
struct netif* underlying_netif;
|
||||
tcpip_adapter_get_netif(TCPIP_ADAPTER_IF_STA, &underlying_netif);
|
||||
tcpip_adapter_get_netif(TCPIP_ADAPTER_IF_STA, (void **)&underlying_netif);
|
||||
log_i(TAG "underlying_netif = %p", underlying_netif);
|
||||
|
||||
LWIP_ASSERT("netif != NULL", (netif != NULL));
|
||||
|
Loading…
x
Reference in New Issue
Block a user