aboutsummaryrefslogtreecommitdiffstats
path: root/irc.c
diff options
context:
space:
mode:
authorSven Moritz Hallberg <sm@khjk.org>2008-02-16 14:24:44 +0100
committerSven Moritz Hallberg <sm@khjk.org>2008-02-16 14:24:44 +0100
commitdc9797f7ad4177dc72373ce71d375257fb0271a1 (patch)
tree97674d40bf1dd1d4d5a0d9e4609f6465537efd62 /irc.c
parent27db43361a3fdd3420b12aa5bf151dce4545273f (diff)
keep track of which keys are queued for generation
Diffstat (limited to 'irc.c')
-rw-r--r--irc.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/irc.c b/irc.c
index 469789e7..d73f5b4a 100644
--- a/irc.c
+++ b/irc.c
@@ -133,11 +133,7 @@ irc_t *irc_new( int fd )
conf_loaddefaults( irc );
- irc->otr_us = otrl_userstate_create();
- irc->otr_keygen = 0;
- irc->otr_to = NULL;
- irc->otr_from = NULL;
- irc->otr_ntodo = 0;
+ irc->otr = otr_new();
return( irc );
}
@@ -289,12 +285,7 @@ void irc_free(irc_t * irc)
}
}
- otrl_userstate_free(irc->otr_us);
- if(irc->otr_keygen) {
- kill(irc->otr_keygen, SIGTERM);
- waitpid(irc->otr_keygen, NULL, 0);
- /* TODO: remove stale keygen tempfiles */
- }
+ otr_free(irc->otr);
g_free(irc);