Changeset 3c80a9d
- Timestamp:
- 2008-02-03T22:28:13Z (17 years ago)
- Branches:
- master
- Children:
- a13855a
- Parents:
- 764c7d1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
otr.c
r764c7d1 r3c80a9d 164 164 e = otrl_privkey_read(irc->otr_us, s); 165 165 if(e && e!=ENOENT) { 166 log_message(LOGLVL_ERROR, " %s: %s", s, strerror(e));166 log_message(LOGLVL_ERROR, "otr load: %s: %s", s, strerror(e)); 167 167 } 168 168 g_snprintf(s, 511, "%s%s.otr_fprints", global.conf->configdir, irc->nick); 169 169 e = otrl_privkey_read_fingerprints(irc->otr_us, s, NULL, NULL); 170 170 if(e && e!=ENOENT) { 171 log_message(LOGLVL_ERROR, " %s: %s", s, strerror(e));171 log_message(LOGLVL_ERROR, "otr load: %s: %s", s, strerror(e)); 172 172 } 173 173 … … 181 181 { 182 182 char s[512]; 183 gcry_error_t e; 183 184 184 185 log_message(LOGLVL_DEBUG, "otr_save '%s'", irc->nick); 185 186 186 187 g_snprintf(s, 511, "%s%s.otr_fprints", global.conf->configdir, irc->nick); 187 otrl_privkey_write_fingerprints(irc->otr_us, s); 188 e = otrl_privkey_write_fingerprints(irc->otr_us, s); 189 if(e) { 190 log_message(LOGLVL_ERROR, "otr save: %s: %s", s, strerror(e)); 191 } 188 192 } 189 193 … … 537 541 u->ic->acc->user, u->ic->acc->prpl->name, 1, NULL, NULL, NULL); 538 542 if(!ctx) { 543 /* huh? out of memory or what? */ 539 544 return; 540 545 } … … 686 691 context = otrl_context_find(us, handle, 687 692 ic->acc->user, ic->acc->prpl->name, 1, NULL, NULL, NULL); 688 if(!context) return; 693 if(!context) { 694 /* huh? out of memory or what? */ 695 return; 696 } 689 697 nextMsg = context->smstate->nextExpected; 690 698 … … 915 923 if(kg->done) { 916 924 if(kg->result) { 917 irc_usermsg(kg->irc, "otr keygen failed: libgcrypt error"); /* TODO: diagnostics */925 irc_usermsg(kg->irc, "otr keygen: %s", strerror(kg->result)); 918 926 } else { 919 927 irc_usermsg(kg->irc, "otr keygen for %s/%s complete", kg->handle, kg->protocol);
Note: See TracChangeset
for help on using the changeset viewer.