Home
last modified time | relevance | path

Searched refs:cbor_map_add (Results 1 – 16 of 16) sorted by relevance

/freebsd/contrib/libcbor/test/
H A Dcopy_test.c125 assert_true(cbor_map_add(item, (struct cbor_pair){ in test_def_map()
138 assert_true(cbor_map_add(item, (struct cbor_pair){ in test_indef_map()
339 assert_true(cbor_map_add(item, (struct cbor_pair){ in test_definite_map()
356 assert_true(cbor_map_add(item, (struct cbor_pair){ in test_definite_indef_map()
375 assert_true(cbor_map_add(item, (struct cbor_pair){ in test_definite_indef_map_nested()
399 assert_true(cbor_map_add(item, (struct cbor_pair){ in test_definite_map_alloc_failure()
412 assert_true(cbor_map_add(item, (struct cbor_pair){ in test_definite_map_key_alloc_failure()
428 assert_true(cbor_map_add(item, (struct cbor_pair){ in test_definite_map_value_alloc_failure()
669 cbor_map_add(item, (struct cbor_pair){cbor_move(cbor_build_uint8(42)), in test_map_alloc_failure()
681 cbor_map_add(item, (struct cbor_pair){cbor_move(cbor_build_uint8(42)), in test_map_key_alloc_failure()
[all …]
H A Dmap_test.c187 assert_false(cbor_map_add(map, (struct cbor_pair){.key = one, .value = two})); in test_map_add_full()
204 assert_false(cbor_map_add(map, (struct cbor_pair){.key = one, .value = two})); in test_map_add_too_big_to_realloc()
229 cbor_map_add(map, (struct cbor_pair){.key = key, .value = value})); in test_map_add()
H A Dpretty_printer_test.c136 assert_true(cbor_map_add( in test_definite_map()
149 assert_true(cbor_map_add( in test_indefinite_map()
H A Dcbor_serialize_test.c359 assert_true(cbor_map_add(item, (struct cbor_pair){.key = one, .value = two})); in test_serialize_definite_map()
360 assert_true(cbor_map_add(item, (struct cbor_pair){.key = two, .value = one})); in test_serialize_definite_map()
376 assert_true(cbor_map_add(item, (struct cbor_pair){.key = one, .value = two})); in test_serialize_indefinite_map()
377 assert_true(cbor_map_add(item, (struct cbor_pair){.key = two, .value = one})); in test_serialize_indefinite_map()
392 assert_true(cbor_map_add(item, (struct cbor_pair){.key = one, .value = two})); in test_serialize_map_no_space()
/freebsd/contrib/libcbor/examples/
H A Dcreate_items.c15 bool success = cbor_map_add( in main()
19 success &= cbor_map_add( in main()
/freebsd/contrib/libfido2/src/
H A Des256.c86 !cbor_map_add(item, argv[0])) in es256_pk_encode()
103 !cbor_map_add(item, argv[1])) in es256_pk_encode()
109 !cbor_map_add(item, argv[2])) in es256_pk_encode()
115 sizeof(pk->x))) == NULL || !cbor_map_add(item, argv[3])) in es256_pk_encode()
121 sizeof(pk->y))) == NULL || !cbor_map_add(item, argv[4])) in es256_pk_encode()
H A Dcbor.c241 if (!cbor_map_add(item, pair)) { in cbor_add_bytestring()
270 if (!cbor_map_add(item, pair)) { in cbor_add_string()
299 if (!cbor_map_add(item, pair)) { in cbor_add_bool()
328 if (!cbor_map_add(item, pair)) { in cbor_add_uint8()
361 if (!cbor_map_add(item, pair)) { in cbor_add_arg()
498 if (cbor_map_add(body, alg) == false || in cbor_encode_pubkey_param()
848 if (!cbor_map_add(item, pair)) { in cbor_encode_hmac_secret_param()
H A Du2f.c459 !cbor_map_add(item, kv[0])) { in encode_cred_attstmt()
466 !cbor_map_add(item, kv[1])) { in encode_cred_attstmt()
475 !cbor_map_add(item, kv[2])) { in encode_cred_attstmt()
/freebsd/contrib/libcbor/src/cbor/
H A Dmaps.h66 _CBOR_NODISCARD CBOR_EXPORT bool cbor_map_add(cbor_item_t* item,
H A Dmaps.c107 bool cbor_map_add(cbor_item_t* item, struct cbor_pair pair) { in cbor_map_add() function
/freebsd/contrib/libfido2/fuzz/
H A Dwrapped.sym21 cbor_map_add
H A Dwrap.c598 cbor_map_add,
/freebsd/contrib/libcbor/doc/source/api/
H A Dtype_5_maps.rst62 .. doxygenfunction:: cbor_map_add
/freebsd/contrib/libcbor/
H A DREADME.md96 bool success = cbor_map_add(
100 success &= cbor_map_add(
/freebsd/contrib/libcbor/src/
H A Dcbor.c273 if (!cbor_map_add(res, (struct cbor_pair){.key = key_copy, in cbor_copy()
405 const bool item_added _CBOR_UNUSED = cbor_map_add( in cbor_copy_definite()
/freebsd/contrib/libfido2/regress/
H A Dcred.c2907 assert(cbor_map_add(map, kv)); in push_kv()