Act nowcan affect a running systemThe merge commit 5fc8e0ad461275ff23f52e327a81ec78234e4873 needs no separate entry. The raw payload has no superseded_by field. Version include bookkeeping was ignored. The compatibility assessment is based on the moved public declarations, updated uses clauses and the upstream statement that the move does not change behavior.
Crypto factories move to a dedicated unit
This edition contains one source-level compatibility change. The high-level crypto factory catalog and key/certificate-aware helpers move from mormot.crypt.secure to the new mormot.crypt.factory unit without changing their implementations. Delphi and FPC applications that import mormot.crypt.secure directly for those declarations need to update their uses clauses.
TL;DR
- Add mormot.crypt.factory wherever application code currently relies on mormot.crypt.secure for Rnd, Hash, Sign, Cipher, Asym, Cert, Store or the moved key/certificate APIs.
- The declarations and implementations were moved unchanged; the commit states that runtime behavior is unchanged.
- The Lazarus mormot2 package, umbrella unit, framework consumers and tests now include mormot.crypt.factory.
- The raw payload has no superseded_by data, so no later successor or settling window is claimed.
Upgrade advice
Before updating to merged head 5fc8e0ad461275ff23f52e327a81ec78234e4873, grep application uses clauses for mormot.crypt.secure and add mormot.crypt.factory wherever moved factory, key or certificate declarations are referenced. Rebuild every Delphi and FPC target; no runtime migration or data conversion is indicated by the diff.
1 of 1 entries · 2 commits upstream
1
High
High-level crypto APIs leave mormot.crypt.secure
A new mormot.crypt.factory unit receives the Rnd/Hash/Sign/Cipher/Asym/Cert/Store catalog, its public interfaces and classes, and key/certificate-aware helpers such as PrivateKeyToPkcs8, X509PubKeyToDer, TX509Parsed and X509Parse. mormot.crypt.secure keeps authentication and the lower-level PEM/DER/ASN.1 encoders. Provider, network, Lazarus package and test uses clauses are updated to import the new unit, and six qualified factory calls now name mormot.crypt.factory.
Breaking changes
mormot.crypt.factory+11
c0dd071d+5263-5164
crypt: new mormot.crypt.factory unit extracted from mormot.crypt.secure
Impact
Existing Delphi and FPC code that imports only mormot.crypt.secure and names any moved declaration will stop compiling until mormot.crypt.factory is added to its uses clause. Code using the mormot2 umbrella unit already receives the new unit. The commit describes a pure move with unchanged lines, so it indicates no cryptographic, serialization or runtime behavior change after the source migration.
Migration required
Search application uses clauses for mormot.crypt.secure and references to Rnd, Hash, Hasher, Sign, Signer, Cipher, CipherAlgo, Asym, Cert, Store, TX509Parsed, X509Parse, PrivateKeyToPkcs8 and X509PubKeyToDer. Add mormot.crypt.factory for each affected unit, then rebuild all compiler and platform targets.
Public API
Rndremoved — The declaration moves unchanged from mormot.crypt.secure to mormot.crypt.factory.Hashremoved — The declaration moves unchanged from mormot.crypt.secure to mormot.crypt.factory.Signremoved — The declaration moves unchanged from mormot.crypt.secure to mormot.crypt.factory.Cipherremoved — The declaration moves unchanged from mormot.crypt.secure to mormot.crypt.factory.Asymremoved — The declaration moves unchanged from mormot.crypt.secure to mormot.crypt.factory.Certremoved — The declaration moves unchanged from mormot.crypt.secure to mormot.crypt.factory.Storeremoved — The declaration moves unchanged from mormot.crypt.secure to mormot.crypt.factory.TX509Parsedremoved — This public certificate parser type now belongs to mormot.crypt.factory.X509Parseremoved — This public parsing hook now belongs to mormot.crypt.factory.