You need OpenSSl.
Follow this link: https://slproweb.com/products/Win32OpenSSL.html
You have a list of automatic intaller for Openssl on Windows!
Select "Win32 OpenSSL v1.0.2d." Install it on your system and add the required lib path to your project configuration.
Compile everything and it will work.
(Ways to add: XXXX / OpenSSL-Win32 \ include and XXXX / OpenSSL-Win32 \ lib)
source share