From: Pekka Riikonen Date: Fri, 6 Dec 2002 16:18:23 +0000 (+0000) Subject: GETKEY update client entry fingerprint too. X-Git-Tag: silc.client.0.9.10.2~9 X-Git-Url: http://git.silcnet.org/gitweb/?a=commitdiff_plain;h=3e0c0b40f7862889c451f88fed6215ace42d3f68;p=silc.git GETKEY update client entry fingerprint too. --- diff --git a/CHANGES b/CHANGES index 5ea86a4d..30980576 100644 --- a/CHANGES +++ b/CHANGES @@ -9,6 +9,9 @@ Fri Dec 6 17:40:24 EET 2002 Pekka Riikonen * Removed backwards support for not-so-strict decryption length check, it's strict now. Affected lib/silccrypt/silccipher.c. + * GETKEY to update the client entrys fingerprint too. + Affected file lib/silcclient/command_reply.c. + Thu Dec 5 22:29:46 EET 2002 Pekka Riikonen * Fixed backup router bugs: When backup resumes router and diff --git a/lib/silcclient/command_reply.c b/lib/silcclient/command_reply.c index d615c142..940af444 100644 --- a/lib/silcclient/command_reply.c +++ b/lib/silcclient/command_reply.c @@ -1818,6 +1818,14 @@ SILC_CLIENT_CMD_REPLY_FUNC(getkey) goto out; } + /* Save fingerprint */ + if (!client_entry->fingerprint) { + client_entry->fingerprint = silc_calloc(20, sizeof(unsigned char)); + client_entry->fingerprint_len = 20; + silc_hash_make(cmd->client->sha1hash, tmp + 4, len - 4, + client_entry->fingerprint); + } + /* Notify application */ COMMAND_REPLY((SILC_ARGS, id_type, client_entry, public_key)); } else if (id_type == SILC_ID_SERVER) {