private-key: Add optional parameters argument to sign() method
This commit is contained in:
@@ -110,7 +110,7 @@ METHOD(authenticator_t, build, status_t,
|
||||
}
|
||||
free(dh.ptr);
|
||||
|
||||
if (private->sign(private, scheme, hash, &sig))
|
||||
if (private->sign(private, scheme, NULL, hash, &sig))
|
||||
{
|
||||
sig_payload = hash_payload_create(PLV1_SIGNATURE);
|
||||
sig_payload->set_hash(sig_payload, sig);
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user