On success, S3L_set_safety returns S3L_SUCCESS.
On error, the following condition will cause the function to return the associated error code and terminate:
S3L_ERR_SAFELEV_INVAL - Safety level has an invalid value.