aboutsummaryrefslogtreecommitdiffstats
path: root/libparc/parc
diff options
context:
space:
mode:
authorDevel <acompagn+fdio@cisco.com>2018-05-08 18:19:13 +0200
committerDevel <acompagn+fdio@cisco.com>2018-05-08 18:19:13 +0200
commitc5cac175664c8bdc74d1ac22e092eb9d1a8ae5a0 (patch)
treea63520b02dda05543538ec29626a4159912442eb /libparc/parc
parentc99318c9375f4a972b9c82dcfdfb7a879d29eba4 (diff)
Changed signature of parcIdentity_CreateSigner to add the crypto hash type
Change-Id: Ie696780bf85100733c8704f5c8a606bb100eef58 Signed-off-by: Devel <acompagn+fdio@cisco.com>
Diffstat (limited to 'libparc/parc')
-rwxr-xr-xlibparc/parc/security/parc_Identity.c4
-rwxr-xr-xlibparc/parc/security/parc_Identity.h4
2 files changed, 4 insertions, 4 deletions
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 <parc/algol/parc_Object.h>
#include <parc/security/parc_Signer.h>
-#include <parc/security/parc_CryptoSuite.h>
+#include <parc/security/parc_CryptoHashType.h>
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.