Skip to content

Commit c43a9ee

Browse files
eivindj-nordicjukkar
authored andcommitted
lib: modem_key_mgmt: Add CME error code 527 - Invalid content
Add CME error code 527 - Invalid content. This is returned with mfw >= 2.0.2 if the certificate written is not valid or too large. Signed-off-by: Eivind Jølsgard <[email protected]>
1 parent baaa9aa commit c43a9ee

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/modem_key_mgmt/modem_key_mgmt.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,9 @@ static int translate_error(int err)
9393
case 519: /* already exists */
9494
LOG_WRN("Key already exists");
9595
return -EALREADY;
96+
case 527: /* Invalid content */
97+
LOG_WRN("Invalid content");
98+
return -EINVAL;
9699
case 528: /* not allowed in power off warning */
97100
LOG_WRN("Not allowed when power off warning is active");
98101
return -ECANCELED;

0 commit comments

Comments
 (0)