So you're saying I need to get my program itself to download and put OpenSSL into the project directory?
Would the program just download it to the folder its in, or how should I go about doing this in the best possible way?
Yes, exactly.
The code GetMem showed will do exactly that. You don't need to restart your program because the dlls are loaded when they are needed and if you call IsOpenSSLAvailable before that, all should be well.
Nevertheless, I think that installing any neeed DLLs is up to the
install program, not something your program should do by itself if it's not happy
Note also that your program may not have (most probably hasn't) write permission to its own folder, so that approach would either fail or make it install the DLLs in its config. directory, which is ... "not ideal".
ETA: Talking about
deployment of the program, of course, not
development.