Skip to content

pkey: avoid using {DH,DSA,RSA}#public_key in docs and tests - #1092

Open
rhenium wants to merge 1 commit into
ruby:masterfrom
rhenium:ky/pkey-docs-avoid-public-key
Open

pkey: avoid using {DH,DSA,RSA}#public_key in docs and tests#1092
rhenium wants to merge 1 commit into
ruby:masterfrom
rhenium:ky/pkey-docs-avoid-public-key

Conversation

@rhenium

@rhenium rhenium commented Aug 14, 2026

Copy link
Copy Markdown
Member

As documented, the #public_key methods on OpenSSL::PKey::{DH,DSA,RSA} are obsolete, as their behavior is inconsistent and better alternatives are available. Remove unnecessary uses from RDoc comments for other methods.

Also add dedicated tests for these methods to confirm the current behavior.

Reported by @junaruga at ruby/drb#53 (comment).

As documented, the #public_key methods on OpenSSL::PKey::{DH,DSA,RSA}
are obsolete, as their behavior is inconsistent and better alternatives
are available. Remove unnecessary uses from RDoc comments for other
methods.

Also add dedicated tests for these methods to confirm the current
behavior.
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.

1 participant