You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The function OpenSSL_version_num() is not marked as deprecated in the header file or in the source code or in libcrypto.num. But in the documentation, it is described in the "BACKWARD COMPATIBILITY" section which says this at the beginning of it:
For compatibility, some older macros and functions are retained or
synthesised.
They are all considered deprecated.
Its also listed as deprecated in the synopsis section of the man page.
The situation is similar with the OPENSSL_VERSION_NUMBER macro, i.e. its not marked as deprecated in the header file, but it is in the docs. This one is additionally marked as deprecated in other.syms.
It seems very unclear whether they really are deprecated or not.
IMO we should undeprecate these as they are really used by applications and they are useful functions. Yes, there is the problem - what to do when we reach OpenSSL-16.0.0 but I do not see us getting to that number any time soon. 😁
Yes, I'm not really sure why we wanted to deprecate this function. It's actually quite useful to have a single value to represent the whole version number - and it exists in old versions too. In my response to #17516 I wanted to say that the easiest way to compare the header version against the library version is to compare OPENSSL_VERSION_NUMBER against the output of OpenSSL_version_num() but felt unable to because of the ambiguous deprecation status.
Question for OTC: Should OPENSSL_VERSION_NUMBER and OpenSSL_version_num() be undeprecated in the documentation? Alternatively should they be marked as deprecated in the header files?
Because the bit arrangement in that number has changed over time, resulting in, uhm, pretty creative was to handle it, I thought that the new macros were much easier to interpret.
Deprecating the old was meant to be in the interest of not trying to have two ways to check.
I agree that this should be undeprecated in the documentation - the documentation is wrong.
Warning that this has challenges when we get to a much later major version would have been more appropriate IMHO.
Activity
t8m commentedon Jan 14, 2022
IMO we should undeprecate these as they are really used by applications and they are useful functions. Yes, there is the problem - what to do when we reach OpenSSL-16.0.0 but I do not see us getting to that number any time soon. 😁
mattcaswell commentedon Jan 14, 2022
Yes, I'm not really sure why we wanted to deprecate this function. It's actually quite useful to have a single value to represent the whole version number - and it exists in old versions too. In my response to #17516 I wanted to say that the easiest way to compare the header version against the library version is to compare OPENSSL_VERSION_NUMBER against the output of
OpenSSL_version_num()but felt unable to because of the ambiguous deprecation status.t8m commentedon Jan 14, 2022
I would treat this issue as a documentation bug and simply undeprecate it in the documentation. But perhaps we need to discuss this within OTC?
mattcaswell commentedon Jan 14, 2022
Yes. I think so
mattcaswell commentedon Jan 14, 2022
Question for OTC: Should
OPENSSL_VERSION_NUMBERandOpenSSL_version_num()be undeprecated in the documentation? Alternatively should they be marked as deprecated in the header files?levitte commentedon Jan 14, 2022
Because the bit arrangement in that number has changed over time, resulting in, uhm, pretty creative was to handle it, I thought that the new macros were much easier to interpret.
Deprecating the old was meant to be in the interest of not trying to have two ways to check.
t-j-h commentedon Jan 18, 2022
I agree that this should be undeprecated in the documentation - the documentation is wrong.
Warning that this has challenges when we get to a much later major version would have been more appropriate IMHO.
paulidale commentedon Feb 8, 2022
These should be undeprecated.
t8m commentedon Feb 8, 2022
OTC Decision: the OPENSSL_VERSION_NUMBER macro and OpenSSL_version_num() function should be undeprecated on the 3.0 branch in the documentation
Undeprecate OPENSSL_VERSION_NUMBER and OpenSSL_version_num()
tidy-up: use `OPENSSL_VERSION_NUMBER`