libtpmtss: Added missing argument in hasher_from_signature_scheme()
authorAndreas Steffen <andreas.steffen@strongswan.org>
Fri, 10 Nov 2017 10:47:27 +0000 (11:47 +0100)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Fri, 10 Nov 2017 10:47:27 +0000 (11:47 +0100)
src/libtpmtss/tpm_tss_tss2.c

index dcba05c..4c0d95f 100644 (file)
@@ -742,7 +742,7 @@ METHOD(tpm_tss_t, sign, bool,
        *( (uint8_t *)((void *)&session_data_cmd.sessionAttributes ) ) = 0;
 
        key_type = key_type_from_signature_scheme(scheme);
-       hash_alg = hasher_from_signature_scheme(scheme);
+       hash_alg = hasher_from_signature_scheme(scheme, NULL);
 
        /* Check if hash algorithm is supported by TPM */
        alg_id = hash_alg_to_tpm_alg_id(hash_alg);