blob: 159e3250412e2e91fef6a61e41307c195f0f7172 [file] [log] [blame]
Håkon Øye Amundsen82f96952021-01-19 15:32:15 +01001From 8b2dc6377637c6c146ab5d23a4e119e3d508156c Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?H=C3=A5kon=20=C3=98ye=20Amundsen?=
3 <haakon.amundsen@nordicsemi.no>
4Date: Tue, 19 Jan 2021 15:16:55 +0100
5Subject: [PATCH] Move misplaced 'else' within #ifdef to avoid compilation
6 error
7MIME-Version: 1.0
8Content-Type: text/plain; charset=UTF-8
9Content-Transfer-Encoding: 8bit
10
11... when MBEDTLS_MD_C is not defined.
12
13Signed-off-by: Håkon Øye Amundsen <haakon.amundsen@nordicsemi.no>
14---
15 library/psa_crypto.c | 2 +-
16 1 file changed, 1 insertion(+), 1 deletion(-)
17
18diff --git a/library/psa_crypto.c b/library/psa_crypto.c
19index bffddc995..8b1201461 100644
20--- a/library/psa_crypto.c
21+++ b/library/psa_crypto.c
22@@ -5220,8 +5220,8 @@ static psa_status_t psa_key_derivation_setup_kdf(
23 operation->capacity = 255 * hash_size;
24 return( PSA_SUCCESS );
25 }
26-#endif /* MBEDTLS_MD_C */
27 else
28+#endif /* MBEDTLS_MD_C */
29 return( PSA_ERROR_NOT_SUPPORTED );
30 }
31
32--
332.30.0
34