ica_set_fallback_mode

Purpose

If libica is built with software fallbacks enabled, this function lets you disable or enable SW fallbacks. With the fallback mode enabled, libica attempts to cover a request by calling OpenSSL functions as fallback, when there is no hardware support available (for example, when the cryptographic coprocessors are offline). With SW fallbacks disabled, no attempts are made to fulfill the request, if there is no hardware support or available or if the hardware returned an error. Instead, the request issues return code ENODEV.

Format

void ica_set_fallback_mode(int fallback_mode);

Parameters

int fallback_mode
1
Enable software fallbacks. This is the default.
0
Disable software fallbacks.

Return codes

None.