diff options
| author | Sven Moritz Hallberg <sm@khjk.org> | 2008-02-16 17:24:38 +0100 | 
|---|---|---|
| committer | Sven Moritz Hallberg <sm@khjk.org> | 2008-02-16 17:24:38 +0100 | 
| commit | 903a2fcc60f82f52fe05c79250e6875dc48f23f0 (patch) | |
| tree | 93c57d441c1fe3e1785fd0bf99d89b1d6832f449 /otr.c | |
| parent | 1221ef093f35d620123cab82aecf4bb7bcc2e86a (diff) | |
remove (broken) 'otr forget key' command again
Diffstat (limited to 'otr.c')
| -rw-r--r-- | otr.c | 31 | 
1 files changed, 0 insertions, 31 deletions
| @@ -126,7 +126,6 @@ void myfgets(char *s, int size, FILE *stream);  void yes_keygen(gpointer w, void *data);  void yes_forget_fingerprint(gpointer w, void *data);  void yes_forget_context(gpointer w, void *data); -void yes_forget_key(gpointer w, void *data);  /* helper to make sure accountname and protocol match the incoming "opdata" */  struct im_connection *check_imc(void *opdata, const char *accountname, @@ -898,15 +897,6 @@ void yes_forget_context(gpointer w, void *data)  	otrl_context_forget(ctx);  } -void yes_forget_key(gpointer w, void *data) -{ -	OtrlPrivKey *key = (OtrlPrivKey *)data; -	 -	/* FIXME: For some reason which /completely eludes me/, this call keeps -	   barfing on the gcry_sexp_release inside (invalid pointer free). */ -	otrl_privkey_forget(key); -} -  void cmd_otr_forget(irc_t *irc, char **args)  {  	if(!strcmp(args[1], "fingerprint")) @@ -981,27 +971,6 @@ void cmd_otr_forget(irc_t *irc, char **args)  		query_add(irc, NULL, s, yes_forget_context, NULL, ctx);  	} -	else if(!strcmp(args[1], "key")) -	{ -		OtrlPrivKey *key; -		char *s; -		 -		key = match_privkey(irc, ((const char **)args)+2); -		if(!key) { -			/* match_privkey does error messages */ -			return; -		} -		 -		/* TODO: Find out why 'otr forget key' barfs (cf. yes_forget_key) */ -		irc_usermsg(irc, "otr %s %s: not implemented, please edit \x02%s%s.otr_keys\x02 manually :-/", -			args[0], args[1], global.conf->configdir, irc->nick); -		return; - -		s = g_strdup_printf("about to forget the private key for %s/%s, are you sure?", -			key->accountname, key->protocol); -		query_add(irc, NULL, s, yes_forget_key, NULL, key); -	} -	  	else  	{  		irc_usermsg(irc, "otr %s: unknown subcommand \"%s\", see \x02help otr forget\x02", | 
