2008-08-14 Tambet Ingo <tambet@gmail.com>

* src/nm-openvpn-service.c (nm_openvpn_socket_data_cb): Detect private key
	verification errors too.

	* auth-dialog/main.c (pem_is_encrypted): GIOChannel isn't a GObject, use the
	correct unreferencing function for it.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3956 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
Tambet Ingo 2008-08-14 10:24:30 +00:00
parent f199f72cfb
commit ad22c29588
3 changed files with 14 additions and 1 deletions

View file

@ -1,3 +1,11 @@
2008-08-14 Tambet Ingo <tambet@gmail.com>
* src/nm-openvpn-service.c (nm_openvpn_socket_data_cb): Detect private key
verification errors too.
* auth-dialog/main.c (pem_is_encrypted): GIOChannel isn't a GObject, use the
correct unreferencing function for it.
2008-08-12 Dan Williams <dcbw@redhat.com>
* properties/auth-helpers.c

View file

@ -160,7 +160,7 @@ pem_is_encrypted (const char *filename)
}
g_io_channel_shutdown (pem_chan, FALSE, NULL);
g_object_unref (pem_chan);
g_io_channel_unref (pem_chan);
return encrypted;
}

View file

@ -323,6 +323,11 @@ nm_openvpn_socket_data_cb (GIOChannel *source, GIOCondition condition, gpointer
nm_vpn_plugin_failure (NM_VPN_PLUGIN (plugin), NM_VPN_PLUGIN_FAILURE_LOGIN_FAILED);
nm_openvpn_disconnect_management_socket (plugin);
again = FALSE;
} else if (strstr (str, "private key password verification failed")) {
nm_warning ("Private key verification failed");
nm_vpn_plugin_failure (NM_VPN_PLUGIN (plugin), NM_VPN_PLUGIN_FAILURE_LOGIN_FAILED);
nm_openvpn_disconnect_management_socket (plugin);
again = FALSE;
}
out: