aboutsummaryrefslogtreecommitdiffstats
path: root/serve/serve.c
diff options
context:
space:
mode:
Diffstat (limited to 'serve/serve.c')
-rw-r--r--serve/serve.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/serve/serve.c b/serve/serve.c
index 4f633ed..5088d8a 100644
--- a/serve/serve.c
+++ b/serve/serve.c
@@ -1754,6 +1754,11 @@ static bool open_wires(Executor *ex, const PureModule *m, const char *const *sen
/* --seal OUTPUT=KEY: that output's sends sealed to the receiver's public key (hex). */
static bool wire_seals(Executor *ex, const PureModule *m, const char *const *seals, unsigned count) {
+ char error[512];
+ if (count && !pure_seal_ready(error, sizeof(error))) {
+ fprintf(stderr, "--seal: %s\n", error);
+ return false;
+ }
for (unsigned i = 0; i < count; ++i) {
const char *equals = strchr(seals[i], '=');
unsigned char peer[PURE_SEAL_KEY];