title: OpenSSL 1.0.2.g update breaks my Delphi app
body: <p>My Win32 program fails after an upgrade from OpenSSL 1.02f to 1.02g.<br />
  I made sure to reboot after the upgrade, and I have verified that the correct <code>libeay32.dll</code>, <code>libssl32.dll</code>, and <code>ssleay32.dll</code> are in <code>C:\Windows\SysWOW64</code> (and it does not help either if I copy them to my app directory).</p>
  
  <pre><code>var
    lIOHandleSSL      : TIdServerIOHandlerSSLOpenSSL;
    FWebBrokerBridge  : TIdHTTPWebBrokerBridge;       // = class(TIdCustomHTTPServer)
  begin    
    FWebBrokerBridge := TIdHTTPWebBrokerBridge.Create(Self);    
    LIOHandleSSL := TIdServerIOHandlerSSLOpenSSL.Create(FWebBrokerBridge);    // LIOHandleSSL.SSLOptions.method is sslvTLSv1
    LIOHandleSSL.SSLOptions.CertFile     := ...
    LIOHandleSSL.SSLOptions.RootCertFile := ...
    LIOHandleSSL.SSLOptions.KeyFile      := ...
    LIOHandleSSL.OnGetPassword := HTTPSIOHandlerSSLOpenSSLGetPassword;
    FWebBrokerBridge.IOHandler := LIOHandleSSL;
    FWebBrokerBridge.Active := true;
  </code></pre>
  
  <p>The error is <code>EIdOSSLCouldNotLoadSSLLibrary: Could not load SSL library</code> on the 'Active' statement.</p>
  
  <p><strong>What can be going on, and how to fix it</strong>?</p>
  
  <p>It's a Delphi XE2 app, the Indy version is 10.5.8.0</p>
  
  <p>FWIW <a href="https://community.centminmod.com/threads/openssl-1-0-2g-updating-centmin-mod-nginx-ssl-support.6408/" rel="nofollow noreferrer">Here is the OpenSSL 1.02g changelog</a></p>
  
  <p><strong>[Edited to add]</strong><br />
  - We use <a href="https://slproweb.com/products/Win32OpenSSL.html" rel="nofollow noreferrer">this OpenSSL binary installer</a>.<br />
  - I added the WhichFailedToLoad() function (from <code>IdSSLOpenSSLHeaders.pas</code>) and it returns the following string: <code>SSLv2_method,SSLv2_server_method,SSLv2_client_method</code><br />
  - I have removed the description of my certificate files from this question. Ken White correctly remarked that the code is not at the stage yet where the certs are loaded</p>