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

cert util: replace deprecated OpenSSL calls #7576

Closed
wants to merge 1 commit into from

Conversation

sumit-bose
Copy link
Contributor

@sumit-bose sumit-bose commented Sep 9, 2024

In OpenSSL 3.0 some of the calls we currently use in the utility
functions to covert the public key from a X.509 certificate into an ssh
public key got deprecated. This patch replaces them if OpenSSL 3.0 or
newer is used.

Resolves: #5861

Copy link
Contributor

@ikerexxe ikerexxe left a comment

Choose a reason for hiding this comment

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

Some minor improvements to work on before approving the PR.

src/util/cert/libcrypto/cert.c Outdated Show resolved Hide resolved
src/util/cert/libcrypto/cert.c Outdated Show resolved Hide resolved
src/util/cert/libcrypto/cert.c Outdated Show resolved Hide resolved
Copy link
Contributor

@ikerexxe ikerexxe left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks for the patch.

In OpenSSL 3.0 some of the calls we currently use in the utility
functions to covert the public key from a X.509 certificate into an ssh
public key got deprecated. This patch replaces them if OpenSSL 3.0 or
newer is used.

In contrast to the older calls which just returned references the new
calls return the requested data in freshly allocated memory. To keep
it consistent the data referenced by the old calls are copied into
allocated memory as well.

Resolves: SSSD#5861
@alexey-tikhonov
Copy link
Member

Thank you, ACK.

@ikerexxe, please take a look at the latest version.

Copy link
Contributor

@ikerexxe ikerexxe left a comment

Choose a reason for hiding this comment

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

LGTM!

@alexey-tikhonov
Copy link
Member

Pushed PR: #7576

  • master
    • 0e836ed - cert util: replace deprecated OpenSSL calls
  • sssd-2-9
    • dfcfa51 - cert util: replace deprecated OpenSSL calls

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

openssl3 deprecated some functions
3 participants