pluto supports ECDSA authentication

This commit is contained in:
Andreas Steffen
2009-06-12 19:59:49 +02:00
parent eca36f44de
commit 11e6d28533
25 changed files with 310 additions and 234 deletions
+2 -2
View File
@@ -1634,8 +1634,8 @@ int main(int argc, char **argv)
if (msg.policy & POLICY_OPPO)
{
if ((msg.policy & (POLICY_PSK | POLICY_RSASIG)) != POLICY_RSASIG)
diag("only RSASIG is supported for opportunism");
if ((msg.policy & (POLICY_PSK | POLICY_PUBKEY)) != POLICY_PUBKEY)
diag("only PUBKEY is supported for opportunism");
if ((msg.policy & POLICY_PFS) == 0)
diag("PFS required for opportunism");
if ((msg.policy & POLICY_ENCRYPT) == 0)