Lines Matching full:as
1 /* $OpenBSD: as.c,v 1.17 2024/11/12 09:23:07 tb Exp $ */
9 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
26 /* Parse a uint32_t AS identifier from an ASN1_INTEGER. */
41 * Given a newly-parsed AS number or range "as", make sure that "as" does
47 as_check_overlap(const struct cert_as *as, const char *fn,
55 (as->type == CERT_AS_INHERIT || ases[0].type == CERT_AS_INHERIT)) {
69 switch (as->type) {
71 if (as->id != ases[i].id)
84 switch (as->type) {
86 if (ases[i].range.min > as->id ||
87 ases[i].range.max < as->id)
91 if (as->range.max < ases[i].range.min ||
92 as->range.min > ases[i].range.max)
113 * See if a given AS range (which may be the same number, in the case of
114 * singleton AS identifiers) is covered by the AS numbers or ranges
140 as_warn(const char *fn, const char *msg, const struct cert_as *as)
142 switch (as->type) {
144 warnx("%s: %s: AS %u", fn, msg, as->id);
147 warnx("%s: %s: AS range %u--%u", fn, msg, as->range.min,
148 as->range.max);
151 warnx("%s: %s: AS (inherit)", fn, msg);