Skip to content

doc: add missing const to PEM write SYNOPSIS - #32422

Closed
arcabotai wants to merge 1 commit into
openssl:masterfrom
arcabotai:doc/pem-write-const-synopsis
Closed

arcabotai wants to merge 1 commit into
openssl:masterfrom
arcabotai:doc/pem-write-const-synopsis

Conversation

@arcabotai

@arcabotai arcabotai commented Aug 18, 2026 •

Copy link
Copy Markdown

The PEM write macros in include/openssl/pem.h take const TYPE *x, but doc/man3/PEM_read_bio_PrivateKey.pod still documented several write functions without const. This updates the SYNOPSIS to match the public headers, including PEM_write_bio_X509 as reported in the issue.

Fixes #31169

Human-in-the-loop

Luis Felipe Abarca is the human contributor and v1.1 ICLA signatory behind this submission. He personally read and understood the exact patch at 11d717c22bb85517f8d8e2ecf000cfc22f05b749, reviewed and accepted its exact-head verification evidence, authorized publication, and remains accountable for it.

Cad on Hermes Agent assisted with source analysis, documentation changes, checks, and maintainer follow-up. The agent does not independently decide what is submitted or merged. AI provenance is recorded in the commit as Assisted-by: Hermes Agent:gpt-5.6-sol; upstream maintainers retain review and merge authority.

Arca · Luis Felipe · X · GitHub

@openssl-ci-bot openssl-ci-bot Bot added the approval: review pending This pull request needs review by a committer label Aug 18, 2026
@openssl-machine openssl-machine added the cla: trivial One of the commits is marked as 'CLA: trivial'. Review for non-trivial change in such commit. label Aug 18, 2026
@arcabotai arcabotai closed this Aug 18, 2026
@arcabotai arcabotai reopened this Aug 19, 2026
@fwh-dc

fwh-dc commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

@arcabotai I'm not sure if this falls under trivial when you use AI tooling. Could you sign a CLA with AI use just in case?

The write macros in include/openssl/pem.h take const TYPE *x, but
PEM_read_bio_PrivateKey.pod still documented several write functions
without const. Match the public headers.

Fixes: openssl#31169

Assisted-by: Hermes Agent:gpt-5.6-sol
@arcabotai
arcabotai force-pushed the doc/pem-write-const-synopsis branch from 7755cdd to 11d717c Compare August 24, 2026 08:28
@arcabotai

Copy link
Copy Markdown
Author

Thanks for flagging this. I had already signed OpenSSL's v1.1 ICLA, including the AI provisions, on 19 August 2026. I have now amended the commit to remove CLA: trivial, changed the author email to [email protected] to match the signed ICLA, and updated the AI disclosure to Assisted-by: Hermes Agent:gpt-5.6-sol.

Please let me know if the CLA record needs any further mapping.

Luis Felipe Abarca

@fwh-dc fwh-dc left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks!
If you used some commandline tooling to find these then please share so we can add it to the make doc-nits.

Comment thread doc/man3/PEM_read_bio_PrivateKey.pod Resolved
Comment thread doc/man3/PEM_read_bio_PrivateKey.pod Resolved
Comment thread doc/man3/PEM_read_bio_PrivateKey.pod Resolved
Comment thread doc/man3/PEM_read_bio_PrivateKey.pod Resolved
Comment thread doc/man3/PEM_read_bio_PrivateKey.pod Resolved
Comment thread doc/man3/PEM_read_bio_PrivateKey.pod Resolved
Comment thread doc/man3/PEM_read_bio_PrivateKey.pod Resolved
Comment thread doc/man3/PEM_read_bio_PrivateKey.pod Resolved
Comment thread doc/man3/PEM_read_bio_PrivateKey.pod Resolved
Comment thread doc/man3/PEM_read_bio_PrivateKey.pod Resolved
@arcabotai

Copy link
Copy Markdown
Author

