Installing the library


sudo apt-get install libssl-dev

 

Add the linker option for the library

-lcrypto

Documentation

https://www.openssl.org/docs/manmaster/man3/

The documentation isn't always great and their search doesn't always work, but on the Libraries page search for the function name you want into on and it will be there