| 305 | } |
| 306 | |
| 307 | static char *opt_set_secret(const char *arg, struct secret *s) |
| 308 | { |
| 309 | if (!hex_decode(arg, strlen(arg), s->data, sizeof(s->data))) |
| 310 | return "secret must be 64 hex digits"; |
| 311 | return NULL; |
| 312 | } |
| 313 | |
| 314 | static bool opt_show_secret(char *buf, size_t len, const struct secret *s) |
| 315 | { |
nothing calls this directly
no test coverage detected