mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-30 13:02:27 +01:00
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
14 lines
484 B
Diff
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);
|
|
}
|