X-Git-Url: http://git.silcnet.org/gitweb/?p=silc.git;a=blobdiff_plain;f=lib%2Fsilcclient%2Fclient_prvmsg.c;h=36d7bbe43a7eaffd76fe308eb7980b50da6a9867;hp=aff49a2362f63d4d0318b5f72026dd2917e46a58;hb=382d15d447b7a95390decfa783836ae4fe255b3d;hpb=3cf38201f9ffaad2da53757ed48a5546e1d03636 diff --git a/lib/silcclient/client_prvmsg.c b/lib/silcclient/client_prvmsg.c index aff49a23..36d7bbe4 100644 --- a/lib/silcclient/client_prvmsg.c +++ b/lib/silcclient/client_prvmsg.c @@ -58,7 +58,8 @@ void silc_client_send_private_message(SilcClient client, !client_entry->generated, TRUE, client_entry->send_key, client_entry->hmac_send, - client->rng); + client->rng, NULL, client->private_key, + client->sha1hash); /* If we don't have private message specific key then private messages are just as any normal packet thus call normal packet sending. If @@ -211,8 +212,8 @@ void silc_client_private_message(SilcClient client, /* Pass the private message to application */ message = silc_message_get_data(payload, &message_len); - client->internal->ops->private_message(client, conn, remote_client, flags, - message, message_len); + client->internal->ops->private_message(client, conn, remote_client, payload, + flags, message, message_len); /* See if we are away (gone). If we are away we will reply to the sender with the set away message. */ @@ -382,7 +383,7 @@ bool silc_client_add_private_message_key(SilcClient client, /* Produce the key material as the protocol defines */ keymat = silc_calloc(1, sizeof(*keymat)); if (silc_ske_process_key_material_data(key, key_len, 16, 256, 16, - client->md5hash, keymat) + client->sha1hash, keymat) != SILC_SKE_STATUS_OK) return FALSE;