aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/sa/authenticator.c
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2011-12-19 13:32:41 +0100
committerMartin Willi <martin@revosec.ch>2012-03-20 17:31:26 +0100
commit7d0a3a427d6ce15e4d410fde53d97a4336b5a2a7 (patch)
tree580a8b0991a18be0827c3a9dff6666c749a86316 /src/libcharon/sa/authenticator.c
parente51a28fda8761f67494bf0a8d996f5f8f53dc302 (diff)
downloadstrongswan-7d0a3a427d6ce15e4d410fde53d97a4336b5a2a7.tar.bz2
strongswan-7d0a3a427d6ce15e4d410fde53d97a4336b5a2a7.tar.xz
Factories honor charon IKEv1/IKEv2 protocol support flags
Diffstat (limited to 'src/libcharon/sa/authenticator.c')
-rw-r--r--src/libcharon/sa/authenticator.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libcharon/sa/authenticator.c b/src/libcharon/sa/authenticator.c
index d7a4b3eef..ea1889a61 100644
--- a/src/libcharon/sa/authenticator.c
+++ b/src/libcharon/sa/authenticator.c
@@ -45,6 +45,8 @@ ENUM_NEXT(auth_method_names, AUTH_XAUTH_INIT_PSK, AUTH_HYBRID_RESP_RSA, AUTH_ECD
);
ENUM_END(auth_method_names, AUTH_HYBRID_RESP_RSA);
+#ifdef USE_IKEV2
+
/**
* Described in header.
*/
@@ -106,6 +108,10 @@ authenticator_t *authenticator_create_verifier(
}
}
+#endif /* USE_IKEV2 */
+
+#ifdef USE_IKEV1
+
/**
* Described in header.
*/
@@ -137,3 +143,5 @@ authenticator_t *authenticator_create_v1(ike_sa_t *ike_sa, bool initiator,
return NULL;
}
}
+
+#endif /* USE_IKEV1 */