Skip to content

Commit 39e91e0

Browse files
committed
Fix demos for updating ubuntu version
1 parent 7b7cae3 commit 39e91e0

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

demos/fleet_provisioning/fleet_provisioning_with_csr/pkcs11_operations.c

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -936,10 +936,12 @@ static int32_t privateKeySigningCallback( mbedtls_pk_context * pContext,
936936
{
937937
ret = CKR_ARGUMENTS_BAD;
938938
}
939-
940-
mech.mechanism = CKM_ECDSA;
941-
memcpy( toBeSigned, pHash, hashLen );
942-
toBeSignedLen = hashLen;
939+
else
940+
{
941+
mech.mechanism = CKM_ECDSA;
942+
memcpy( toBeSigned, pHash, hashLen );
943+
toBeSignedLen = hashLen;
944+
}
943945

944946
if( ret == CKR_OK )
945947
{

0 commit comments

Comments
 (0)