Test code looks in logs, so we print prompts to log as well as stdout */
| 544 | |
| 545 | /* Test code looks in logs, so we print prompts to log as well as stdout */ |
| 546 | static void prompt(struct lightningd *ld, const char *str) |
| 547 | { |
| 548 | printf("%s\n", str); |
| 549 | log_debug(ld->log, "PROMPT: %s", str); |
| 550 | /* If we don't flush we might end up being buffered and we might seem |
| 551 | * to hang while we wait for the password. */ |
| 552 | fflush(stdout); |
| 553 | } |
| 554 | |
| 555 | /* Read HSM passphrase from user input */ |
| 556 | static char *read_hsm_passphrase(struct lightningd *ld) |
no outgoing calls
no test coverage detected