Håkon Øye Amundsen | 82f9695 | 2021-01-19 15:32:15 +0100 | [diff] [blame^] | 1 | From 8b2dc6377637c6c146ab5d23a4e119e3d508156c Mon Sep 17 00:00:00 2001 |
| 2 | From: =?UTF-8?q?H=C3=A5kon=20=C3=98ye=20Amundsen?= |
| 3 | <haakon.amundsen@nordicsemi.no> |
| 4 | Date: Tue, 19 Jan 2021 15:16:55 +0100 |
| 5 | Subject: [PATCH] Move misplaced 'else' within #ifdef to avoid compilation |
| 6 | error |
| 7 | MIME-Version: 1.0 |
| 8 | Content-Type: text/plain; charset=UTF-8 |
| 9 | Content-Transfer-Encoding: 8bit |
| 10 | |
| 11 | ... when MBEDTLS_MD_C is not defined. |
| 12 | |
| 13 | Signed-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 | |
| 18 | diff --git a/library/psa_crypto.c b/library/psa_crypto.c |
| 19 | index 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 | -- |
| 33 | 2.30.0 |
| 34 | |