Mercurial > pidgin
comparison libpurple/protocols/silc10/silc.c @ 22709:3d092dd95ec1
Fix for changing silc private key passphrase to or from the empty string,
preventing silc toolkit library trying to read from stdin (!)
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Wed, 23 Apr 2008 16:36:04 +0000 |
parents | 4446de418df1 |
children | 1008901e1d5c 718a9c287839 |
comparison
equal
deleted
inserted
replaced
22708:9a810bee2ffd | 22709:3d092dd95ec1 |
---|---|
960 } | 960 } |
961 | 961 |
962 static void | 962 static void |
963 silcpurple_change_passwd(PurpleConnection *gc, const char *old, const char *new) | 963 silcpurple_change_passwd(PurpleConnection *gc, const char *old, const char *new) |
964 { | 964 { |
965 char prd[256]; | 965 char prd[256]; |
966 g_snprintf(prd, sizeof(prd), "%s" G_DIR_SEPARATOR_S "private_key.pub", silcpurple_silcdir()); | 966 g_snprintf(prd, sizeof(prd), "%s" G_DIR_SEPARATOR_S "private_key.pub", silcpurple_silcdir()); |
967 silc_change_private_key_passphrase(purple_account_get_string(gc->account, | 967 silc_change_private_key_passphrase(purple_account_get_string(gc->account, |
968 "private-key", | 968 "private-key", |
969 prd), old, new); | 969 prd), old ? old : "", new ? new : ""); |
970 } | 970 } |
971 | 971 |
972 static void | 972 static void |
973 silcpurple_show_set_info(PurplePluginAction *action) | 973 silcpurple_show_set_info(PurplePluginAction *action) |
974 { | 974 { |