Lines Matching defs:constraints
1 /* $OpenBSD: constraints.c,v 1.5 2024/11/12 09:23:07 tb Exp $ */
40 int fd; /* constraints file descriptor or -1. */
41 char *fn; /* constraints filename */
54 * If there is a .constraints file next to a .tal file, load its contents
64 char *constraints = NULL, *warning = NULL, *cbn;
74 /* Replace .tal suffix with .constraints. */
76 if (asprintf(&constraints, "%.*s.constraints", (int)len, tal) == -1)
80 if ((cbn = basename(constraints)) == NULL)
87 fd = open(constraints, O_RDONLY);
89 err(1, "failed to load constraints for %s", tal);
91 tal_constraints[talid].fn = constraints;
99 * Iterate over all TALs and load the corresponding constraints files.
314 errx(1, "%s: failed to push constraints", fn);
322 * If there is a constraints file for tals[talid], load it into a buffer
501 * Iterate over all TALs and parse the constraints files loaded previously.
564 * Check whether an EE cert's resources are covered by its TAL's constraints.