sprintf(st->path.write_here, SIGKEYID_PR_FMT, SIGKEYID_PR_VAL(id));
const char *path=st->path.buffer;
+ struct hash_if *defhash=st->defhash;
f = fopen(path,"rb");
if (!f) {
if (!ok) goto out; /* loadpriv will have logged */
if (sigpriv->sethash) {
- if (!st->defhash) {
+ if (!defhash) {
slilog(log,M_ERR,
"private key %s requires `hash' config key for privcache to load",
path);
sigpriv=0;
goto out;
}
- sigpriv->sethash(sigpriv->st,st->defhash);
+ sigpriv->sethash(sigpriv->st,defhash);
}
out: