Changeset 6c91e6e
- Timestamp:
- 2008-02-15T00:45:21Z (17 years ago)
- Branches:
- master
- Children:
- 522a00f
- Parents:
- f3597a1
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
otr.c
rf3597a1 r6c91e6e 7 7 /* 8 8 OTR support (cf. http://www.cypherpunks.ca/otr/) 9 9 10 2008, Sven Moritz Hallberg <pesco@khjk.org> 11 (c) and funded by stonedcoder.org 10 12 11 13 files used to store OTR data: … … 215 217 account_t *a; 216 218 gcry_error_t e; 219 int eno; 217 220 218 221 log_message(LOGLVL_DEBUG, "otr_load '%s'", irc->nick); … … 220 223 g_snprintf(s, 511, "%s%s.otr_keys", global.conf->configdir, irc->nick); 221 224 e = otrl_privkey_read(irc->otr_us, s); 222 if(e && e!=ENOENT) { 225 eno = gcry_error_code_to_errno(e); 226 if(e && eno!=ENOENT) { 223 227 log_message(LOGLVL_ERROR, "otr load: %s: %s", s, strerror(e)); 224 228 } 225 229 g_snprintf(s, 511, "%s%s.otr_fprints", global.conf->configdir, irc->nick); 226 230 e = otrl_privkey_read_fingerprints(irc->otr_us, s, NULL, NULL); 227 if(e && e!=ENOENT) { 231 eno = gcry_error_code_to_errno(e); 232 if(e && eno!=ENOENT) { 228 233 log_message(LOGLVL_ERROR, "otr load: %s: %s", s, strerror(e)); 229 234 } … … 1472 1477 } 1473 1478 1474 1479 irc_usermsg(irc, " fingerprints: (bold=active)"); 1475 1480 show_fingerprints(irc, ctx); 1476 1481 } -
otr.h
rf3597a1 r6c91e6e 7 7 /* 8 8 OTR support (cf. http://www.cypherpunks.ca/otr/) 9 9 10 2008, Sven Moritz Hallberg <pesco@khjk.org> 11 (c) and funded by stonedcoder.org 10 12 */ 11 13
Note: See TracChangeset
for help on using the changeset viewer.