Skip to content

Fix signing failure after importing public key with updated expiry#2384

Open
kaie wants to merge 5 commits intornpgp:mainfrom
kaie:fix-secring-expiry-update
Open

Fix signing failure after importing public key with updated expiry#2384
kaie wants to merge 5 commits intornpgp:mainfrom
kaie:fix-secring-expiry-update

Conversation

@kaie
Copy link
Copy Markdown
Contributor

@kaie kaie commented Mar 24, 2026

When importing an updated public key, sync it into the secring if a matching secret key exists, so the secring reflects the new expiration and signing succeeds.

Fixes: #2383

kaie and others added 5 commits March 24, 2026 13:12
When importing an updated public key, sync it into the secring if
a matching secret key exists, so the secring reflects the new
expiration and signing succeeds.

Fixes: rnpgp#2383

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Add missing <cstring> include in mem.cpp (fixes build with Botan head)
- Add 'cpy' to typos identifier exclusions

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This reverts commit a09954b88473a6a996e7bdabeb9f96bcbf66a98f.
- Add missing <cstring> include in mem.cpp
- Rename cpy variables to copy in s2k_ossl.cpp and fingerprint.hpp

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 24, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.46%. Comparing base (83a987a) to head (1265348).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2384   +/-   ##
=======================================
  Coverage   85.46%   85.46%           
=======================================
  Files         126      126           
  Lines       22711    22715    +4     
=======================================
+ Hits        19409    19413    +4     
  Misses       3302     3302           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GPG storage: Importing public key with updated expiration doesn't update metadata in secret storage file, signing fails

1 participant