| 103 | } |
| 104 | |
| 105 | static void rune_restr_encode(const struct rune_restr *restr, |
| 106 | void (*cb)(const char *s, size_t len, |
| 107 | void *arg), |
| 108 | void *arg) |
| 109 | { |
| 110 | for (size_t i = 0; i < tal_count(restr->alterns); i++) { |
| 111 | if (i != 0) |
| 112 | cb("|", 1, arg); |
| 113 | rune_altern_encode(restr->alterns[i], cb, arg); |
| 114 | } |
| 115 | } |
| 116 | |
| 117 | void rune_sha256_add_restr(struct sha256_ctx *shactx, |
| 118 | struct rune_restr *restr) |
no test coverage detected