chsvlib
chsv helper source code

◆ security_constraint_violation_procedure

typedef void(* security_constraint_violation_procedure) (const char *file, unsigned line, const char *func)

A type alias for a pointer to a procedure used to react upon a runtime constraint violation as defined in the ISO-IEC TR 24731-1 specification.

Parameters
fileA string with a path of a source code file in which the violation is detected.
lineA line with the offending conditional expression detected by verify_security_constraint.
funcA name of a function with the offending expression.

This is the point of customization of the way to react to the runtime constraint violation which is useful for testing and debugging. The predefined reacting procedures are security_constraint_assertion_proc and security_constraint_verification_proc.