{
key_file kf;
key *k;
- key_data *kd;
+ key_data **kd;
dstr t = DSTR_INIT;
group *g = 0;
mp *x = 0;
/* --- Load the key --- */
- if ((e = (*ko)->loadpriv(kd, &g, &x, &t)) != 0) {
+ if ((e = (*ko)->loadpriv(*kd, &g, &x, &t)) != 0) {
dstr_putf(d, "error reading private key `%s': %s", t.buf, e);
goto done_1;
}
int km_getpubkey(const char *tag, ge *kpub, time_t *t_exp)
{
key *k;
- key_data *kd;
+ key_data **kd;
dstr t = DSTR_INIT;
const kgops **ko;
const char *e;
/* --- Load the key --- */
- if ((e = (*ko)->loadpub(kd, &g, &p, &t)) != 0) {
+ if ((e = (*ko)->loadpub(*kd, &g, &p, &t)) != 0) {
a_warn("KEYMGMT public-key %s bad -- %s", t.buf, e);
goto done;
}