public-key: Add optional parameters argument to verify() method
This commit is contained in:
@@ -176,7 +176,7 @@ METHOD(authenticator_t, process, status_t,
|
||||
id, auth, TRUE);
|
||||
while (enumerator->enumerate(enumerator, &public, ¤t_auth))
|
||||
{
|
||||
if (public->verify(public, scheme, hash, sig))
|
||||
if (public->verify(public, scheme, NULL, hash, sig))
|
||||
{
|
||||
DBG1(DBG_IKE, "authentication of '%Y' with %N successful",
|
||||
id, signature_scheme_names, scheme);
|
||||
|
||||
@@ -434,7 +434,7 @@ METHOD(authenticator_t, process, status_t,
|
||||
key_type, id, auth, online);
|
||||
while (enumerator->enumerate(enumerator, &public, ¤t_auth))
|
||||
{
|
||||
if (public->verify(public, scheme, octets, auth_data))
|
||||
if (public->verify(public, scheme, NULL, octets, auth_data))
|
||||
{
|
||||
DBG1(DBG_IKE, "authentication of '%Y' with %N successful", id,
|
||||
auth_method == AUTH_DS ? signature_scheme_names : auth_method_names,
|
||||
|
||||
Reference in New Issue
Block a user