How to switch between OpenSSL 1.0.2 and 1.1 in compilation loading and linking a C code.

Kumar Mishra, Sanjeev Sanjeev.Kumar-Mishra at rbbn.com
Thu May 6 06:47:45 UTC 2021


Hi,
In my Linux Debian server both OpenSSL 1.0.2 and 1.1 is installed. As a user I am compiling C code for 1.0.2. But at the runtime and linking and loading it is picking version 1.1 as default. How to switch between OpenSSL 1.0.2 and 1.1 in compilation loading and linking a C code ? Is there any linux env is required to set? I am using following commands-

export LD_LIBRARY_PATH=/sonus/p4/ws/shared/cmn_thirdparty.main/bldtools/toolchain/current/sonus/lib/
To compile
gcc -I /sonus/p4/ws/shared/cmn_thirdparty.main/openssl/distrib/include -L /sonus/p4/ws/shared/cmn_thirdparty.main/bldtools/toolchain/current/sonus/lib/ -lssl -lcrypto cpxmain1.c -o cpxmain1


Both the libcrypto.so.1.0.2 and  libcrypto.so.1.1 is present in this path but only picking 1.1 as a default. How to change this default setting?

Thanks With Best Regards,
Sanjeev Kumar Mishra



Notice: This e-mail together with any attachments may contain information of Ribbon Communications Inc. and its Affiliates that is confidential and/or proprietary for the sole use of the intended recipient. Any review, disclosure, reliance or distribution by others or forwarding without express permission is strictly prohibited. If you are not the intended recipient, please notify the sender immediately and then delete all copies, including any attachments.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mta.openssl.org/pipermail/openssl-users/attachments/20210506/22a1330a/attachment-0001.html>


More information about the openssl-users mailing list