Zvone wrote: >>>> const GSSLEAY_DLL_Name : String = 'SSLEAY32.DLL'; > >> This is not required since writable typed constants is enabled. > > That's all fine but I don't see it published as property anywhere. How > do I modify its value during runtime to set full path for SSLEAY32.DLL > and LIBEAY32.DLL?
The DLL names are globally writable typed constants, set their values before the OpenSSL libraries are loaded. OSSL is dynamically loaded at runtime, that is when the first OpenSSL function is called. In order to enforce a load call TSslContext.InitContext or set TSslDynamicLock/TSslStaticLock.Enabled to TRUE. I prefer this anyway since the load errors don't raise somewhere but where I can handle them easily: try GSSLEAY_DLL_Name := <full path and filename>; GLIBEAY_DLL_Name := <full path and filename>; MySslContext.InitContext; except // Something went wrong with loading OSSL, handle it. end; -- Arno Garrels -- Arno Garrels -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be