> #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
Attachment:
smime.p7s
Description: S/MIME cryptographic signature