Main Content

Simulink.ProtectedModel.suppressSignatureVerification

Suppress digital signature verification of protected models

Since R2020b

    Description

    example

    Simulink.ProtectedModel.suppressSignatureVerification(protectedModel) suppresses the error that indicates whether the signature on the model protectedModel is unverified. Note that this does not suppress the error if the protected model was changed after it was signed. In this case, you cannot use the protected model.

    example

    Simulink.ProtectedModel.suppressSignatureVerification(protectedModel,suppressionSetting) disables or enables suppression for the model that you specify. To re-enable signature verification, specify false for the suppressionSetting. To enable signature verification for all protected models, specify 'All' for the model argument. You cannot suppress verification for all models at once.

    Examples

    collapse all

    Suppress the verification of the digital signature for a protected model

    Disable signature verification for a protected model named myProtectedModel.

    Simulink.ProtectedModel.suppressSignatureVerification('myProtectedModel.slxp');

    Enable the verification of digital signatures on all protected models that you open.

    Simulink.ProtectedModel.suppressSignatureVerification('All',false);

    If you previously suppressed signature verification for individual protected models, verification is re-enabled for those models.

    Input Arguments

    collapse all

    Protected model for which you want to suppress digital signature verification, specified as a character vector or string scalar. To re-enable signature verification for all protected models, specify 'All' for this argument and false for the second argument. You cannot suppress signature verification for all protected models at once.

    Example: 'myProtectedModel.slxp'

    Example: 'All'

    Whether to suppress digital signature verification for the specified model, specified as a numeric or logical 1 (true) or 0 (false).

    Version History

    Introduced in R2020b