Searched refs:pxml (Results 1 - 5 of 5) sorted by relevance
/openbsd-current/usr.sbin/rpki-client/ |
H A D | rrdp_util.c | 37 struct publish_xml *pxml; local 39 if ((pxml = calloc(1, sizeof(*pxml))) == NULL) 42 pxml->type = type; 43 pxml->uri = uri; 45 assert(hlen == sizeof(pxml->hash)); 46 memcpy(pxml->hash, hash, hlen); 49 return pxml; 53 free_publish_xml(struct publish_xml *pxml) argument 55 if (pxml 68 publish_add_content(struct publish_xml *pxml, const char *buf, int length) argument 105 publish_done(struct rrdp *s, struct publish_xml *pxml) argument [all...] |
H A D | rrdp_delta.c | 44 struct publish_xml *pxml; member in struct:delta_xml 149 dxml->pxml = new_publish_xml(pub, uri, hash, 163 if (publish_done(dxml->rrdp, dxml->pxml) != 0) 165 dxml->pxml = NULL; 222 if (publish_add_content(dxml->pxml, content, length) == -1) 224 "big", dxml->pxml->uri); 267 free_publish_xml(dxml->pxml);
|
H A D | rrdp_snapshot.c | 42 struct publish_xml *pxml; member in struct:snapshot_xml 138 sxml->pxml = new_publish_xml(PUB_ADD, uri, NULL, 0); 151 if (publish_done(sxml->rrdp, sxml->pxml) != 0) 153 sxml->pxml = NULL; 202 if (publish_add_content(sxml->pxml, content, length) == -1) 204 "too big", sxml->pxml->uri); 248 free_publish_xml(sxml->pxml);
|
H A D | rrdp.c | 161 rrdp_publish_file(struct rrdp *s, struct publish_xml *pxml, argument 172 io_simple_buffer(b, &pxml->type, sizeof(pxml->type)); 173 if (pxml->type != PUB_ADD) 174 io_simple_buffer(b, &pxml->hash, sizeof(pxml->hash)); 175 io_str_buffer(b, pxml->uri);
|
/openbsd-current/regress/usr.sbin/rpki-client/ |
H A D | test-rrdp.c | 105 rrdp_publish_file(struct rrdp *s, struct publish_xml *pxml, argument 111 switch (pxml->type) { 117 hash = hex_encode(pxml->hash, sizeof(pxml->hash)); 121 hash = hex_encode(pxml->hash, sizeof(pxml->hash)); 126 logx("uri: %s", pxml->uri);
|
Completed in 201 milliseconds