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

openssl-3 API clash with libressl: EVP_CIPHER_CTX_get_iv() #13631

Closed
marckleinebudde opened this issue Dec 7, 2020 · 4 comments
Closed

openssl-3 API clash with libressl: EVP_CIPHER_CTX_get_iv() #13631

marckleinebudde opened this issue Dec 7, 2020 · 4 comments
Labels
issue: bug report The issue was opened to report a bug

Comments

@marckleinebudde
Copy link

During the development of openssl-3 in #12233 the functions EVP_CIPHER_CTX_get_iv_state() and EVP_CIPHER_CTX_get_iv() were introduced.

However, in libressl for almost two years, a function with the same name EVP_CIPHER_CTX_get_iv() already exists (libressl/openbsd@db321d7792). This function is used in openssh since commit openssh/openssh-portable@482d23b.

This breaks openssh, when compiling with openssl-3. I've raised this issue on the openssh ML (https://lists.mindrot.org/pipermail/openssh-unix-dev/2020-December/039003.html) and @daztucker asked to rename the functions:

Maybe OpenSSL could change it before 3.0 instead of shipping an incompatible API? EVP_CIPHER_CTX_get_original_iv would be consistent with the function they deprecated. ie:

EVP_CIPHER_CTX_get_iv -> EVP_CIPHER_CTX_get_original_iv
EVP_CIPHER_CTX_get_iv_state -> EVP_CIPHER_CTX_get_iv
@marckleinebudde marckleinebudde added the issue: bug report The issue was opened to report a bug label Dec 7, 2020
@kroeckx
Copy link
Member

kroeckx commented Dec 7, 2020 via email

@kroeckx kroeckx marked this as a duplicate of #13411 Dec 7, 2020
@paulidale
Copy link
Contributor

paulidale commented Dec 8, 2020

We will address the names of these APIs because the current names are confusing.

@paulidale
Copy link
Contributor

Confirming that this is a duplicate of #13411. Closing this one.

@kaduk
Copy link
Contributor

kaduk commented Dec 9, 2020

EVP_CIPHER_CTX_get_original_iv would be consistent with the function they deprecated

Just to note it here: the whole point of picking a new name was to not be consistent with the function that was deprecated, since we concluded (at least at the time) that it was a bad name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue: bug report The issue was opened to report a bug
Projects
None yet
Development

No branches or pull requests

4 participants