| 1739 | } |
| 1740 | |
| 1741 | static void readiness_hex_encode(const uint8_t bytes[CBM_SHA256_DIGEST_LEN], |
| 1742 | char out[CBM_SHA256_HEX_LEN + 1U]) { |
| 1743 | static const char hex[] = "0123456789abcdef"; |
| 1744 | for (size_t i = 0; i < CBM_SHA256_DIGEST_LEN; i++) { |
| 1745 | out[i * 2U] = hex[bytes[i] >> 4]; |
| 1746 | out[i * 2U + 1U] = hex[bytes[i] & 0x0fU]; |
| 1747 | } |
| 1748 | out[CBM_SHA256_HEX_LEN] = '\0'; |
| 1749 | } |
| 1750 | |
| 1751 | static void handle_ui_readiness(cbm_http_server_t *srv, cbm_http_conn_t *c, |
| 1752 | const cbm_http_req_t *req) { |
no outgoing calls
no test coverage detected