Damien George | 1db40ed | 2023-06-21 15:09:26 +1000 | [diff] [blame] | 1 | /* |
| 2 | * SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD |
| 3 | * |
| 4 | * SPDX-License-Identifier: Apache-2.0 |
| 5 | */ |
| 6 | |
| 7 | // The pppapi_set_auth function was made static in the ESP-IDF, so it's re-added here. |
| 8 | // See ESP-IDF commit c67f4c2b4c2bb4b7740f988fc0f8a3e911e56afe |
| 9 | |
| 10 | #pragma once |
| 11 | |
| 12 | #include "esp_netif.h" |
| 13 | |
| 14 | #ifdef CONFIG_ESP_NETIF_TCPIP_LWIP |
| 15 | |
| 16 | #include "lwip/netif.h" |
| 17 | |
| 18 | typedef struct ppp_pcb_s ppp_pcb; |
| 19 | |
| 20 | void pppapi_set_auth(ppp_pcb *pcb, u8_t authtype, const char *user, const char *passwd); |
| 21 | |
| 22 | #endif |