From d59d4fe9e094b3ce28c47c89197a0c8ad79fc35f Mon Sep 17 00:00:00 2001 From: mdw Date: Thu, 29 Sep 2005 13:33:26 +0000 Subject: [PATCH] Fix for new key-data interface. --- keymgmt.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/keymgmt.c b/keymgmt.c index e1388e04..73f62654 100644 --- a/keymgmt.c +++ b/keymgmt.c @@ -316,7 +316,7 @@ static int loadpriv(dstr *d) { key_file kf; key *k; - key_data *kd; + key_data **kd; dstr t = DSTR_INIT; group *g = 0; mp *x = 0; @@ -353,7 +353,7 @@ tymatch:; /* --- 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; } @@ -546,7 +546,7 @@ void km_init(const char *priv, const char *pub, const char *tag) 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; @@ -574,7 +574,7 @@ tymatch:; /* --- 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; } -- 2.11.0