private-key: Add optional parameters argument to sign() method

This commit is contained in:
Tobias Brunner
2017-11-08 16:48:10 +01:00
parent a413571f3b
commit de280c2e03
29 changed files with 50 additions and 50 deletions
@@ -222,7 +222,7 @@ static status_t sign_signature_auth(private_pubkey_authenticator_t *this,
while (enumerator->enumerate(enumerator, &schemep))
{
scheme = *schemep;
if (private->sign(private, scheme, octets, auth_data) &&
if (private->sign(private, scheme, NULL, octets, auth_data) &&
build_signature_auth_data(auth_data, scheme))
{
status = SUCCESS;
@@ -318,7 +318,7 @@ static status_t sign_classic(private_pubkey_authenticator_t *this,
}
if (get_auth_octets_scheme(this, FALSE, id, &octets, &scheme) &&
private->sign(private, scheme, octets, auth_data))
private->sign(private, scheme, NULL, octets, auth_data))
{
status = SUCCESS;
}