master
1/***************************************************************************
2 * _ _ ____ _
3 * Project ___| | | | _ \| |
4 * / __| | | | |_) | |
5 * | (__| |_| | _ <| |___
6 * \___|\___/|_| \_\_____|
7 *
8 * Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
9 *
10 * This software is licensed as described in the file COPYING, which
11 * you should have received as part of this distribution. The terms
12 * are also available at https://curl.se/docs/copyright.html.
13 *
14 * You may opt to use, copy, modify, merge, publish, distribute and/or sell
15 * copies of the Software, and permit persons to whom the Software is
16 * furnished to do so, under the terms of the COPYING file.
17 *
18 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19 * KIND, either express or implied.
20 *
21 * SPDX-License-Identifier: curl
22 *
23 ***************************************************************************/
24#include "unitcheck.h"
26#if defined(USE_GNUTLS) || defined(USE_SCHANNEL) || defined(USE_MBEDTLS) || \
27 defined(USE_RUSTLS)
29#include "vtls/x509asn1.h"
30#include "vtls/vtls.h"
32struct test_1667 {
33 unsigned char tag;
34 const char *asn1;
35 const size_t size;
36 const char *out;
37 CURLcode result_exp;
38};
40static bool test1667(const struct test_1667 *spec, size_t i,
41 struct dynbuf *dbuf)
42{
43 CURLcode result;
44 bool ok = TRUE;
45 struct Curl_asn1Element elem;
47 curlx_dyn_reset(dbuf);
49 /* setup private struct for this invoke */
50 elem.tag = spec->tag;
51 elem.header = NULL;
52 elem.beg = (const uint8_t *)spec->asn1;
53 elem.end = elem.beg + spec->size;
54 elem.eclass = 0;
55 elem.constructed = 0;
57 result = ASN1tostr(dbuf, &elem);
58 if(result != spec->result_exp) {
59 curl_mfprintf(stderr, "test %zu (type %u): expect result %d, got %d\n",
60 i, spec->tag, (int)spec->result_exp, (int)result);
61 if(!spec->result_exp) {
62 curl_mfprintf(stderr, "test %zu: expected output '%s'\n",
63 i, spec->out);
64 }
65 ok = FALSE;
66 }
67 else if(!result) {
68 /* use strlen on the pointer instead of curlx_dyn_len() because for some
69 of these type, the code explicitly adds a null-terminator which is then
70 counted as buffer size. */
71 size_t actual_len = strlen(curlx_dyn_ptr(dbuf));
72 if(strlen(spec->out) != actual_len) {
73 curl_mfprintf(stderr,
74 "test %zu (type %u): "
75 "unexpected length. Got %zu, expected %zu)\n",
76 i, spec->tag, actual_len, strlen(spec->out));
77 ok = FALSE;
78 }
79 if(strcmp(spec->out, curlx_dyn_ptr(dbuf))) {
80 size_t loop;
81 const uint8_t *data = curlx_dyn_uptr(dbuf);
82 const size_t len = curlx_dyn_len(dbuf);
83 curl_mfprintf(stderr,
84 "test %zu (type %u): "
85 "expected output '%s', got '%s' (length %zu)\n",
86 i, spec->tag, spec->out, data, len);
87 for(loop = 0; loop < len; loop++)
88 curl_mfprintf(stderr, "test %zu: index %zu byte %02x\n",
89 i, loop, data[loop]);
90 ok = FALSE;
91 }
92 }
94 return ok;
95}
97static CURLcode test_unit1667(const char *arg)
98{
99 UNITTEST_BEGIN_SIMPLE
101 static const struct test_1667 test_specs[] = {
102 /* unsupported type > CURL_ASN1_BMP_STRING (30) */
103 { 31, "abcde", 5, "", CURLE_BAD_FUNCTION_ARGUMENT },
104 { 99, "abcde", 5, "", CURLE_BAD_FUNCTION_ARGUMENT },
106 /* (many different) strings:
108 CURL_ASN1_UTF8_STRING
109 CURL_ASN1_NUMERIC_STRING
110 CURL_ASN1_PRINTABLE_STRING
111 CURL_ASN1_TELETEX_STRING
112 CURL_ASN1_IA5_STRING
113 CURL_ASN1_VISIBLE_STRING
114 CURL_ASN1_UNIVERSAL_STRING
115 CURL_ASN1_BMP_STRING
116 */
117 { CURL_ASN1_UTF8_STRING, "abcde", 5, "abcde", CURLE_OK },
118 /* a with ring, a with umlaut, o with umlaut in UTF-8 encoding */
119 { CURL_ASN1_UTF8_STRING, "\xc3\xa5\xc3\xa4\xc3\xb6", 6,
120 "\xc3\xa5\xc3\xa4\xc3\xb6", CURLE_OK },
121 { CURL_ASN1_NUMERIC_STRING, "abcde", 5, "abcde", CURLE_OK },
122 { CURL_ASN1_PRINTABLE_STRING, "abcde", 5, "abcde", CURLE_OK },
123 { CURL_ASN1_TELETEX_STRING, "abcde", 5, "abcde", CURLE_OK },
124 { CURL_ASN1_IA5_STRING, "abcde", 5, "abcde", CURLE_OK },
125 { CURL_ASN1_VISIBLE_STRING, "abcde", 5, "abcde", CURLE_OK },
126 { CURL_ASN1_UNIVERSAL_STRING, "abcde", 5, "abcde",
127 CURLE_BAD_FUNCTION_ARGUMENT },
128 { CURL_ASN1_UNIVERSAL_STRING, "abcd", 4, "abcd",
129 CURLE_WEIRD_SERVER_REPLY },
130 { CURL_ASN1_UNIVERSAL_STRING, "\x00\x00\x12\x34", 4, "\xe1\x88\xb4",
131 CURLE_OK },
132 { CURL_ASN1_BMP_STRING, "abcde", 5, "abcde", CURLE_BAD_FUNCTION_ARGUMENT },
134 /* Generalized Time */
135 /* GTime2str() is tested separately in unit test 1656 */
136 { CURL_ASN1_GENERALIZED_TIME, "19851106210627.3", 16,
137 "1985-11-06 21:06:27.3", CURLE_OK },
138 { CURL_ASN1_GENERALIZED_TIME, "19851106210627.3Z", 17,
139 "1985-11-06 21:06:27.3 GMT", CURLE_OK },
140 { CURL_ASN1_GENERALIZED_TIME, "19851106210627.3-0500", 21,
141 "1985-11-06 21:06:27.3 UTC-0500", CURLE_OK },
142 /* Generalized Time: Invalid month (13). Still fine! */
143 { CURL_ASN1_GENERALIZED_TIME, "20231301000000Z", 15,
144 "2023-13-01 00:00:00 GMT", CURLE_OK },
145 /* Generalized Time: Valid millisecond precision */
146 { CURL_ASN1_GENERALIZED_TIME, "20230101000000.123Z", 19,
147 "2023-01-01 00:00:00.123 GMT", CURLE_OK },
149 /* UTC Time */
150 { CURL_ASN1_UTC_TIME, "991231235959Z", 13, "1999-12-31 23:59:59 GMT",
151 CURLE_OK },
152 { CURL_ASN1_UTC_TIME, "991231235959+0200", 17, "1999-12-31 23:59:59 +0200",
153 CURLE_OK },
154 { CURL_ASN1_UTC_TIME, "991231235959-0200", 17, "1999-12-31 23:59:59 -0200",
155 CURLE_OK },
156 { CURL_ASN1_UTC_TIME, "991231235959+999", 16, "1999-12-31 23:59:59 +999",
157 CURLE_OK },
158 /* Leap year check (Feb 29, 2024) */
159 { CURL_ASN1_UTC_TIME, "240229120000Z", 13, "2024-02-29 12:00:00 GMT",
160 CURLE_OK },
161 /* Century roll-over (00-49 is 20xx, 50-99 is 19xx) */
162 { CURL_ASN1_UTC_TIME, "491231235959Z", 13, "2049-12-31 23:59:59 GMT",
163 CURLE_OK },
164 { CURL_ASN1_UTC_TIME, "500101000000Z", 13, "1950-01-01 00:00:00 GMT",
165 CURLE_OK },
167 /* Object Identifier (encodeOID() is tested in unit test 1666) */
169 /* 1.2.840.10040.4.1 */
170 { CURL_ASN1_OBJECT_IDENTIFIER, "\x2A\x86\x48\xCE\x38\x04\x01", 7,
171 "dsa", CURLE_OK },
172 /* 1.2.840.113549.1.1.13 */
173 { CURL_ASN1_OBJECT_IDENTIFIER, "\x2A\x86\x48\x86\xF7\x0D\x01\x01\x0D", 9,
174 "sha512WithRSAEncryption", CURLE_OK },
175 /* 1.2.840.10040.4.2 */
176 { CURL_ASN1_OBJECT_IDENTIFIER, "\x2A\x86\x48\xCE\x38\x04\x02", 7,
177 "1.2.840.10040.4.2", CURLE_OK },
178 /* 2.16.840.1.101.3.4.2.3 */
179 { CURL_ASN1_OBJECT_IDENTIFIER, "\x60\x86\x48\x01\x65\x03\x04\x02\x03", 9,
180 "sha512", CURLE_OK },
181 /* 2.999 -> (2*40) + 999 = 1079. 1079 in VLQ is 0x88 0x37 */
182 { CURL_ASN1_OBJECT_IDENTIFIER, "\x88\x37\x03", 3, "2.999.3",
183 CURLE_OK },
184 /* 1.0 (Minimum possible OID length/value)
185 (1*40) + 0 = 40 (0x28) */
186 { CURL_ASN1_OBJECT_IDENTIFIER, "\x28", 1, "1.0", CURLE_OK },
187 /* Malformed (Incomplete multi-byte SID, MSB set but no following byte) */
188 { CURL_ASN1_OBJECT_IDENTIFIER, "\x88", 1, "",
189 CURLE_BAD_FUNCTION_ARGUMENT },
191 /* NULL */
192 { CURL_ASN1_NULL, "", 0, "", CURLE_OK },
193 { CURL_ASN1_NULL, "a", 1, "", CURLE_OK },
194 { CURL_ASN1_NULL, "aa", 2, "", CURLE_OK },
196 /* Octet string */
197 { CURL_ASN1_OCTET_STRING, "\x00\x00\x00\x04\x05", 5, "00:00:00:04:05:",
198 CURLE_OK },
199 { CURL_ASN1_OCTET_STRING, "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff"
200 "\xff\xff", 14, "", CURLE_TOO_LARGE},
202 /* Bit string. The first byte is number of unused bits. */
203 { CURL_ASN1_BIT_STRING, "\x00\x55", 2, "55:", CURLE_OK },
204 /* Invalid number of unused bits (> 7) */
205 { CURL_ASN1_BIT_STRING, "\x08\x55", 2, "", CURLE_BAD_FUNCTION_ARGUMENT },
206 { CURL_ASN1_BIT_STRING, "\x00\xaa\x55", 3, "aa:55:", CURLE_OK },
207 { CURL_ASN1_BIT_STRING, "\x00\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff"
208 "\xff\xff", 15, "", CURLE_TOO_LARGE},
209 /* 3 unused bits, data 0xF0 (11110000)
210 The '0' at the end of 11110... are the unused bits. */
211 { CURL_ASN1_BIT_STRING, "\x03\xf0", 2, "f0:", CURLE_OK },
213 /* Integer */
214 { CURL_ASN1_INTEGER, "\x00", 1, "0", CURLE_OK },
215 { CURL_ASN1_INTEGER, "\x01", 1, "1", CURLE_OK },
216 { CURL_ASN1_INTEGER, "\x09", 1, "9", CURLE_OK },
217 { CURL_ASN1_INTEGER, "\x0a", 1, "10", CURLE_OK },
218 { CURL_ASN1_INTEGER, "\xb", 1, "11", CURLE_OK },
219 { CURL_ASN1_INTEGER, "\x11", 1, "17", CURLE_OK },
220 { CURL_ASN1_INTEGER, "\x7f", 1, "127", CURLE_OK },
221 { CURL_ASN1_INTEGER, "\x80", 1, "-128", CURLE_OK },
222 { CURL_ASN1_INTEGER, "\x81", 1, "-127", CURLE_OK },
223 { CURL_ASN1_INTEGER, "\x82", 1, "-126", CURLE_OK },
224 { CURL_ASN1_INTEGER, "\xff", 1, "-1", CURLE_OK },
225 { CURL_ASN1_INTEGER, "\x27\x0f", 2, "9999", CURLE_OK },
226 { CURL_ASN1_INTEGER, "\x27\x10", 2, "0x2710", CURLE_OK },
227 { CURL_ASN1_INTEGER, "\x7f\x81", 2, "0x7f81", CURLE_OK },
229 /* sign-extended, would be -32385 in decimal */
230 { CURL_ASN1_INTEGER, "\x81\x7f", 2, "0xffff817f", CURLE_OK },
231 { CURL_ASN1_INTEGER, "\xff\xff", 2, "-1", CURLE_OK },
232 { CURL_ASN1_INTEGER, "\x00\x00", 2, "0", CURLE_OK },
233 { CURL_ASN1_INTEGER, "\x01\x02\x03", 3, "0x10203", CURLE_OK },
234 { CURL_ASN1_INTEGER, "\xff\x02\xff", 3, "0xffff02ff", CURLE_OK },
235 { CURL_ASN1_INTEGER, "\x00\xff\x00", 3, "0xff00", CURLE_OK },
236 { CURL_ASN1_INTEGER, "\x01\x02\x03\x04", 4, "0x1020304", CURLE_OK },
237 { CURL_ASN1_INTEGER, "\xff\x02\x03\x04", 4, "0xff020304", CURLE_OK },
238 { CURL_ASN1_INTEGER, "\x00\x00\x00\x04", 4, "4", CURLE_OK },
239 { CURL_ASN1_INTEGER, "\x00\x00\x00\x04\x05", 5, "00:00:00:04:05:",
240 CURLE_OK },
241 { CURL_ASN1_INTEGER, "\xff\x00\x00\x04\x05", 5, "ff:00:00:04:05:",
242 CURLE_OK },
243 { CURL_ASN1_INTEGER, "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff",
244 11, "ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:", CURLE_OK },
245 { CURL_ASN1_INTEGER, "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff"
246 "\xff", 12, "ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:", CURLE_OK },
247 { CURL_ASN1_INTEGER, "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff"
248 "\xff\xff", 14, "", CURLE_TOO_LARGE},
249 { CURL_ASN1_INTEGER, "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff"
250 "\xff\xff\xff", 15, "", CURLE_TOO_LARGE },
251 { CURL_ASN1_INTEGER, "", 0, "", CURLE_BAD_FUNCTION_ARGUMENT },
252 /* Leading zero required if the MSB of the next byte is 1 (to keep it
253 positive) */
254 { CURL_ASN1_INTEGER, "\x00\x80", 2, "128", CURLE_OK },
256 /* Enumerated works the same as Integer */
257 { CURL_ASN1_ENUMERATED, "\x00", 1, "0", CURLE_OK },
258 { CURL_ASN1_ENUMERATED, "\x01", 1, "1", CURLE_OK },
259 { CURL_ASN1_ENUMERATED, "\x09", 1, "9", CURLE_OK },
260 { CURL_ASN1_ENUMERATED, "\x0a", 1, "10", CURLE_OK },
261 { CURL_ASN1_ENUMERATED, "\xb", 1, "11", CURLE_OK },
262 { CURL_ASN1_ENUMERATED, "\x11", 1, "17", CURLE_OK },
263 { CURL_ASN1_ENUMERATED, "\x7f", 1, "127", CURLE_OK },
264 { CURL_ASN1_ENUMERATED, "\x80", 1, "-128", CURLE_OK },
265 { CURL_ASN1_ENUMERATED, "\xff", 1, "-1", CURLE_OK },
266 { CURL_ASN1_ENUMERATED, "\x7f\x81", 2, "0x7f81", CURLE_OK },
267 { CURL_ASN1_ENUMERATED, "\xff\xff", 2, "-1", CURLE_OK },
268 { CURL_ASN1_ENUMERATED, "\x00\x00", 2, "0", CURLE_OK },
269 { CURL_ASN1_ENUMERATED, "\x01\x02\x03", 3, "0x10203", CURLE_OK },
270 { CURL_ASN1_ENUMERATED, "\xff\x02\xff", 3, "0xffff02ff", CURLE_OK },
271 { CURL_ASN1_ENUMERATED, "\x00\xff\x00", 3, "0xff00", CURLE_OK },
272 { CURL_ASN1_ENUMERATED, "\x01\x02\x03\x04", 4, "0x1020304", CURLE_OK },
273 { CURL_ASN1_ENUMERATED, "\xff\x02\x03\x04", 4, "0xff020304", CURLE_OK },
274 { CURL_ASN1_ENUMERATED, "\x00\x00\x00\x04", 4, "4", CURLE_OK },
275 { CURL_ASN1_ENUMERATED, "\x00\x00\x00\x04\x05", 5, "00:00:00:04:05:",
276 CURLE_OK },
277 { CURL_ASN1_ENUMERATED, "\xff\x00\x00\x04\x05", 5, "ff:00:00:04:05:",
278 CURLE_OK },
279 { CURL_ASN1_ENUMERATED, "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff",
280 11, "ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:", CURLE_OK },
281 { CURL_ASN1_ENUMERATED, "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff"
282 "\xff", 12, "ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:", CURLE_OK },
283 { CURL_ASN1_ENUMERATED, "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff"
284 "\xff\xff", 14, "", CURLE_TOO_LARGE},
285 { CURL_ASN1_ENUMERATED, "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff"
286 "\xff\xff\xff", 15, "", CURLE_TOO_LARGE },
287 { CURL_ASN1_ENUMERATED, "", 0, "", CURLE_BAD_FUNCTION_ARGUMENT },
289 /* Boolean */
290 { CURL_ASN1_BOOLEAN, "\xff", 1, "TRUE", CURLE_OK },
291 { CURL_ASN1_BOOLEAN, "\x01", 1, "", CURLE_BAD_FUNCTION_ARGUMENT },
292 { CURL_ASN1_BOOLEAN, "\x02", 1, "", CURLE_BAD_FUNCTION_ARGUMENT },
293 { CURL_ASN1_BOOLEAN, "\x00", 1, "FALSE", CURLE_OK },
294 { CURL_ASN1_BOOLEAN, "\x01\x01", 2, "", CURLE_BAD_FUNCTION_ARGUMENT },
295 { CURL_ASN1_BOOLEAN, "\x00\x01", 2, "", CURLE_BAD_FUNCTION_ARGUMENT },
296 { CURL_ASN1_BOOLEAN, "", 0, "", CURLE_BAD_FUNCTION_ARGUMENT },
297 };
299 size_t i;
300 struct dynbuf dbuf;
301 bool all_ok = TRUE;
303 if(curl_global_init(CURL_GLOBAL_ALL) != CURLE_OK) {
304 curl_mfprintf(stderr, "curl_global_init() failed\n");
305 return TEST_ERR_MAJOR_BAD;
306 }
308 /* the real code uses CURL_X509_STR_MAX for maximum size, but we set a
309 smaller one here so that we can test running into the limit a little
310 easier */
311 curlx_dyn_init(&dbuf, 40);
313 for(i = 0; i < CURL_ARRAYSIZE(test_specs); ++i) {
314 if(!test1667(&test_specs[i], i, &dbuf))
315 all_ok = FALSE;
316 }
317 fail_unless(all_ok, "some tests of ASN1tostr() failed");
319 curlx_dyn_free(&dbuf);
320 curl_global_cleanup();
322 UNITTEST_END_SIMPLE
323}
325#else
327static CURLcode test_unit1667(const char *arg)
328{
329 UNITTEST_BEGIN_SIMPLE
330 puts("not tested since ASN1tostr() is not built in");
331 UNITTEST_END_SIMPLE
332}
334#endif
Diagnostics4 git calls · 164 ms
CallStatusSizeTime0164 ms
discover200152 B2 ms
git.upload-pack discover http.response.status_code=200 git.upstream.cf_ray=- git.upstream.phase=ls-refs git.upstream.dur_ms=2 git.response.bytes=152 git.server.agent=gitty/1.0 git.server.object_format=sha1 git.server.caps=agent ls-refs fetch object-format git.server.fetch=shallow filter sideband-all git.protocol.version=2 git.pkt.frames=8 git.pkt.data=6 git.pkt.flush=2 git.pkt.delim=0 git.pkt.bytes=152 git.pkt.payload.max=34
ls-refs200149 B · hit2 ms
git.upload-pack ls-refs http.response.status_code=200 git.upstream.cf_ray=- git.upstream.phase=ls-refs git.upstream.dur_ms=2 git.response.bytes=149 git.response.cache=HIT git.response.duration_ms=2 git.protocol.version=2 git.pkt.frames=3 git.pkt.data=2 git.pkt.flush=1 git.pkt.delim=0 git.pkt.bytes=149 git.pkt.payload.max=78 git.ls_refs.count=2 git.ls_refs.head=refs/heads/master
fetchblob:none · deepen 10200287 KiB · hit4 ms
git.upload-pack fetch http.response.status_code=200 git.upstream.cf_ray=- git.upstream.phase=fetch git.upstream.dur_ms=3 git.response.bytes=293470 git.response.cache=HIT git.response.duration_ms=4 git.fetch.filter=blob:none git.fetch.filter.requested=tree:0 git.fetch.filter.fallback=blob:none git.fetch.filter.learned=false git.fetch.wants=31c911efe5652725e930f4d2e60c9060e5f6646d git.fetch.haves.count=0 git.fetch.deepen=10 git.fetch.thin_pack=false git.fetch.ofs_delta=true git.protocol.version=2 git.pkt.frames=10 git.pkt.data=8 git.pkt.flush=1 git.pkt.delim=1 git.pkt.bytes=293470 git.pkt.payload.max=65516 git.sideband.band1.bytes=293354 git.sideband.band2.bytes=0 git.sideband.band3.bytes=0 git.pack.objects=87 git.pack.bytes=293354 git.pack.ofs_delta=0 git.pack.ref_delta=1 git.pack.chain.max=1 git.pack.trailer=6a646bcda6740bab42e321b51998b52ea15146c0 git.pack.full=86Open pack map
fetch2003.9 KiB158 ms
git.upload-pack fetch http.response.status_code=200 git.upstream.cf_ray=- git.upstream.phase=fetch git.upstream.dur_ms=158 git.response.bytes=3970 git.response.cache=MISS git.response.duration_ms=158 git.fetch.wants=5e7325ce75b8aeb8e5df0e39cba6fca0df9c23cd git.fetch.haves.count=0 git.fetch.deepen=0 git.fetch.thin_pack=false git.fetch.ofs_delta=true git.protocol.version=2 git.pkt.frames=3 git.pkt.data=2 git.pkt.flush=1 git.pkt.delim=0 git.pkt.bytes=3970 git.pkt.payload.max=3949 git.sideband.band1.bytes=3948 git.sideband.band2.bytes=0 git.sideband.band3.bytes=0
Each row is one HTTP round trip ply made to the git server for this page, on one timeline. discover asks what the server speaks, ls-refs lists branch tips, fetch brings objects by id. A hit was served by Workers Cache. Tap a row for its wire details.
- Remote
- https://5ad2236b39de4c8bd8f6270ea63f3ea9.artifacts.cloudflare.net/git/public-v0/curl.git
- Ref
- refs/heads/master
- Commit
- 31c911efe5652725e930f4d2e60c9060e5f6646d
- cf-ray
- a5e2004c9c76a9c0
- Request
- 15a3c4f7…
- Protocol
- v2 · sha1
- Agent
- gitty/1.0
- Filter
- advertised
- Fetch
- shallow filter sideband-all
- Capabilities
- agent ls-refs fetch object-format