waf help: OPENSSL_VERSION_NUMBER from openssl/opensslv.h

Hal Murray hmurray at megapathdsl.net
Tue Mar 24 19:40:42 UTC 2020


I'd like to check the OpenSSL version number and give a sensible error message 
rather than some mumbo jumble from the compiler.

Can somebody show me how to do that?  Or suggest what to search for?
(Or just do it?)

The value I want is a hex constant.
  # define OPENSSL_VERSION_NUMBER  0x1010104fL
That's for 1.1.1d

The first three "1"s are 1.1.1
The last 4 is d
the f means released.

It needs to be bigger than 0x1010101fL
1.1.1a has a fatal bug.  Anything newer is OK.

I can copy the code that makes NTP_SIZEOF_xxx, but that puts cruft in config.h


-- 
These are my opinions.  I hate spam.





More information about the devel mailing list