Back

Explore Courses Blog Tutorials Interview Questions
0 votes
1 view
in Linux by (5k points)

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?

1 Answer

0 votes
by (10.2k points)

The version can be easily known in Linux, just read the below document:

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]\+"

Related questions

0 votes
1 answer
asked Nov 18, 2020 in Linux by blackindya (18.4k points)
0 votes
0 answers
0 votes
1 answer
0 votes
1 answer

Browse Categories

...