From b49ee8f3777a13b51f25e1b5320c8eb4249d1e46 Mon Sep 17 00:00:00 2001 From: AdamB Date: Mon, 17 Nov 2025 16:39:30 +0000 Subject: [PATCH 1/2] lastpass-cli : add workaround for openssl 3.5 API change This pulls in a PR from the lastpass-cli repository that primarily fixes the ability to write notes. Without it, the cli tool breaks frequently with an error about being unable to base64 decode the response - this is because lastpass-cli without the change blindly passes all input from the attachment_key field to OpenSSL. Older versions of OpenSSL silently dealt with this, newer ones don't so the patch referenced is a 1 line change to make sure that if the string that would be passed to OpenSSL is "skipped", the string is not passed to OpenSSL so the same code path is followed under all versions. --- Formula/l/lastpass-cli.rb | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Formula/l/lastpass-cli.rb b/Formula/l/lastpass-cli.rb index b8759bcfa6c34..425bb3ec6b48d 100644 --- a/Formula/l/lastpass-cli.rb +++ b/Formula/l/lastpass-cli.rb @@ -4,7 +4,7 @@ class LastpassCli < Formula url "https://github.com/lastpass/lastpass-cli/releases/download/v1.6.1/lastpass-cli-1.6.1.tar.gz" sha256 "5e4ff5c9fef8aa924547c565c44e5b4aa31e63d642873847b8e40ce34558a5e1" license "GPL-2.0-or-later" => { with: "openvpn-openssl-exception" } - revision 1 + revision 2 head "https://github.com/lastpass/lastpass-cli.git", branch: "master" bottle do @@ -34,6 +34,13 @@ class LastpassCli < Formula sha256 "a4c2a16fd47942a511c0ebbce08bee5ffdb0d6141f6c9b60ce397db9e207d8be" end + # Workaround for for API change in OpenSSL 3.5 + # PR ref: https://github.com/lastpass/lastpass-cli/pull/718 + patch do + url "https://github.com/lastpass/lastpass-cli/commit/95fff9accc5832264e31af3f54f49af461339693.patch?full_index=1" + sha256 "5d7559511b1814c6f9d8cccc02b7c5dbf8a4e6d2927a94cf76d090cc45a47dd2" + end + def install ENV["XML_CATALOG_FILES"] = etc/"xml/catalog" From 6a6a22d589f59fc0dd413e4ffa2f20684cf281f1 Mon Sep 17 00:00:00 2001 From: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> Date: Tue, 18 Nov 2025 15:49:44 +0000 Subject: [PATCH 2/2] lastpass-cli: update 1.6.1_2 bottle. --- Formula/l/lastpass-cli.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Formula/l/lastpass-cli.rb b/Formula/l/lastpass-cli.rb index 425bb3ec6b48d..0202a73067d0d 100644 --- a/Formula/l/lastpass-cli.rb +++ b/Formula/l/lastpass-cli.rb @@ -8,12 +8,12 @@ class LastpassCli < Formula head "https://github.com/lastpass/lastpass-cli.git", branch: "master" bottle do - sha256 cellar: :any, arm64_tahoe: "93b96dc3bb80345c74934995e2e4899bad889abf98fefec321707ef216d787cd" - sha256 cellar: :any, arm64_sequoia: "840a351d5bd7022e7c60f2cc9c47b65bacd9b1cfb4314d604b7a5b9ee119c273" - sha256 cellar: :any, arm64_sonoma: "76fcf9be8c41da58c8f15255048f4a755579655d8eaeccc84b5ac05a96c9d9e0" - sha256 cellar: :any, sonoma: "09a1378f0bc30b4718a8a2752c75be049cf6ca5cdf105fd6a0307e26656fe149" - sha256 cellar: :any_skip_relocation, arm64_linux: "9ab592522ad509c596a81bc676aaaf6e19bfed68672037d42637f293d69c9918" - sha256 cellar: :any_skip_relocation, x86_64_linux: "604fa7938c619c42ddb92b76c410f1d9fd2d16b156befc61cc36ad1121fe243f" + sha256 cellar: :any, arm64_tahoe: "c2a5f02a4ca98532c55385ebacc3539000fa5c6b5a4682f3e5cd5124ff1d6cff" + sha256 cellar: :any, arm64_sequoia: "569c58eb35aeb7992dc6fe294bc12ffb9080a583bc84d135ddd93bab2d3995ec" + sha256 cellar: :any, arm64_sonoma: "e13a16eda126d0829f53904319b45663deb23d226af8ec7906e82a66bfc7d5ca" + sha256 cellar: :any, sonoma: "e23cb4d80dee3fa976237e1df4305538652531ab1a9d1b13d22d583c330b7898" + sha256 cellar: :any_skip_relocation, arm64_linux: "ce94668af616a6b2f3ef80f465e1da9e4537998e2ff886e1a0f1b4b06dd6502d" + sha256 cellar: :any_skip_relocation, x86_64_linux: "7e72da4920d9db53e2c8cc5b4fd99c2ba72c55dce8721e90fac8657c777ebb58" end depends_on "asciidoc" => :build