Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions HAL/SocketTransport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ keymaster_error_t SocketTransport::sendData(const vector<uint8_t>& inData, vecto
inDataPrependedLength.push_back(static_cast<uint8_t>(inData.size() & 0xFF));
inDataPrependedLength.insert(inDataPrependedLength.end(), inData.begin(), inData.end());

if (0 > send(mSocket, inDataPrependedLength.data(), inDataPrependedLength.size(), 0)) {
if (0 > send(mSocket, inDataPrependedLength.data(), inDataPrependedLength.size(), MSG_NOSIGNAL)) {
static int connectionResetCnt = 0; /* To avoid loop */
if (ECONNRESET == errno && connectionResetCnt == 0) {
if ((ECONNRESET == errno || EPIPE == errno) && connectionResetCnt == 0) {
// Connection reset. Try open socket and then sendData.
socketStatus = false;
connectionResetCnt++;
Expand Down
4 changes: 2 additions & 2 deletions ProvisioningTool/include/cppbor/cppbor.h
Original file line number Diff line number Diff line change
Expand Up @@ -700,12 +700,12 @@ class Map : public Item {
*
* If the searched-for `key` is not present, returns `nullptr`.
*
* Note that if the map is canonicalized (sorted), Map::get() peforms a binary search. If your
* Note that if the map is canonicalized (sorted), Map::get() performs a binary search. If your
* map is large and you're searching in it many times, it may be worthwhile to canonicalize it
* to make Map::get() faster. Any use of a method that might modify the map disables the
* speedup.
*/
template <typename Key, typename Enable = void>
template <typename Key, typename Enable>
const std::unique_ptr<Item>& get(Key key) const;

// Note that use of non-const operator[] marks the map as not canonicalized.
Expand Down
6 changes: 3 additions & 3 deletions ProvisioningTool/sample_json_keymint_gf.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"attest_ids": {
"brand": "Android",
"device": "generic_x86_64",
"product": "aosp_x86_64",
"device": "emulator_x86_64",
"product": "sdk_phone_x86_64",
"serial": "",
"imei": "000000000000000",
"meid": "000000000000000",
"manufacturer": "unknown",
"model": "AOSP on x86_64"
"model": "Android SDK built for x86_64"
},
"shared_secret": "0000000000000000000000000000000000000000000000000000000000000000",
"set_boot_params": {
Expand Down