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

digest: remove optional parameter from OpenSSL::Digest#finish #825

Merged
merged 1 commit into from
Dec 18, 2024

Conversation

rhenium
Copy link
Member

@rhenium rhenium commented Dec 10, 2024

OpenSSL::Digest#finish overrides Digest::Instance#finish and is called from the Digest::Class framework in the digest library. This method is not supposed to take any arguments, as suggested by the RDoc comment for Digest::Instance#finish.

It is a private method and not exposed to users. Let's remove it.

This optional parameter has been there since r15602 in Ruby trunk, which converted OpenSSL::Digest to the current state, a subclass of Digest::Class.

OpenSSL::Digest#finish overrides Digest::Instance#finish and is called
from the Digest::Class framework in the digest library. This method is
not supposed to take any arguments, as suggested by the RDoc comment for
Digest::Instance#finish.

It is a private method and not exposed to users. Let's remove it.

This optional parameter exists since r15602 in Ruby trunk, the commit
which converted OpenSSL::Digest to a subclass of Digest::Class.
@rhenium rhenium force-pushed the ky/digest-remove-finish-opt branch from 65c4ce0 to dcb2a4f Compare December 18, 2024 13:29
@rhenium rhenium merged commit f4e7c4b into ruby:master Dec 18, 2024
59 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant