aports/community/lastpass-cli/openssl-3.5.patch
Natanael Copa 7c9349cb0a community/lastpass-cli: fix tests with openssl 3.5
Older openssl would not error on invalid base64 input. OpenSSL 3.5
appears to be more picky with the input. Add fix.

Upstream: https://github.com/lastpass/lastpass-cli/issues/706
2025-05-20 16:58:23 +02:00

14 lines
484 B
Diff

diff --git a/blob.c b/blob.c
index e81493f..990e295 100644
--- a/blob.c
+++ b/blob.c
@@ -407,7 +407,7 @@ static struct account *account_parse(struct chunk *chunk, const unsigned char ke
if (parsed->group[0] == 16)
parsed->group[0] = '\0';
- if (strlen(parsed->attachkey_encrypted)) {
+ if (strlen(parsed->attachkey_encrypted) && strcmp(parsed->attachkey_encrypted, "skipped") != 0) {
parsed->attachkey = cipher_aes_decrypt_base64(
parsed->attachkey_encrypted, key);
}