From: <dat...@us...> - 2006-11-21 05:34:43
|
Revision: 17801 http://svn.sourceforge.net/gaim/?rev=17801&view=rev Author: datallah Date: 2006-11-20 21:34:42 -0800 (Mon, 20 Nov 2006) Log Message: ----------- This probably doesn't matter too much, but these should be allocated via glib. Modified Paths: -------------- trunk/libgaim/protocols/silc/silc.c Modified: trunk/libgaim/protocols/silc/silc.c =================================================================== --- trunk/libgaim/protocols/silc/silc.c 2006-11-21 05:32:55 UTC (rev 17800) +++ trunk/libgaim/protocols/silc/silc.c 2006-11-21 05:34:42 UTC (rev 17801) @@ -870,12 +870,12 @@ if (f) c = gaim_request_field_string_get_value(f); - identifier = silc_pkcs_encode_identifier((char *)un, (char *)hn, + identifier = silc_pkcs_encode_identifier((char *)un, (char *)hn, (char *)rn, (char *)e, (char *)o, (char *)c); /* Create the key pair */ if (!silc_create_key_pair(SILCGAIM_DEF_PKCS, keylen, pkfile, prfile, - identifier, pass1, NULL, &public_key, NULL, + identifier, pass1, NULL, &public_key, NULL, FALSE)) { gaim_notify_error( gc, _("Create New SILC Key Pair"), _("Key Pair Generation failed"), NULL); @@ -1086,7 +1086,7 @@ silc_dlist_start(list); while ((buf = silc_dlist_get(list)) != SILC_LIST_END) - silc_client_send_private_message(client, conn, + silc_client_send_private_message(client, conn, client_entry, im->flags, buf->data, buf->len, TRUE); @@ -1198,7 +1198,7 @@ silc_dlist_start(list); while ((buf = silc_dlist_get(list)) != SILC_LIST_END) ret = - silc_client_send_private_message(client, conn, + silc_client_send_private_message(client, conn, clients[0], mflags, buf->data, buf->len, TRUE); @@ -1864,9 +1864,9 @@ prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option); for (i = 0; silc_default_ciphers[i].name; i++) { - kvp = silc_calloc(1, sizeof(*kvp)); - kvp->key = strdup(silc_default_ciphers[i].name); - kvp->value = strdup(silc_default_ciphers[i].name); + kvp = g_new0(GaimKeyValuePair, 1); + kvp->key = g_strdup(silc_default_ciphers[i].name); + kvp->value = g_strdup(silc_default_ciphers[i].name); list = g_list_append(list, kvp); } option = gaim_account_option_list_new(_("Cipher"), "cipher", list); @@ -1874,9 +1874,9 @@ list = NULL; for (i = 0; silc_default_hmacs[i].name; i++) { - kvp = silc_calloc(1, sizeof(*kvp)); - kvp->key = strdup(silc_default_hmacs[i].name); - kvp->value = strdup(silc_default_hmacs[i].name); + kvp = g_new0(GaimKeyValuePair, 1); + kvp->key = g_strdup(silc_default_hmacs[i].name); + kvp->value = g_strdup(silc_default_hmacs[i].name); list = g_list_append(list, kvp); } option = gaim_account_option_list_new(_("HMAC"), "hmac", list); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |