Skip to content

Remove dead code in GetSignatureAlgorithm()#9882

Merged
julianbrost merged 1 commit intoIcinga:masterfrom
botovq:tlsutility/remove-dead-code
Oct 24, 2023
Merged

Remove dead code in GetSignatureAlgorithm()#9882
julianbrost merged 1 commit intoIcinga:masterfrom
botovq:tlsutility/remove-dead-code

Conversation

@botovq
Copy link
Copy Markdown
Contributor

@botovq botovq commented Oct 20, 2023

This code was added in commit 548eb93 and never did anything useful. Using X509_get_signature_nid() or its expanded version in the pre-1.1 branch is the correct way of retrieving the signature algorithm of a certificate.

@cla-bot
Copy link
Copy Markdown

cla-bot bot commented Oct 20, 2023

Thank you for your pull request. Before we can look at it, you'll need to sign a Contributor License Agreement (CLA).

Please follow instructions at https://icinga.com/company/contributor-agreement to sign the CLA.

After that, please reply here with a comment and we'll verify.

Contributors that have not signed yet: @botovq

Details
  • If you've already signed a CLA, it's possible we don't have your GitHub username or you're using a different email address. Please contact us if you think this is the case.

  • If you signed the CLA as a corporation, your GitHub username may not have been submitted to us. Please reach out to the responsible person in your organization.

This code was added in commit 548eb93 and never did anything useful.
Using X509_get_signature_nid() or its expanded version in the pre-1.1
branch is the correct way of retrieving the signature algorithm of a
certificate.

CLA: trivial
@cla-bot
Copy link
Copy Markdown

cla-bot bot commented Oct 20, 2023

Thank you for your pull request. Before we can look at it, you'll need to sign a Contributor License Agreement (CLA).

Please follow instructions at https://icinga.com/company/contributor-agreement to sign the CLA.

After that, please reply here with a comment and we'll verify.

Contributors that have not signed yet: @botovq

Details
  • If you've already signed a CLA, it's possible we don't have your GitHub username or you're using a different email address. Please contact us if you think this is the case.

  • If you signed the CLA as a corporation, your GitHub username may not have been submitted to us. Please reach out to the responsible person in your organization.

@Al2Klimov
Copy link
Copy Markdown
Member

Hello Theo and thanks for contributing!

You have force-pushed an identical commit after the bot's comment #9882 (comment). This doesn't harm, but also does nothing useful. At least the bot is still not aware of the signature (#9882 (comment)).

Please follow instructions at https://icinga.com/company/contributor-agreement to sign the CLA.

If you've already followed those instructions...

After that, please reply here with a comment and we'll verify.

... just say so in the comments (here) and we'll verify.

Best,
A/K


X509_PUBKEY_get0_param(nullptr, nullptr, 0, &algor, key); //TODO: Error handling

alg = OBJ_obj2nid (algor->algorithm);
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.

Indeed, all of this is very nice... but doesn't do anything useful.

@Al2Klimov Al2Klimov added the core/quality Improve code, libraries, algorithms, inline docs label Oct 23, 2023
@Al2Klimov Al2Klimov added this to the 2.15.0 milestone Oct 23, 2023
@Al2Klimov Al2Klimov requested a review from julianbrost October 23, 2023 09:13
@botovq
Copy link
Copy Markdown
Contributor Author

botovq commented Oct 23, 2023 via email

@bobapple
Copy link
Copy Markdown
Member

@cla-bot check

@cla-bot cla-bot bot added the cla/signed label Oct 24, 2023
@bobapple bobapple assigned Al2Klimov and unassigned bobapple Oct 24, 2023
@Al2Klimov Al2Klimov removed their assignment Oct 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla/signed core/quality Improve code, libraries, algorithms, inline docs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants