aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAlamy Liu <alamy.liu@cypress.com>2020-03-24 16:37:06 -0700
committerTamas Ban <tamas.ban@arm.com>2020-04-03 09:40:51 +0000
commitf5d2fbf21f1804e1c8b93ae8fa907725df58e584 (patch)
tree59fd0866da4cdc49e9807bc6546fd4905da9bd8b /test
parent8f17a71106dfdbdb1923014d4e4c4180371112c9 (diff)
downloadtrusted-firmware-m-f5d2fbf21f1804e1c8b93ae8fa907725df58e584.tar.gz
Attest: fix typo - ATTEST_TOKEN_ERR_CBOR_TYPE
Change-Id: I540cf98000d771d539e0db82c09da457709186c7 Signed-off-by: Alamy Liu <alamy.liu@cypress.com>
Diffstat (limited to 'test')
-rw-r--r--test/suites/attestation/attest_token_decode.c16
-rw-r--r--test/suites/attestation/attest_token_decode.h10
2 files changed, 13 insertions, 13 deletions
diff --git a/test/suites/attestation/attest_token_decode.c b/test/suites/attestation/attest_token_decode.c
index 9bcf053c1c..79f88e62f4 100644
--- a/test/suites/attestation/attest_token_decode.c
+++ b/test/suites/attestation/attest_token_decode.c
@@ -289,7 +289,7 @@ attest_token_decode_get_int(struct attest_token_decode_context *me,
return_value = ATTEST_TOKEN_ERR_INTEGER_VALUE;
}
} else {
- return_value = ATTETST_TOKEN_ERR_CBOR_TYPE;
+ return_value = ATTEST_TOKEN_ERR_CBOR_TYPE;
}
Done:
@@ -337,7 +337,7 @@ attest_token_decode_get_uint(struct attest_token_decode_context *me,
return_value = ATTEST_TOKEN_ERR_INTEGER_VALUE;
}
} else {
- return_value = ATTETST_TOKEN_ERR_CBOR_TYPE;
+ return_value = ATTEST_TOKEN_ERR_CBOR_TYPE;
}
Done:
@@ -584,7 +584,7 @@ decode_sw_component(QCBORDecodeContext *decode_context,
switch(claim_item.label.int64) {
case EAT_CBOR_SW_COMPONENT_MEASUREMENT_TYPE:
if(claim_item.uDataType != QCBOR_TYPE_TEXT_STRING) {
- return_value = ATTETST_TOKEN_ERR_CBOR_TYPE;
+ return_value = ATTEST_TOKEN_ERR_CBOR_TYPE;
goto Done;
}
sw_component->measurement_type = claim_item.val.string;
@@ -595,7 +595,7 @@ decode_sw_component(QCBORDecodeContext *decode_context,
case EAT_CBOR_SW_COMPONENT_MEASUREMENT_VALUE:
if(claim_item.uDataType != QCBOR_TYPE_BYTE_STRING) {
- return_value = ATTETST_TOKEN_ERR_CBOR_TYPE;
+ return_value = ATTEST_TOKEN_ERR_CBOR_TYPE;
goto Done;
}
sw_component->measurement_val = claim_item.val.string;
@@ -605,7 +605,7 @@ decode_sw_component(QCBORDecodeContext *decode_context,
case EAT_CBOR_SW_COMPONENT_VERSION:
if(claim_item.uDataType != QCBOR_TYPE_TEXT_STRING) {
- return_value = ATTETST_TOKEN_ERR_CBOR_TYPE;
+ return_value = ATTEST_TOKEN_ERR_CBOR_TYPE;
goto Done;
}
sw_component->version = claim_item.val.string;
@@ -615,7 +615,7 @@ decode_sw_component(QCBORDecodeContext *decode_context,
case EAT_CBOR_SW_COMPONENT_SIGNER_ID:
if(claim_item.uDataType != QCBOR_TYPE_BYTE_STRING) {
- return_value = ATTETST_TOKEN_ERR_CBOR_TYPE;
+ return_value = ATTEST_TOKEN_ERR_CBOR_TYPE;
goto Done;
}
sw_component->signer_id = claim_item.val.string;
@@ -625,7 +625,7 @@ decode_sw_component(QCBORDecodeContext *decode_context,
case EAT_CBOR_SW_COMPONENT_MEASUREMENT_DESC:
if(claim_item.uDataType != QCBOR_TYPE_TEXT_STRING) {
- return_value = ATTETST_TOKEN_ERR_CBOR_TYPE;
+ return_value = ATTEST_TOKEN_ERR_CBOR_TYPE;
goto Done;
}
sw_component->measurement_desc = claim_item.val.string;
@@ -683,7 +683,7 @@ attest_token_get_sw_component(struct attest_token_decode_context *me,
}
if(sw_components_array_item.uDataType != QCBOR_TYPE_ARRAY) {
- return_value = ATTETST_TOKEN_ERR_CBOR_TYPE;
+ return_value = ATTEST_TOKEN_ERR_CBOR_TYPE;
goto Done;
}
diff --git a/test/suites/attestation/attest_token_decode.h b/test/suites/attestation/attest_token_decode.h
index 258fdbef55..b735e59c62 100644
--- a/test/suites/attestation/attest_token_decode.h
+++ b/test/suites/attestation/attest_token_decode.h
@@ -546,7 +546,7 @@ attest_token_get_num_sw_components(struct attest_token_decode_context *me,
* \retval ATTEST_TOKEN_ERR_NOT_FOUND
* There were not \c requested_index in the token.
*
- * \retval ATTETST_TOKEN_ERR_CBOR_TYPE
+ * \retval ATTEST_TOKEN_ERR_CBOR_TYPE
* The claim labeled to contain SW components is not an array.
*/
enum attest_token_err_t
@@ -573,7 +573,7 @@ attest_token_get_sw_component(struct attest_token_decode_context *me,
* \retval ATTEST_TOKEN_ERR_CBOR_NOT_WELL_FORMED
* CBOR syntax is wrong and it is not decodable.
*
- * \retval ATTETST_TOKEN_ERR_CBOR_TYPE
+ * \retval ATTEST_TOKEN_ERR_CBOR_TYPE
* Returned if the claim is not a byte string.
*
* \retval ATTEST_TOKEN_ERR_NOT_FOUND
@@ -606,7 +606,7 @@ attest_token_decode_get_bstr(struct attest_token_decode_context *me,
* \retval ATTEST_TOKEN_ERR_CBOR_NOT_WELL_FORMED
* CBOR syntax is wrong and it is not decodable.
*
- * \retval ATTETST_TOKEN_ERR_CBOR_TYPE
+ * \retval ATTEST_TOKEN_ERR_CBOR_TYPE
* Returned if the claim is not a byte string.
*
* \retval ATTEST_TOKEN_ERR_NOT_FOUND
@@ -642,7 +642,7 @@ attest_token_decode_get_tstr(struct attest_token_decode_context *me,
* \retval ATTEST_TOKEN_ERR_CBOR_NOT_WELL_FORMED
* CBOR syntax is wrong and it is not decodable.
*
- * \retval ATTETST_TOKEN_ERR_CBOR_TYPE
+ * \retval ATTEST_TOKEN_ERR_CBOR_TYPE
* Returned if the claim is not a byte string.
*
* \retval ATTEST_TOKEN_ERR_NOT_FOUND
@@ -684,7 +684,7 @@ attest_token_decode_get_int(struct attest_token_decode_context *me,
* \retval ATTEST_TOKEN_ERR_CBOR_NOT_WELL_FORMED
* CBOR syntax is wrong and it is not decodable.
*
- * \retval ATTETST_TOKEN_ERR_CBOR_TYPE
+ * \retval ATTEST_TOKEN_ERR_CBOR_TYPE
* Returned if the claim is not a byte string.
*
* \retval ATTEST_TOKEN_ERR_NOT_FOUND