aboutsummaryrefslogtreecommitdiffstats
path: root/src/pluto/connections.c
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2007-01-04 14:28:57 +0000
committerAndreas Steffen <andreas.steffen@strongswan.org>2007-01-04 14:28:57 +0000
commitb4f3cd5ccf529e8a27c7680356b7178ca6a02197 (patch)
treed4468dcbd18a6d8a0a7c9ec8b1c31ee9c131f494 /src/pluto/connections.c
parentac048a8d2ce2a197eea877af8b9fbfb4f6268832 (diff)
downloadstrongswan-b4f3cd5ccf529e8a27c7680356b7178ca6a02197.tar.bz2
strongswan-b4f3cd5ccf529e8a27c7680356b7178ca6a02197.tar.xz
added XAUTH server and client support
Diffstat (limited to 'src/pluto/connections.c')
-rw-r--r--src/pluto/connections.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pluto/connections.c b/src/pluto/connections.c
index eb1570163..0d02b979c 100644
--- a/src/pluto/connections.c
+++ b/src/pluto/connections.c
@@ -3333,6 +3333,9 @@ refine_host_connection(const struct state *st, const struct id *peer_id
case XAUTHInitPreShared:
case XAUTHRespPreShared:
auth_policy = POLICY_XAUTH_PSK;
+ psk = get_preshared_secret(c);
+ if (psk == NULL)
+ return NULL; /* cannot determine PSK! */
break;
case OAKLEY_RSA_SIG:
auth_policy = POLICY_RSASIG;