Harden SSH Admission And Credential Input
This commit is contained in:
@@ -8,6 +8,10 @@
|
||||
|
||||
#include "esp_err.h"
|
||||
|
||||
/* Hidden input accepts printable ASCII with CR/LF submit, BS/DEL editing and
|
||||
* Ctrl-C cancellation. Overflow or any other byte rejects the entire prompt on
|
||||
* submit (ESP_ERR_INVALID_SIZE), even after editing; rejected input is wiped.
|
||||
* capacity includes the trailing NUL. Visible line editing is unchanged. */
|
||||
esp_err_t console_input_read_hidden(const char *prompt,
|
||||
uint8_t *output, size_t capacity,
|
||||
size_t minimum_length, size_t maximum_length,
|
||||
|
||||
Reference in New Issue
Block a user