chiark / gitweb /
test-example: all-privkeys: Define, and indirect through, a variable
[secnet.git] / pubkeys.c
index 903103f8399ae487f4f31ef92a6f26f5d9d30658..62f55259ef3efebd7ab9e1793155a72334582135 100644 (file)
--- a/pubkeys.c
+++ b/pubkeys.c
@@ -77,9 +77,12 @@ static list_t *makepublic_apply(closure_t *self, struct cloc loc,
     buf.size += base91s_decode_end(&b91,buf.start+buf.size);
     assert(buf.size <= buf.alloclen);
 
+    struct cfgfile_log log;
+    cfgfile_log_init(&log,loc,"make-public");
+
     struct sigpubkey_if *pubkey;
     closure_t *cl;
-    bool_t ok=sch->loadpub(sch,&buf,&pubkey,&cl,system_log,loc);
+    bool_t ok=sch->loadpub(sch,&buf,&pubkey,&cl,&log.log,loc);
     if (!ok) cfgfatal(loc,"make-public","public key loading failed");
 
     if (pubkey->sethash) {