OpenSSL version number when compiling
Dr. Matthias St. Pierre
Matthias.St.Pierre at ncp-e.com
Wed Aug 2 06:32:22 UTC 2023
> #if OPENSSL_VERSION_NUMBER > 0x30100ff0L
Kenneth, is it possible that you didn't include opensslv.h? IIRC, the expression evaluates to #if 0 > 0x30100ff0L if OPENSSL_VERSION_NUMBER is not defined.
> No, that's incorrect. Per OPENSSL_VERSION_NUMBER(3) the format is:
>
> MNNFFPPS: major minor fix patch status
Tom, it seems like you've got an OpenSSL 1.1.1 manual page here.
/* 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 )
https://github.com/openssl/openssl/blob/openssl-3.1/include/openssl/opensslv.h.in#L92-L102
Regards,
Matthias
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 10508 bytes
Desc: not available
URL: <https://mta.openssl.org/pipermail/openssl-users/attachments/20230802/15e900e0/attachment-0001.p7s>
More information about the openssl-users
mailing list