Home
last modified time | relevance | path

Searched full:cbor (Results 1 – 22 of 22) sorted by relevance

/openbmc/bmcweb/http/
H A Dcomplete_response_fields.hpp32 std::array<ContentType, 3> allowed{ContentType::CBOR, ContentType::JSON, in completeResponseFields()
40 else if (preferred == ContentType::CBOR) in completeResponseFields()
43 "application/cbor"); in completeResponseFields()
44 std::string cbor; in completeResponseFields() local
45 nlohmann::json::to_cbor(res.jsonValue, cbor); in completeResponseFields()
46 res.write(std::move(cbor)); in completeResponseFields()
/openbmc/bmcweb/test/include/
H A Dhttp_utility_test.cpp23 isContentTypeAllowed("application/cbor", ContentType::CBOR, false)); in TEST()
35 isContentTypeAllowed("application/json", ContentType::CBOR, false)); in TEST()
37 isContentTypeAllowed("application/cbor", ContentType::HTML, false)); in TEST()
81 std::array<ContentType, 2> cborJson{ContentType::CBOR, ContentType::JSON}; in TEST()
82 EXPECT_EQ(getPreferredContentType("application/cbor, application::json", in TEST()
84 ContentType::CBOR); in TEST()
123 std::array<ContentType, 1> contentType{ContentType::CBOR}; in TEST()
/openbmc/bmcweb/include/
H A Dhttp_utility.hpp34 CBOR, enumerator
53 {"application/cbor", ContentType::CBOR}, in getContentType()
92 {"application/cbor", ContentType::CBOR}, in getPreferredContentType()
/openbmc/phosphor-logging/extensions/openpower-pels/
H A Duser_data_formats.hpp11 cbor = 2, enumerator
19 cbor = 1, enumerator
H A Duser_data_json.cpp102 * @brief Return a JSON string from the passed in CBOR data.
108 * @param[in] data - The CBOR data
115 // The CBOR parser needs the pad bytes added to 4 byte align in getCBORJSON()
150 * @param[in] data - The CBOR data
218 case static_cast<uint8_t>(UserDataFormat::cbor): in getBuiltinFormatJSON()
H A Dpel.cpp1001 // CBOR case. in makeFFDCuserDataSection()
1009 // For JSON, CBOR, and Text use our component ID, subType, and version, in makeFFDCuserDataSection()
1021 case UserDataFormat::cbor: in makeFFDCuserDataSection()
1022 subType = static_cast<uint8_t>(UserDataFormat::cbor); in makeFFDCuserDataSection()
1023 version = static_cast<uint8_t>(UserDataFormatVersion::cbor); in makeFFDCuserDataSection()
1025 // The CBOR parser will fail on the extra pad bytes since they in makeFFDCuserDataSection()
1026 // aren't CBOR. Add the amount we padded to the end and other in makeFFDCuserDataSection()
H A Dmanager.cpp344 case Create::FFDCFormat::CBOR: in convertToPelFFDC()
345 pf.format = UserDataFormat::cbor; in convertToPelFFDC()
H A DREADME.md162 - 'CBOR'
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-extended/libcbor/
H A Dlibcbor_0.11.0.bb1 SUMMARY = "library for CBOR"
2 DESCRIPTION = "C library for parsing and generating CBOR, the general-purpose schema-less binary da…
/openbmc/qemu/hw/core/
H A Deif.c17 #include <cbor.h>
301 error_setg(errp, "Failed to load signature section data as CBOR"); in get_signature_fingerprint_sha384()
305 error_setg(errp, "Invalid signature CBOR"); in get_signature_fingerprint_sha384()
314 error_setg(errp, "Invalid signature CBOR"); in get_signature_fingerprint_sha384()
320 error_setg(errp, "Invalid signautre CBOR"); in get_signature_fingerprint_sha384()
324 error_setg(errp, "Invalid signature CBOR"); in get_signature_fingerprint_sha384()
329 error_setg(errp, "Invalid signature CBOR"); in get_signature_fingerprint_sha384()
341 error_setg(errp, "Invalid signature CBOR"); in get_signature_fingerprint_sha384()
346 error_setg(errp, "Invalid signature CBOR"); in get_signature_fingerprint_sha384()
/openbmc/qemu/include/hw/virtio/
H A Dcbor-helpers.h2 * QEMU CBOR helpers
14 #include <cbor.h>
/openbmc/phosphor-dbus-interfaces/yaml/xyz/openbmc_project/Logging/
H A DCreate.interface.yaml92 - name: CBOR
94 Valid CBOR (Concise Binary Object Representation)
/openbmc/openbmc/meta-openembedded/meta-python/recipes-devtools/python/
H A Dpython3-cbor2_5.6.5.bb1 DESCRIPTION = "An implementation of RFC 7049 - Concise Binary Object Representation (CBOR)."
/openbmc/openpower-hw-diags/test/
H A Dtest-ffdc-file.cpp10 files.emplace_back(util::FFDCFormat::CBOR, 2, 2); in TEST()
/openbmc/qemu/hw/virtio/
H A Dcbor-helpers.c2 * QEMU CBOR helpers
11 #include "hw/virtio/cbor-helpers.h"
H A Dmeson.build57 specific_virtio_ss.add(when: 'CONFIG_VIRTIO_NSM', if_true: [files('virtio-nsm.c', 'cbor-helpers.c')…
74 virtio_pci_ss.add(when: 'CONFIG_VIRTIO_NSM', if_true: [files('virtio-nsm-pci.c', 'cbor-helpers.c'),…
H A Dvirtio-nsm.c19 #include "hw/virtio/cbor-helpers.h"
1311 * where [0] protected header is a serialized CBOR blob of the structure:
1319 * [2] payload is serialized CBOR blob of the structure:
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-extended/qcbor/
H A Dqcbor_1.4.1.bb2 QCBOR is a powerful, commercial-quality CBOR encoder/decoder that \
/openbmc/phosphor-logging/test/openpower-pels/
H A Dpel_test.cpp572 ffdc.format = UserDataFormat::cbor; in getCBORFFDC()
583 // Convert the JSON to CBOR and write it to a file in getCBORFFDC()
602 static_cast<uint8_t>(UserDataFormatVersion::cbor)); in TEST_F()
603 EXPECT_EQ(ud->header().subType, static_cast<uint8_t>(UserDataFormat::cbor)); in TEST_F()
607 // Pull the CBOR back out of the PEL section in TEST_F()
/openbmc/qemu/
H A DMAINTAINERS2320 F: hw/virtio/cbor-helpers.c
2323 F: include/hw/virtio/cbor-helpers.h
/openbmc/linux/
H A Dopengrok1.0.log[all...]
H A Dopengrok0.0.log[all...]