{
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;
}
return (0);
}
-/* --- @km_interval@ --- *
+/* --- @km_reload@ --- *
*
* Arguments: ---
*
* Returns: Zero if OK, nonzero to force reloading of keys.
*
- * Use: Called on the interval timer to perform various useful jobs.
+ * Use: Checks the keyrings to see if they need reloading.
*/
-int km_interval(void)
+int km_reload(void)
{
dstr d = DSTR_INIT;
key_file *kf;
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;
}