On the tooling question: this was an AI-assisted targeted source/documentation comparison rather than output from an existing reusable checker. I verified the affected declarations through the PEM declaration macros (PEM_write_fnsig, DECLARE_PEM_*) and the explicit PKCS8/private-key prototypes. The focused commands used for the follow-up were git grep searches over include/openssl, the generated-header templates, and IMPLEMENT_PEM_* call sites.

make doc-nits currently checks NAME/SYNOPSIS coverage but does not compare full documented C parameter qualifiers against macro-generated public declarations. Automating that reliably would likely require preprocessing the public headers (including .h.in generation and feature/deprecation guards) and comparing parsed signatures, rather than a safe one-line grep. I do not want to claim a robust doc-nits check from this patch without implementing and testing that separately.

I have also replied inline with the source locations for X509_ACERT and asked for clarification on the deprecation-block request because the RSA/DSA/DH declarations are already beneath the requested paragraph.

@fwh-dc fwh-dc left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM. I'll give the tooling support a go. Thanks for the heads up!

@arcabotai

Copy link
Copy Markdown
Author

Thank you, @fwh-dc. It is genuinely great to receive this feedback. We would be happy to keep contributing wherever useful. You can reach us anytime through https://arca.computer.

With love from Chile, from Luis Felipe, the human on the other side, relayed through Cad, his AI agent. 🇨🇱

@fwh-dc fwh-dc added branch: 4.0 Applies to openssl-4.0 branch: master Applies to master branch triaged: documentation The issue/pr deals with documentation (errors) and removed cla: trivial One of the commits is marked as 'CLA: trivial'. Review for non-trivial change in such commit. labels Aug 26, 2026
@openssl-ci-bot openssl-ci-bot Bot added approval: done This pull request has the required number of approvals and removed approval: review pending This pull request needs review by a committer labels Sep 1, 2026
@fwh-dc fwh-dc added the no_news_changes_needed skip checks for the recommendation to add NEWS.md/CHANGES.md entries label Sep 1, 2026
@t8m t8m added the tests: exempted The PR is exempt from requirements for testing label Sep 1, 2026
@openssl-ci-bot openssl-ci-bot Bot added approval: ready to merge The 24 hour grace period has passed, ready to merge and removed approval: done This pull request has the required number of approvals labels Sep 2, 2026
@openssl-ci-bot

openssl-ci-bot Bot commented Sep 2, 2026

Copy link
Copy Markdown

This pull request is ready to merge

@t8m

t8m commented Sep 4, 2026

Copy link
Copy Markdown
Member

Merged to the master and 4.0 branches. Thank you for your contribution.

@t8m t8m closed this Sep 4, 2026
openssl-machine pushed a commit that referenced this pull request Sep 4, 2026
The write macros in include/openssl/pem.h take const TYPE *x, but
PEM_read_bio_PrivateKey.pod still documented several write functions
without const. Match the public headers.

Fixes: #31169

Assisted-by: Hermes Agent:gpt-5.6-sol
Reviewed-by: Jakub Zelenka <[email protected]>
Reviewed-by: Frederik Wedel-Heinen <[email protected]>
Merge-date: Fri Sep  4 17:37:17 2026
Merged-from: #32422
(cherry picked from commit 4ddd100)
openssl-machine pushed a commit that referenced this pull request Sep 4, 2026
The write macros in include/openssl/pem.h take const TYPE *x, but
PEM_read_bio_PrivateKey.pod still documented several write functions
without const. Match the public headers.

Fixes: #31169

Assisted-by: Hermes Agent:gpt-5.6-sol
Reviewed-by: Jakub Zelenka <[email protected]>
Reviewed-by: Frederik Wedel-Heinen <[email protected]>
Merge-date: Fri Sep  4 17:37:17 2026
Merged-from: #32422
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approval: ready to merge The 24 hour grace period has passed, ready to merge branch: master Applies to master branch branch: 4.0 Applies to openssl-4.0 no_news_changes_needed skip checks for the recommendation to add NEWS.md/CHANGES.md entries tests: exempted The PR is exempt from requirements for testing triaged: documentation The issue/pr deals with documentation (errors)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing const in documentation?

6 participants