Skip to content

Remove RSA padding SSLv23#14248

Closed
richsalz wants to merge 2 commits intoopenssl:masterfrom
richsalz:deprecate-rsa-padding
Closed

Remove RSA padding SSLv23#14248
richsalz wants to merge 2 commits intoopenssl:masterfrom
richsalz:deprecate-rsa-padding

Conversation

@richsalz
Copy link
Copy Markdown
Contributor

Fixes: #14216

I am not sure how to handle some of the documentation updates, particularly man7/EVP_SIGNATURE-RSA.pod Just mark it inline as deprecated? I kinda did that for man3/EVP_PKEY_CTX_ctrl.pod

Comment on lines 385 to 387
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Maybe we should just drop this define? So we do not add immediately deprecated defines in 3.0?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I agree adding something and deprecating it seems silly, but it's used in two files so have to keep it I think.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Could it be defined in some internal header? @levitte any opinions?

@t8m
Copy link
Copy Markdown
Member

t8m commented Feb 19, 2021

I am not sure how to handle some of the documentation updates, particularly man7/EVP_SIGNATURE-RSA.pod Just mark it inline as deprecated? I kinda did that for man3/EVP_PKEY_CTX_ctrl.pod

I'd just drop it from the document and keep it only as an internal implementation detail that there is another possible value for the pad mode. It is really useless and I would not expect any third party provider to implement this.

@richsalz
Copy link
Copy Markdown
Contributor Author

Once again I can't seem to get no-deprecated correct. help please.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This change has no effect because you have the #include "internal/deprecated.h" above. Unfortunately that means the rsa_ssl.c cannot be among the !$disabled{'deprecated-3.0'} files.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is the cause for the no-deprecated build failure.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

rsa_ossl needs to use deprecated stuff and rsa_ssl implements deprecated stuff. So it seems that using the standard deprecation flags will not work. Does anyone have suggestions on how to do this deprecation? One possibility I am about to try is to add a shim file that doesn't include internal/deprecated.h Let's see what happens.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

No, you're misunderstanding. The fix is just to drop the move of rsa_ssl.c into the !$disabled{'deprecated-3.0'} block. Just drop the build.info change.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Just drop the build.info change.

well heck, that's easier. :)

@richsalz
Copy link
Copy Markdown
Contributor Author

Dang I really twisted up my repo. sigh. closing this for now.

@richsalz richsalz closed this Feb 22, 2021
@richsalz richsalz reopened this Feb 22, 2021
@t8m
Copy link
Copy Markdown
Member

t8m commented Feb 23, 2021

Now, thinking about this more, and I am sorry for not proposing this earlier, I'd say this should be removed completely and not just deprecated. However that needs an OMC (or OTC?) approval.

@richsalz
Copy link
Copy Markdown
Contributor Author

This is on hold pending OTC decision in #14283. And if that is approved, I'd be happy to update this.

@t8m t8m changed the title Deprecate RSA padding SSLv23 Remove RSA padding SSLv23 Feb 25, 2021
@t8m
Copy link
Copy Markdown
Member

t8m commented Feb 25, 2021

The vote for removal has passed. So the RSA_SSLV23_PADDING and any related things should be completely removed.

@t8m
Copy link
Copy Markdown
Member

t8m commented Feb 25, 2021

I forgot we have an issue for the removal already. So closing this one as it is duplicate.

@t8m t8m closed this Feb 25, 2021
@t8m t8m reopened this Feb 25, 2021
@t8m t8m changed the title Remove RSA padding SSLv23 Deprecate RSA padding SSLv23 Feb 25, 2021
@t8m
Copy link
Copy Markdown
Member

t8m commented Feb 25, 2021

I really need to get some coffee break - this one is a PR and not an issue. So @richsalz do you want to morph this into removal PR? Or do you want to open a new PR for the removal? Or, if you do not want to or have time to work on the removal, I can as well do it.

@richsalz richsalz changed the title Deprecate RSA padding SSLv23 Remove RSA padding SSLv23 Feb 25, 2021
@richsalz
Copy link
Copy Markdown
Contributor Author

I had it lying around in anticipation :) I only documented in CHANGES, let me know if that's not okay.

@t8m
Copy link
Copy Markdown
Member

t8m commented Feb 25, 2021

You'll need to rebase against master and fix the remaining places.

@richsalz
Copy link
Copy Markdown
Contributor Author

Yeah, I missed one line; updated commit pushed. Based on current master. FYI the edits to rsautl.pod removed some duplicated lines.

@richsalz
Copy link
Copy Markdown
Contributor Author

fixup commit pushed address @t8m 's feedback.

Copy link
Copy Markdown
Member

@t8m t8m left a comment

Choose a reason for hiding this comment

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

Approving provided the last nit is fixed as well.

@t8m t8m added approval: review pending This pull request needs review by a committer branch: master Applies to master branch labels Feb 25, 2021
@t8m t8m added this to the 3.0.0 beta1 milestone Feb 25, 2021
jollaitbot pushed a commit to sailfishos-mirror/m2crypto that referenced this pull request Feb 25, 2021
OpenSSL removes support for it in gh#openssl/openssl#14248.

Fixes #294.
@kroeckx kroeckx 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 Feb 25, 2021
@mcepl
Copy link
Copy Markdown

mcepl commented Feb 25, 2021

For your enjoyment, https://gitlab.com/m2crypto/m2crypto/-/merge_requests/264

@openssl-machine
Copy link
Copy Markdown
Collaborator

24 hours has passed since 'approval: done' was set, but as this PR has been updated in that time the label 'approval: ready to merge' is not being automatically set. Please review the updates and set the label manually.

@t8m t8m 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 Mar 1, 2021
openssl-machine pushed a commit that referenced this pull request Mar 1, 2021
Reviewed-by: Kurt Roeckx <kurt@roeckx.be>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from #14248)
@t8m
Copy link
Copy Markdown
Member

t8m commented Mar 1, 2021

Merged to master. Thank you for the contribution.

@t8m t8m closed this Mar 1, 2021
@richsalz richsalz deleted the deprecate-rsa-padding branch March 1, 2021 14:35
stac47 pushed a commit to stac47/poco that referenced this pull request Mar 16, 2021
As per OpenSSL 3 (since alpha 13), the support of SSL23 has been removed
(openssl/openssl#14248).

Reference: pocoproject#3223
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Deprecate RSA_SSLV23_PADDING

5 participants