Closed shawnanastasio closed 5 years ago
Are there any extra API differences between openssl 1.0 and openssl 1.1? Because I plan to directly call openssl API functions on several places and I would like to avoid polutting code with #ifdefs
. Preferably, I would like to use openssl 1.1, but I if there are no differences in APIs, I might support 1.0 as well.
So I mean. Which openssl to choose? I really do not know. My impression was that openssl 1.1 will be more futureproof solution. Am I wrong?
In that case, I will merge this and make some other adjustments to make everything smoother. Thank you.
The OpenSSL_version() function was introduced in OpenSSL 1.1.0. In earlier versions, SSLeay_version() has to be used. This commit uses the proper function depending on the library version.