Searched refs:tal (Results 1 - 15 of 15) sorted by relevance

/openbsd-current/usr.sbin/rpki-client/
H A Dtal.c1 /* $OpenBSD: tal.c,v 1.40 2024/03/22 03:38:12 job Exp $ */
41 static struct tal *
48 struct tal *tal = NULL; local
52 if ((tal = calloc(1, sizeof(struct tal))) == NULL)
98 tal->uri = reallocarray(tal->uri,
99 tal->urisz + 1, sizeof(char *));
100 if (tal
[all...]
H A Dfilemode.c48 struct tal *talobj[TALSZ_MAX];
241 parse_load_ta(struct tal *tal) argument
250 filename = strrchr(tal->uri[0], '/');
253 if (asprintf(&file, "ta/%s%s", tal->descr, filename) == -1)
264 cert = ta_parse(file, cert, tal->pkey, tal->pkeysz);
268 cert->talid = tal->id;
270 for (i = 0; i < tal->urisz; i++) {
271 if (strncasecmp(tal
286 struct tal *tal; local
351 struct tal *tal = NULL; local
661 struct tal *tal; local
[all...]
H A Dmain.c457 queue_add_from_tal(struct tal *tal) argument
463 assert(tal->urisz);
465 if ((taldescs[tal->id] = strdup(tal->descr)) == NULL)
469 nfile = strrchr(tal->uri[0], '/');
475 repo = ta_lookup(tal->id, tal);
481 /* steal the pkey from the tal structure */
482 data = tal
569 struct tal *tal; local
[all...]
H A DMakefile9 rsc.c rsync.c spl.c tak.c tal.c validate.c x509.c
H A Dextern.h152 struct tal { struct
157 char *descr; /* basename of tal file */
325 * A Signed TAL (TAK) draft-ietf-sidrops-signed-tal-12
570 int talid; /* tal identifier */
669 void tal_buffer(struct ibuf *, const struct tal *);
670 void tal_free(struct tal *);
671 struct tal *tal_parse(const char *, char *, size_t);
672 struct tal *tal_read(struct ibuf *);
851 struct repo *ta_lookup(int, struct tal *);
931 void tal_print(const struct tal *);
[all...]
H A Drepo.c388 ta_get(struct tal *tal) argument
400 if ((tr->descr = strdup(tal->descr)) == NULL)
402 tr->basedir = repo_dir(tal->descr, ".ta", 0);
413 tr->urisz = tal->urisz;
414 tr->uri = tal->uri;
415 tal->urisz = 0;
416 tal->uri = NULL;
1099 ta_lookup(int id, struct tal *tal) argument
[all...]
H A Dconstraints.c54 * If there is a .constraints file next to a .tal file, load its contents
63 const char *tal = tals[talid]; local
71 if (rtype_from_file_extension(tal) != RTYPE_TAL)
74 /* Replace .tal suffix with .constraints. */
75 len = strlen(tal) - 4;
76 if (asprintf(&constraints, "%.*s.constraints", (int)len, tal) == -1)
89 err(1, "failed to load constraints for %s", tal);
H A Dparser.c836 struct tal *tal; local
876 if ((tal = tal_parse(entp->file, entp->data,
878 errx(1, "%s: could not parse tal file",
880 tal->id = entp->talid;
881 tal_buffer(b, tal);
882 tal_free(tal);
H A Dprint.c102 tal_print(const struct tal *p)
117 json_do_string("type", "tal");
122 json_do_string("tal", p->uri[i]);
/openbsd-current/regress/usr.sbin/rpki-client/
H A Drepo-dummy.c9 repo_stat_inc(struct repo *repo, int tal, enum rtype type, enum stype subtype) argument
H A Dtest-tal.c1 /* $Id: test-tal.c,v 1.14 2024/04/22 05:54:01 claudio Exp $ */
43 struct tal *tal; local
66 tal = tal_parse(argv[i], buf, len);
68 if (tal == NULL)
71 tal_print(tal);
72 tal_free(tal);
H A Dtest-cert.c78 struct tal *tal; local
81 tal = tal_parse(tal_path, buf, len);
83 if (tal == NULL)
91 p = ta_parse(cert_path, p, tal->pkey, tal->pkeysz);
92 tal_free(tal);
H A DMakefile.inc12 PROGS += test-tal
34 TALARGS += ta/AfriNIC.cer tal/afrinic.tal
35 TALARGS += ta/apnic-rpki-root-iana-origin.cer tal/apnic.tal
36 TALARGS += ta/ripe-ncc-ta.cer tal/ripe.tal
39 tal.c validate.c encoding.c print.c mft.c json.c \
75 SRCS_test-tal+= test-tal
[all...]
/openbsd-current/etc/
H A DMakefile159 afrinic.tal apnic.tal lacnic.tal ripe.tal \
/openbsd-current/games/canfield/canfield/
H A Dcanfield.c108 #define tal 2 macro
1167 origin = tal;
1283 mtforigin = tal;
1293 } else if (mtforigin == tal) {

Completed in 229 milliseconds