diff options
author | Sven Moritz Hallberg <sm@khjk.org> | 2008-02-16 14:24:44 +0100 |
---|---|---|
committer | Sven Moritz Hallberg <sm@khjk.org> | 2008-02-16 14:24:44 +0100 |
commit | dc9797f7ad4177dc72373ce71d375257fb0271a1 (patch) | |
tree | 97674d40bf1dd1d4d5a0d9e4609f6465537efd62 /irc.c | |
parent | 27db43361a3fdd3420b12aa5bf151dce4545273f (diff) |
keep track of which keys are queued for generation
Diffstat (limited to 'irc.c')
-rw-r--r-- | irc.c | 13 |
1 files changed, 2 insertions, 11 deletions
@@ -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); |