| 708 | } |
| 709 | |
| 710 | static struct command_result *param_rune(struct command *cmd, const char *name, |
| 711 | const char * buffer, const jsmntok_t *tok, |
| 712 | struct rune **rune) |
| 713 | { |
| 714 | *rune = rune_from_base64n(cmd, buffer + tok->start, tok->end - tok->start); |
| 715 | if (!*rune) |
| 716 | return command_fail_badparam(cmd, name, buffer, tok, |
| 717 | "should be base64 string"); |
| 718 | |
| 719 | return NULL; |
| 720 | } |
| 721 | |
| 722 | static struct rune_restr **readonly_restrictions(const tal_t *ctx) |
| 723 | { |
nothing calls this directly
no test coverage detected