Skip to content

Commit 8a3e66b

Browse files
committed
fix jwt length
1 parent 27a1842 commit 8a3e66b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cbor/MessageEncoder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ CborError CBORMessageEncoder::encodeProvisioningUniqueHardwareId(CborEncoder * a
234234
CborError CBORMessageEncoder::encodeProvisioningJWT(CborEncoder * array_encoder, Message * message)
235235
{
236236
ProvisioningJWTMessage * provisioningJWT = (ProvisioningJWTMessage *) message;
237-
CHECK_CBOR(cbor_encode_byte_string(array_encoder, (uint8_t *) provisioningJWT->params.jwt, PROVISIONING_JWT_SIZE));
237+
CHECK_CBOR(cbor_encode_byte_string(array_encoder, (uint8_t *) provisioningJWT->params.jwt, strlen(provisioningJWT->params.jwt)));
238238
return CborNoError;
239239
}
240240

0 commit comments

Comments
 (0)