Added
-
Added a new callback to let integrators request FIPS mode when the SDK is initialized, in class
IZRCSDKSinkin fileIZRCSDK.h. ReturntruefromShouldUseFipsin theIZRCSDKSinkimplementation passed toIZRCSDK::CreateInstance(). The SDK then initializes the OpenSSL FIPS provider automatically. The default isfalse, so existing integrations are not affected.class IZRCSDKSink { public: ... virtual bool ShouldUseFips() { return false; } };- Deploy the OpenSSL libraries and FIPS provider from the same SDK package, and keep their directory layout.
- Windows:
ossl-modules/fips.dllbeside the SDK DLL. - macOS:
ossl-modules/fips.dylibbesideZRCSdk.framework.
- Windows:
- Use the supplied FIPS provider unchanged. Modifying, replacing, rebuilding, or re-signing it after packaging can invalidate the integrity verification parameters embedded in the SDK and cause initialization to fail.
- If FIPS initialization fails,
CreateInstance()returnsnullptr. The SDK does not fall back to non-FIPS mode. ShouldUseFipsselects the initialization behavior. It is not a runtime switch for enabling or disabling FIPS mode.
- Deploy the OpenSSL libraries and FIPS provider from the same SDK package, and keep their directory layout.
