Changeset 903a2fc for otr.c


Ignore:
Timestamp:
2008-02-16T16:24:38Z (16 years ago)
Author:
Sven Moritz Hallberg <sm@…>
Branches:
master
Children:
8961950
Parents:
1221ef0
Message:

remove (broken) 'otr forget key' command again

File:
1 edited

Legend:

Unmodified
Added
Removed
  • otr.c

    r1221ef0 r903a2fc  
    127127void yes_forget_fingerprint(gpointer w, void *data);
    128128void yes_forget_context(gpointer w, void *data);
    129 void yes_forget_key(gpointer w, void *data);
    130129
    131130/* helper to make sure accountname and protocol match the incoming "opdata" */
     
    899898}
    900899
    901 void yes_forget_key(gpointer w, void *data)
    902 {
    903         OtrlPrivKey *key = (OtrlPrivKey *)data;
    904        
    905         /* FIXME: For some reason which /completely eludes me/, this call keeps
    906            barfing on the gcry_sexp_release inside (invalid pointer free). */
    907         otrl_privkey_forget(key);
    908 }
    909 
    910900void cmd_otr_forget(irc_t *irc, char **args)
    911901{
     
    980970                s = g_strdup_printf("about to forget otr data about %s, are you sure?", args[2]);
    981971                query_add(irc, NULL, s, yes_forget_context, NULL, ctx);
    982         }
    983        
    984         else if(!strcmp(args[1], "key"))
    985         {
    986                 OtrlPrivKey *key;
    987                 char *s;
    988                
    989                 key = match_privkey(irc, ((const char **)args)+2);
    990                 if(!key) {
    991                         /* match_privkey does error messages */
    992                         return;
    993                 }
    994                
    995                 /* TODO: Find out why 'otr forget key' barfs (cf. yes_forget_key) */
    996                 irc_usermsg(irc, "otr %s %s: not implemented, please edit \x02%s%s.otr_keys\x02 manually :-/",
    997                         args[0], args[1], global.conf->configdir, irc->nick);
    998                 return;
    999 
    1000                 s = g_strdup_printf("about to forget the private key for %s/%s, are you sure?",
    1001                         key->accountname, key->protocol);
    1002                 query_add(irc, NULL, s, yes_forget_key, NULL, key);
    1003972        }
    1004973       
Note: See TracChangeset for help on using the changeset viewer.