Main Content

Simulink.ProtectedModel.suppressSignatureVerification

Suppress digital signature verification of protected models

    Description

    example

    Simulink.ProtectedModel.suppressSignatureVerification(protectedModel)suppresses the error that indicates whether the signature on the modelprotectedModelis 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, specifyfalsefor thesuppressionSetting. To enable signature verification for all protected models, specify'All'for themodelargument. 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 namedmyProtectedModel.

    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 andfalsefor 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 logical1(true) or0(false).

    Version History

    介绍了R2020b