Skip to content
New issue

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

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

Already on GitHub? # to your account

Patch 3 #52

Merged
merged 2 commits into from
Dec 2, 2024
Merged

Patch 3 #52

merged 2 commits into from
Dec 2, 2024

Conversation

david415
Copy link
Member

@david415 david415 commented Dec 2, 2024

No description provided.

infinitydaemon and others added 2 commits December 2, 2024 17:16
* Replaced panic calls with structured error handling in helper functions.
* Used %w in fmt.Errorf for better error wrapping.
* Better readability
* Centralized redundant logic (e.g., PEM encoding/decoding and file writing) into toPEMBytes, decodePEMBlock, and writePEMToFile.
* Ensured os.O_TRUNC is used to overwrite files securely in writePEMToFile.
* Unified similar logic between public and private key handling.
remove top comment about authorship
and remove errors import so that it actually compiles
@david415 david415 merged commit c9dbdf7 into main Dec 2, 2024
12 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants