Updating projects to V9.1
Jump to navigation
Jump to search
- Several new units have been added to ICS V9.1, mostly now containing classes and functions that were previously in other units. Classes like TSslContext that are often dropped on forms will have one or more of these new units added automatically when the form is opened in the IUE. Units that reference class likeTX509Base or TX509List in events only, such as OnSslHandshakeDone, may need OverbyteIcsSslBase adding manually.
- OverbyteIcsDnsHttps.pas
- OverbyteIcsHtmlUtils.pas
- OverbyteIcsSslBase.pas
- OverbyteIcsSslUtils.pas
- Ics.Fmx.OverbyteIcsDnsHttps.pas
- Ics.Fmx.OverbyteIcsSslBase.pas
- Ics.Fmx.OverbyteIcsSslUtils.pas
- Following is a list of the main classes and functions now in new or different units, so check here when the compiler complains it can not find a component for your application:
- TX509Base from OverbyteIcsWSocket to OverbyteIcsSslBase
- TSslBaseComponent from WSocket to OverbyteIcsSslBase
- TX509List from WSocket to OverbyteIcsSslBase
- TSslContext from OverbyteIcsWSocket to OverbyteIcsSslBase
- TOcspHttp from OverbyteIcsSslHttpRest to OverbyteIcsSslUtils
- TDnsQueryHttp from SslHttpRest to OverbyteIcsDnsHttps
- TIcsDomNameCacheHttps from OverbyteIcsSslHttpRest to OverbyteIcsDnsHttps
- TextToHtmlText from OverbyteIcsFormDataDecoder to OverbyteIcsHtmlUtils
- IcsHtmlValuesToUnicode from OverbyteIcsFormDataDecoder to OverbyteIcsHtmlUtils
- IcsFindHtmlCharset from OverbyteIcsCharsetUtils to OverbyteIcsHtmlUtils
- IcsFindHtmlCodepage from OverbyteIcsCharsetUtils to OverbyteIcsHtmlUtils
- IcsContentCodepage from OverbyteIcsCharsetUtils to OverbyteIcsHtmlUtils
- IcsHtmlToStr from OverbyteIcsCharsetUtils to OverbyteIcsHtmlUtils
- IcsExtractURLEncodedValue from SslHttpRest to OverbyteIcsUrl
- GetCookieValue from OverbyteIcsHttpSrv to OverbyteIcsUrl
- ExtractURLEncodedParamList from OverbyteIcsHttpSrv to OverbyteIcsUrl
- All ICS SSL/TLS projects have a new shared IcsSslRootCAStore component created at application start-up, to avoid different components needing their own CA stores to verify SSL/TLS certificates, and for applications to load those stores. When updating projects using a TSslContext component, setting the new property UseSharedCAStore to True causes the properties CAFile, CALines and CAPath to be ignored, and the new IcsSslRootCAStore component will be used instead, being automatically initialised if not done at program start-up. Don't use UseSharedCAStore for server components. High level ICS components such as TSslHttpRest that have an internal TSslContext component all set UseSharedCAStore and ignore properties like SslRootFile to load a root CA bundle. If a specific bundle is required it may be loaded to IcsSslRootCAStore.
- There are several new defines in the OverbyteIcsDefs.inc file to determine how OpenSSL is loaded. If you retain your original .inc file, application behaviour should be unchanged, but the new .inc file in the distribution has new defaults for loading OpenSSL as detailing in the release notes and readme9.txt, please read very carefully. Essentially, OpenSSL will now be linked into applications and loaded at startup by the IcsSslRootCAStore component, so any code to load OpenSSL will be ignored. The global variables GSSLEAY_DLL_IgnoreNew and GSSLEAY_DLL_IgnoreOld are ignored since only different minor versions of OpenSSL 3 are supported.