Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/wireguard.h
Original file line number Diff line number Diff line change
Expand Up @@ -284,4 +284,6 @@ bool wireguard_decrypt_packet(uint8_t *dst, const uint8_t *src, size_t src_len,
bool wireguard_base64_decode(const char *str, uint8_t *out, size_t *outlen);
bool wireguard_base64_encode(const uint8_t *in, size_t inlen, char *out, size_t *outlen);

void handshake_destroy(struct wireguard_handshake *handshake);

#endif /* _WIREGUARD_H_ */
4 changes: 2 additions & 2 deletions src/wireguardif.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -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));
Expand Down