fixed broken XAUTH authentication

This commit is contained in:
Andreas Steffen
2009-06-12 21:04:48 +02:00
parent b34862b14e
commit 8df811146d
4 changed files with 38 additions and 6 deletions
+20
View File
@@ -258,6 +258,26 @@ pseudo_random_function_t oakley_to_prf(int alg)
}
}
/**
* Maps IKEv1 authentication method to IKEv2 signature scheme
*/
signature_scheme_t oakley_to_signature_scheme(int method)
{
switch (method)
{
case OAKLEY_RSA_SIG:
case XAUTHInitRSA:
case XAUTHRespRSA:
return SIGN_RSA_EMSA_PKCS1_NULL;
case OAKLEY_ECDSA_256:
case OAKLEY_ECDSA_384:
case OAKLEY_ECDSA_512:
return SIGN_ECDSA_WITH_NULL;
default:
return SIGN_UNKNOWN;
}
}
/**
* Converts IKEv2 encryption to IKEv1 encryption algorithm
*/