me-no-dev / ESPAsyncWebServer

Async Web Server for ESP8266 and ESP32
3.78k stars 1.23k forks source link

Using the Sample CaptivePortal lead to mbedTLS issues #1387

Open Sectorchan opened 8 months ago

Sectorchan commented 8 months ago

I open from the Example menubar the CaptivePortal sample and compile it.

It throws these error: c:\Users\Patri\OneDrive\Dokumente\Arduino\libraries\ESPAsyncWebServer\src\WebAuthentication.cpp: In function 'bool getMD5(uint8_t, uint16_t, char)': c:\Users\Patri\OneDrive\Dokumente\Arduino\libraries\ESPAsyncWebServer\src\WebAuthentication.cpp:74:3: error: 'mbedtls_md5_starts_ret' was not declared in this scope; did you mean 'mbedtls_md5_starts'? 74 | mbedtls_md5_starts_ret(&_ctx); | ^~~~~~ | mbedtls_md5_starts c:\Users\Patri\OneDrive\Dokumente\Arduino\libraries\ESPAsyncWebServer\src\WebAuthentication.cpp:75:3: error: 'mbedtls_md5_update_ret' was not declared in this scope; did you mean 'mbedtls_md5_update'? 75 | mbedtls_md5_update_ret(&_ctx, data, len); | ^~~~~~ | mbedtls_md5_update c:\Users\Patri\OneDrive\Dokumente\Arduino\libraries\ESPAsyncWebServer\src\WebAuthentication.cpp:76:3: error: 'mbedtls_md5_finish_ret' was not declared in this scope; did you mean 'mbedtls_md5_finish'? 76 | mbedtls_md5_finish_ret(&_ctx, _buf); | ^~~~~~ | mbedtls_md5_finish c:\Users\Patri\OneDrive\Dokumente\Arduino\libraries\ESPAsyncWebServer\src\AsyncEventSource.cpp: In member function 'void AsyncEventSourceClient::_queueMessage(AsyncEventSourceMessage*)': c:\Users\Patri\OneDrive\Dokumente\Arduino\libraries\ESPAsyncWebServer\src\AsyncEventSource.cpp:189:7: error: 'ets_printf' was not declared in this scope; did you mean 'vswprintf'? 189 | ets_printf("ERROR: Too many messages queued\n"); | ^~~~~~ | vswprintf

exit status 1

Compilation error: exit status 1