Macro to support 3.0 and 1.0
Hi All, We are upgrading our code to openssl 3.0. But we need to keep the older version of code also which is 1.0. So, we tried by keeping the newer version of the code as below but when we compiled the code for 3.0, evp.h is not getting included. Please sugge
Re: Macro to support 3.0 and 1.0
Before using OPENSSL_VERSION_NUMBER, you should have this line: #include So something like this should make it possible: #include #if (OPENSSL_VERSION_NUMBER >= 0x3000L) /**higher version code/ #include #else /***lo