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

Refactor encrypted_add_password(). #2309

Merged
merged 9 commits into from
Jan 29, 2025
Merged

Conversation

ni4
Copy link
Contributor

@ni4 ni4 commented Jan 24, 2025

  • for better code quality
  • closer to c++ style
  • workaround GnuPG multiple SKESKs handling, causing random CI failures for us.

Copy link

codecov bot commented Jan 24, 2025

Codecov Report

Attention: Patch coverage is 97.39777% with 7 lines in your changes missing coverage. Please review.

Project coverage is 85.17%. Comparing base (c41cef1) to head (9533758).
Report is 9 commits behind head on main.

Files with missing lines Patch % Lines
src/librepgp/stream-write.cpp 97.04% 7 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2309      +/-   ##
==========================================
+ Coverage   85.14%   85.17%   +0.02%     
==========================================
  Files         118      118              
  Lines       22780    22793      +13     
==========================================
+ Hits        19397    19413      +16     
+ Misses       3383     3380       -3     

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

@ni4 ni4 force-pushed the ni4-refactor-encrypted_add_password branch 2 times, most recently from 2e29c5b to 5b04f48 Compare January 24, 2025 11:59
src/librepgp/stream-write.cpp Dismissed Show dismissed Hide dismissed
src/librepgp/stream-write.cpp Dismissed Show dismissed Hide dismissed
src/librepgp/stream-write.cpp Dismissed Show dismissed Hide dismissed
src/librepgp/stream-write.cpp Dismissed Show dismissed Hide dismissed
src/librepgp/stream-write.cpp Dismissed Show dismissed Hide dismissed
src/librepgp/stream-write.cpp Dismissed Show dismissed Hide dismissed
@ni4 ni4 force-pushed the ni4-refactor-encrypted_add_password branch from 5b04f48 to 9533758 Compare January 24, 2025 12:51
@ni4 ni4 marked this pull request as ready for review January 25, 2025 10:09
Copy link
Member

@maxirmx maxirmx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -3340,11 +3301,8 @@ try {
return RNP_ERROR_NULL_POINTER;
}

*op = new rnp_op_verify_st();
rnp_ctx_init_ffi((*op)->rnpctx, ffi);
*op = new rnp_op_verify_st(ffi, signature);
(*op)->rnpctx.detached = true;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe it will be more consistent to add these params to constructor as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree, thanks. Will address via another PR as this one is already merged.

@ni4
Copy link
Contributor Author

ni4 commented Jan 29, 2025

Merging with two approvals. Thanks!

@ni4 ni4 merged commit 9af62ce into main Jan 29, 2025
123 checks passed
@ni4 ni4 deleted the ni4-refactor-encrypted_add_password branch February 12, 2025 10:36
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.

3 participants