Skip to content

Commit

Permalink
lib: modem_key_mgmt: Add CME error code 527 - Invalid content
Browse files Browse the repository at this point in the history
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]>
(cherry picked from commit c43a9ee)
  • Loading branch information
eivindj-nordic authored and github-actions[bot] committed Dec 11, 2024
1 parent ba37118 commit 0b0392a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/modem_key_mgmt/modem_key_mgmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ static int translate_error(int err)
case 519: /* already exists */
LOG_WRN("Key already exists");
return -EALREADY;
case 527: /* Invalid content */
LOG_WRN("Invalid content");
return -EINVAL;
case 528: /* not allowed in power off warning */
LOG_WRN("Not allowed when power off warning is active");
return -ECANCELED;
Expand Down

0 comments on commit 0b0392a

Please sign in to comment.