On Sun, Sep 01, 2024 at 10:15:03AM +0200, 'Graham Leggett' via openssl-users wrote:
> APR no longer builds on Fedora because the define OPENSSL_VERSION_NUMBER is now gone.
It is NOT gone from upstream OpenSSL:
$ git grep -hwC10 OPENSSL_VERSION_NUMBER o/openssl-3.2 -- include/openssl/
opensslv.h.in
* These strings are defined separately to allow them to be parsable.
*/
# define OPENSSL_RELEASE_DATE "{- $config{release_date} -}"
/*
* SECTION 4: BACKWARD COMPATIBILITY
*/
# define OPENSSL_VERSION_TEXT "OpenSSL {- "$config{full_version} $config{release_date}" -}"
/* Synthesize OPENSSL_VERSION_NUMBER with the layout 0xMNN00PPSL */
# ifdef OPENSSL_VERSION_PRE_RELEASE
# define _OPENSSL_VERSION_PRE_RELEASE 0x0L
# else
# define _OPENSSL_VERSION_PRE_RELEASE 0xfL
# endif
# define OPENSSL_VERSION_NUMBER \
( (OPENSSL_VERSION_MAJOR<<28) \
|(OPENSSL_VERSION_MINOR<<20) \
|(OPENSSL_VERSION_PATCH<<4) \
|_OPENSSL_VERSION_PRE_RELEASE )
# ifdef __cplusplus
}
# endif
> What I'm not finding is a clear deprecation notice, or a notice about
> what replaced it. Github has oblique references to removal of the
> define, and there are discussions about changing how version numbers
> work, both GitHub search and google search are failing me.
There was no removal, I'd personally be one of the more vocal objectors
to just a removal.
>
> My questions are:
>
> - What replaced OPENSSL_VERSION_NUMBER?
It is still present.
> - In what version was OPENSSL_VERSION_NUMBER replaced?
It wasn't.
--
Viktor.