Back
There is a pre-built OpenSSL library (libssl.a and libcrypto.a) available in my system forC++ application. I don't have any idea about the version of the OpenSSL library.
Can I get the version number from these pre-built libraries?
The version can be easily known in Linux, just read the below document:
OPENSSL_VERSION_NUMBER(3)
and
You just have to use the functions listed down below:
SSLeay()
SSLeay_version()
The strings are mentioned in that document I gave the link above :
OpenSSL 0.9.5a 1 Apr 2000
OpenSSL 1.0.1e-fips 11 Feb 2013
Therefore, you can find this from the binary library using strings and grep:
strings libcrypto.so | grep "^OpenSSL \S\+ [0-9]\+ \S\+ [0-9]\+"
31k questions
32.8k answers
501 comments
693 users