- Timestamp:
- 2008-02-17T10:52:28Z (17 years ago)
- Branches:
- master
- Children:
- 4d8fbe8
- Parents:
- 9e64011
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
otr.c
r9e64011 r12cc58b 112 112 113 113 /* main function for the forked keygen slave */ 114 void keygen_child_main( const char *nick, int infd, int outfd);114 void keygen_child_main(OtrlUserState us, int infd, int outfd); 115 115 116 116 /* mainloop handler for when a keygen finishes */ … … 1520 1520 /* child process */ 1521 1521 signal(SIGTERM, exit); 1522 keygen_child_main(irc-> nick, to[0], from[1]);1522 keygen_child_main(irc->otr->us, to[0], from[1]); 1523 1523 exit(0); 1524 1524 } … … 1551 1551 } 1552 1552 1553 void keygen_child_main(const char *nick, int infd, int outfd) 1554 { 1555 OtrlUserState us; 1556 char *kf; 1553 void keygen_child_main(OtrlUserState us, int infd, int outfd) 1554 { 1557 1555 FILE *input, *output; 1558 1556 char filename[128], accountname[512], protocol[512]; 1559 1557 gcry_error_t e; 1560 1558 int tempfd; 1561 1562 us = otrl_userstate_create();1563 kf = g_strdup_printf("%s%s.otr_keys", global.conf->configdir, nick);1564 otrl_privkey_read(us, kf);1565 g_free(kf);1566 1559 1567 1560 input = fdopen(infd, "r");
Note: See TracChangeset
for help on using the changeset viewer.