Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix armored stream detection and refactor pgp_source_t. #2155

Merged
merged 11 commits into from
Dec 6, 2023

Conversation

ni4
Copy link
Contributor

@ni4 ni4 commented Dec 3, 2023

This PR fixes incorrect detection of cleartext-signed stream. In addition it refactors pgp_source_t to be more C++ (still a lot of work left).

Fixes #2154

@ni4 ni4 force-pushed the ni4-2154-fix-armored-stream-detection branch from 59531c4 to 3f8efcc Compare December 3, 2023 10:50
Copy link

codecov bot commented Dec 3, 2023

Codecov Report

Attention: 12 lines in your changes are missing coverage. Please review.

Comparison is base (cae5ef2) 76.94% compared to head (5e2af25) 76.97%.

Files Patch % Lines
src/librepgp/stream-parse.cpp 92.50% 6 Missing ⚠️
src/librepgp/stream-common.cpp 95.52% 3 Missing ⚠️
src/librepgp/stream-armor.cpp 97.61% 2 Missing ⚠️
src/librepgp/stream-dump.cpp 96.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2155      +/-   ##
==========================================
+ Coverage   76.94%   76.97%   +0.02%     
==========================================
  Files         194      194              
  Lines       37082    37074       -8     
==========================================
+ Hits        28533    28536       +3     
+ Misses       8549     8538      -11     

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

@ni4 ni4 force-pushed the ni4-2154-fix-armored-stream-detection branch from 6d8e3fe to 5e2af25 Compare December 6, 2023 15:51
@ni4 ni4 marked this pull request as ready for review December 6, 2023 19:36
@antonsviridenko antonsviridenko merged commit d934fa9 into main Dec 6, 2023
113 checks passed
@antonsviridenko antonsviridenko deleted the ni4-2154-fix-armored-stream-detection branch December 6, 2023 22:52
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.

cli_tests.py: cleartext sign-verify failure if stdin/out is used to exchange data.
2 participants