strongswan.org
Wiki/Project Management
Downloads
Gitweb
projects
/
strongswan.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Maemo: Clear the credentials before each connection attempt.
[strongswan.git]
/
src
/
libcharon
/
plugins
/
maemo
/
maemo_plugin.c
diff --git
a/src/libcharon/plugins/maemo/maemo_plugin.c
b/src/libcharon/plugins/maemo/maemo_plugin.c
index
3ce15f6
..
ef5f651
100644
(file)
--- a/
src/libcharon/plugins/maemo/maemo_plugin.c
+++ b/
src/libcharon/plugins/maemo/maemo_plugin.c
@@
-125,6
+125,8
@@
static gboolean initiate_connection(private_maemo_plugin_t *this,
DBG1(DBG_CFG, "received initiate for connection '%s'", this->current);
+ this->creds->clear(this->creds);
+
cert = lib->creds->create(lib->creds, CRED_CERTIFICATE, CERT_X509,
BUILD_FROM_FILE, cacert, BUILD_END);
if (cert)