mirror of
https://github.com/esphome/esphome.git
synced 2024-11-24 07:58:09 +01:00
Fix
This commit is contained in:
parent
784bedab8c
commit
0f73ae4ae1
1 changed files with 1 additions and 1 deletions
|
@ -1469,7 +1469,7 @@ void APIConnection::execute_service(const ExecuteServiceRequest &msg) {
|
||||||
NoiseEncryptionSetKeyResponse APIConnection::noise_encryption_set_key(const NoiseEncryptionSetKeyRequest &msg) {
|
NoiseEncryptionSetKeyResponse APIConnection::noise_encryption_set_key(const NoiseEncryptionSetKeyRequest &msg) {
|
||||||
psk_t psk{};
|
psk_t psk{};
|
||||||
NoiseEncryptionSetKeyResponse resp;
|
NoiseEncryptionSetKeyResponse resp;
|
||||||
if (base64_decode(msg.key.data(), psk.data(), msg.key.size()) != psk.size()) {
|
if (base64_decode(msg.key, psk.data(), msg.key.size()) != psk.size()) {
|
||||||
ESP_LOGW(TAG, "Invalid encryption key length");
|
ESP_LOGW(TAG, "Invalid encryption key length");
|
||||||
resp.success = false;
|
resp.success = false;
|
||||||
return resp;
|
return resp;
|
||||||
|
|
Loading…
Reference in a new issue