Page 1 of 1

Check whether libcurl was compiled with OpenSSL or NSS from static lib binary only

Posted: 2020/06/04 05:22:17
by uvertiruzo
I'd like to know, just from the static library binary of OpenSSL, whether it was compiled using OpenSSL or NSS. We don't have access to any record of how the binary was compiled or know anyone who was involved in compiling it.

Is this possible?

The binary is for Centos6 if that makes a difference. The binary is version 7.38.0 of libcurl.

Re: Check whether libcurl was compiled with OpenSSL or NSS from static lib binary only

Posted: 2020/06/04 08:33:09
by TrevorH
You are not using the version of curl that ships with CentOS 6 which is curl-7.19.7-54.el6_10.x86_64 not 7.38.

Running ldd -v $(which curl) will show you which libraries it uses. On the correct CentOS copy that shows lots of references to NSS and one line that refers to openssl: libcrypto.so.10 (OPENSSL_1.0.1_EC) => /usr/lib64/libcrypto.so.10