Test code looks in logs, so we print prompts to log as well as stdout */
| 496 | |
| 497 | /* Test code looks in logs, so we print prompts to log as well as stdout */ |
| 498 | static void prompt(struct lightningd *ld, const char *str) |
| 499 | { |
| 500 | printf("%s\n", str); |
| 501 | log_debug(ld->log, "PROMPT: %s", str); |
| 502 | /* If we don't flush we might end up being buffered and we might seem |
| 503 | * to hang while we wait for the password. */ |
| 504 | fflush(stdout); |
| 505 | } |
| 506 | |
| 507 | /* Prompt the user to enter a password, from which will be derived the key used |
| 508 | * for `hsm_secret` encryption. |
no outgoing calls
no test coverage detected