From dfab4de4cf6e83f874c971162456883170aee0cd Mon Sep 17 00:00:00 2001 From: Jaeden Amero Date: Mon, 18 Feb 2019 15:54:54 +0000 Subject: [PATCH] crypto: test: Use new PSA error codes The PSA Framework and PSA Crypto error code names have been unified and renamed in some cases. Use the new unified names. --- TESTS/mbed-crypto/sanity/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TESTS/mbed-crypto/sanity/main.cpp b/TESTS/mbed-crypto/sanity/main.cpp index ea6e83f35f..d71563dbcb 100644 --- a/TESTS/mbed-crypto/sanity/main.cpp +++ b/TESTS/mbed-crypto/sanity/main.cpp @@ -350,7 +350,7 @@ void test_crypto_key_handles(void) TEST_ASSERT_EQUAL(PSA_SUCCESS, psa_destroy_key(key_handle)); key_handle = 0; - TEST_ASSERT_EQUAL(PSA_ERROR_EMPTY_SLOT, psa_open_key(PSA_KEY_LIFETIME_PERSISTENT, id, &key_handle)); + TEST_ASSERT_EQUAL(PSA_ERROR_DOES_NOT_EXIST, psa_open_key(PSA_KEY_LIFETIME_PERSISTENT, id, &key_handle)); } void test_crypto_hash_clone(void)