Development #101
Do not check for proper loading of a public key in LassoProvider constructor
90%
Historique
Mis à jour par Benjamin Dauvergne il y a presque 14 ans
The check was removed. But I also made straight the error code for missing keys or chain of cert when checking signatures:
- if a public keys or chain of cert was put, and we cannot load it, we return an error in the LASSO_DS_ERROR namepsace (like PUBLIC_KEY_LOADING_FAILED OR CHAING_OF_CERT_LOADING_FAILED).
- if there is no public key (and no chain of cert for XML signatures) we return LASSO_PROVIDER_ERROR_MISSING_PUBLIC_KEY.
Mis à jour par Clément Oudot il y a presque 14 ans
Benjamin Dauvergne a écrit:
The check was removed. But I also made straight the error code for missing keys or chain of cert when checking signatures:
- if a public keys or chain of cert was put, and we cannot load it, we return an error in the LASSO_DS_ERROR namepsace (like PUBLIC_KEY_LOADING_FAILED OR CHAING_OF_CERT_LOADING_FAILED).
- if there is no public key (and no chain of cert for XML signatures) we return LASSO_PROVIDER_ERROR_MISSING_PUBLIC_KEY.
It is ok when loading provider into Lasso::Server object, but I still have the check when I load Lasso::Server from dump.