diff options
| author | Tobias Brunner <tobias@strongswan.org> | 2017-09-19 17:26:58 +0200 |
|---|---|---|
| committer | Tobias Brunner <tobias@strongswan.org> | 2017-11-08 16:48:10 +0100 |
| commit | de280c2e031730dc3c2ddcc291b1db5ee61a97d9 (patch) | |
| tree | 18b731fb0ec7c7066ed519501e293c36891f28b3 /src/libcharon | |
| parent | a413571f3bd9c94db02d8a3c026e87d57f5d120a (diff) | |
| download | strongswan-de280c2e031730dc3c2ddcc291b1db5ee61a97d9.tar.bz2 strongswan-de280c2e031730dc3c2ddcc291b1db5ee61a97d9.tar.xz | |
private-key: Add optional parameters argument to sign() method
Diffstat (limited to 'src/libcharon')
| -rw-r--r-- | src/libcharon/sa/ikev1/authenticators/pubkey_v1_authenticator.c | 2 | ||||
| -rw-r--r-- | src/libcharon/sa/ikev2/authenticators/pubkey_authenticator.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/libcharon/sa/ikev1/authenticators/pubkey_v1_authenticator.c b/src/libcharon/sa/ikev1/authenticators/pubkey_v1_authenticator.c index 8e048c82a..41be15a08 100644 --- a/src/libcharon/sa/ikev1/authenticators/pubkey_v1_authenticator.c +++ b/src/libcharon/sa/ikev1/authenticators/pubkey_v1_authenticator.c @@ -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); diff --git a/src/libcharon/sa/ikev2/authenticators/pubkey_authenticator.c b/src/libcharon/sa/ikev2/authenticators/pubkey_authenticator.c index e47abc72d..befdfe387 100644 --- a/src/libcharon/sa/ikev2/authenticators/pubkey_authenticator.c +++ b/src/libcharon/sa/ikev2/authenticators/pubkey_authenticator.c @@ -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; } |
