X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=lib%2Fsilcclient%2Fcommand_reply.c;h=45de171ef1d72b79c26f2524757f07b1025da66e;hb=80d10dbf48785c2163551a7f94a46f6f5849c4a7;hp=54b77757742ba6bca9711be3d5f91cb41eab72ba;hpb=d7f1e81fea0d1da2ac870b8dfa600669aa280cd5;p=silc.git diff --git a/lib/silcclient/command_reply.c b/lib/silcclient/command_reply.c index 54b77757..45de171e 100644 --- a/lib/silcclient/command_reply.c +++ b/lib/silcclient/command_reply.c @@ -4,7 +4,7 @@ Author: Pekka Riikonen - Copyright (C) 1997 - 2007 Pekka Riikonen + Copyright (C) 1997 - 2014 Pekka Riikonen This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -738,6 +738,12 @@ SILC_FSM_STATE(silc_client_command_reply_nick) goto out; } + /* All auto-generated private message keys must be rekeyed because + we changed nick and others may not know about it. */ + conn->internal->ake_generation++; + SILC_LOG_DEBUG(("AKE keys will be rekeyed, generation %u", + conn->internal->ake_generation)); + silc_rwlock_unlock(conn->local_entry->internal.lock); /* Notify application */