| 246 | } |
| 247 | |
| 248 | static u8 *get_file_data(const tal_t *ctx, struct plugin *p) |
| 249 | { |
| 250 | u8 *scb = grab_file_raw(ctx, FILENAME); |
| 251 | if (!scb) |
| 252 | plugin_err(p, "Cannot read emergency.recover: %s", strerror(errno)); |
| 253 | return scb; |
| 254 | } |
| 255 | |
| 256 | /* Returns decrypted SCB in form of a u8 array */ |
| 257 | static u8 *decrypt_scb(struct plugin *p) |
no test coverage detected