| 77 | } |
| 78 | |
| 79 | static bool bootstrap_worker_fingerprint_valid(const char *fingerprint) { |
| 80 | if (!fingerprint || strlen(fingerprint) != 64U) { |
| 81 | return false; |
| 82 | } |
| 83 | for (size_t i = 0; i < 64U; i++) { |
| 84 | char ch = fingerprint[i]; |
| 85 | if (!((ch >= '0' && ch <= '9') || (ch >= 'a' && ch <= 'f'))) { |
| 86 | return false; |
| 87 | } |
| 88 | } |
| 89 | return true; |
| 90 | } |
| 91 | |
| 92 | static bool bootstrap_worker_budget_valid(const char *text) { |
| 93 | if (!text || !text[0]) { |
no outgoing calls
no test coverage detected