| 3128 | } |
| 3129 | |
| 3130 | static void readiness_hex_encode(const uint8_t bytes[CBM_SHA256_DIGEST_LEN], |
| 3131 | char out[CBM_SHA256_HEX_LEN + 1U]) { |
| 3132 | static const char hex[] = "0123456789abcdef"; |
| 3133 | for (size_t i = 0; i < CBM_SHA256_DIGEST_LEN; i++) { |
| 3134 | out[i * 2U] = hex[bytes[i] >> 4]; |
| 3135 | out[i * 2U + 1U] = hex[bytes[i] & 0x0fU]; |
| 3136 | } |
| 3137 | out[CBM_SHA256_HEX_LEN] = '\0'; |
| 3138 | } |
| 3139 | |
| 3140 | static void handle_ui_readiness(cbm_http_server_t *srv, cbm_http_conn_t *c, |
| 3141 | const cbm_http_req_t *req) { |
no outgoing calls
no test coverage detected