| 65 | } |
| 66 | |
| 67 | static bool bootstrap_worker_fingerprint_valid(const char *fingerprint) { |
| 68 | if (!fingerprint || strlen(fingerprint) != 64U) { |
| 69 | return false; |
| 70 | } |
| 71 | for (size_t i = 0; i < 64U; i++) { |
| 72 | char ch = fingerprint[i]; |
| 73 | if (!((ch >= '0' && ch <= '9') || (ch >= 'a' && ch <= 'f'))) { |
| 74 | return false; |
| 75 | } |
| 76 | } |
| 77 | return true; |
| 78 | } |
| 79 | |
| 80 | static bool bootstrap_worker_budget_valid(const char *text) { |
| 81 | if (!text || !text[0]) { |
no outgoing calls
no test coverage detected