Is this capability supported by the HSM? (So far, always a message * number) */
| 5 | /* Is this capability supported by the HSM? (So far, always a message |
| 6 | * number) */ |
| 7 | bool hsm_is_capable(const u32 *capabilities, u32 msgtype) |
| 8 | { |
| 9 | for (size_t i = 0; i < tal_count(capabilities); i++) { |
| 10 | if (capabilities[i] == msgtype) |
| 11 | return true; |
| 12 | } |
| 13 | return false; |
| 14 | } |