From: Devel Date: Tue, 8 May 2018 16:19:13 +0000 (+0200) Subject: Changed signature of parcIdentity_CreateSigner to add the crypto hash type X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F79%2F12479%2F1;p=cicn.git Changed signature of parcIdentity_CreateSigner to add the crypto hash type Change-Id: Ie696780bf85100733c8704f5c8a606bb100eef58 Signed-off-by: Devel --- diff --git a/libparc/parc/security/parc_Identity.c b/libparc/parc/security/parc_Identity.c index da68fbd2..b48046ba 100755 --- a/libparc/parc/security/parc_Identity.c +++ b/libparc/parc/security/parc_Identity.c @@ -99,9 +99,9 @@ parcIdentity_GetPassWord(const PARCIdentity *identity) } PARCSigner * -parcIdentity_CreateSigner(const PARCIdentity *identity, PARCCryptoSuite suite) +parcIdentity_CreateSigner(const PARCIdentity *identity, PARCCryptoHashType hash) { - return identity->interface->GetSigner(identity->instance, parcCryptoSuite_GetSigningAlgorithm(suite)); + return identity->interface->GetSigner(identity->instance, hash); } void diff --git a/libparc/parc/security/parc_Identity.h b/libparc/parc/security/parc_Identity.h index 2cdcbad3..c00af8fa 100755 --- a/libparc/parc/security/parc_Identity.h +++ b/libparc/parc/security/parc_Identity.h @@ -45,7 +45,7 @@ #include #include -#include +#include struct parc_identity; typedef struct parc_identity PARCIdentity; @@ -279,7 +279,7 @@ const char *parcIdentity_GetPassWord(const PARCIdentity *identity); * } * @endcode */ -PARCSigner *parcIdentity_CreateSigner(const PARCIdentity *identity, PARCCryptoSuite suite); +PARCSigner *parcIdentity_CreateSigner(const PARCIdentity *identity, PARCCryptoHashType hash); /** * Determine if two PARCIdentity are equal.