简体   繁体   中英

Use boost::asio without linking to OpenSSL

I'm working on a project that uses boost::asio. By default it links with OpenSSL libraries, however no SSL features are used. I need to get rid of OpenSSL dependencies, is there a way to do it? Thanks

Compile boost yourself and remove the OpenSSL bits first. Would be "a way to do it".

Your question doesn't really make sense as the OpenSSL part of boost asio is optional. ie it only links in openssl when you use it.

Also by default boost asio is header only. So you must have gone out of your way to compile the library version WITH openssl included.

You can read about it here .

If you want to only include openssl when you use it, then I would just use the default header only version and you will only get what you use and nothing more.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM