Implemented initial SSH support. Memory pressure too high for HTTPS and
SSH. Dirty commit.
This commit is contained in:
+9
-2
@@ -1,5 +1,5 @@
|
||||
/* SPDX-License-Identifier: GPL-3.0-only */
|
||||
/* Persistent HTTPS identity and administrative Basic credentials. */
|
||||
/* Persistent HTTPS identity and shared network-administration credentials. */
|
||||
|
||||
#pragma once
|
||||
|
||||
@@ -75,7 +75,14 @@ esp_err_t web_security_copy_tls_material(
|
||||
esp_err_t web_security_copy_username(char *output, size_t capacity,
|
||||
size_t *output_length);
|
||||
|
||||
/* Input fields are decoded HTTP Basic components, not the base64 header text. */
|
||||
/* Protocol-neutral authentication for the shared HTTPS and SSH administrator. */
|
||||
esp_err_t web_security_authenticate_admin(const uint8_t *username,
|
||||
size_t username_length,
|
||||
const uint8_t *password,
|
||||
size_t password_length,
|
||||
bool *authenticated);
|
||||
|
||||
/* Compatibility name for decoded HTTP Basic components. */
|
||||
esp_err_t web_security_authenticate_basic(const uint8_t *username,
|
||||
size_t username_length,
|
||||
const uint8_t *password,
|
||||
|
||||
Reference in New Issue
Block a user