summaryrefslogtreecommitdiff
path: root/thirdparty/mbedtls/library/pk_wrap.c
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2022-12-21 18:38:27 +0100
committerRémi Verschelde <rverschelde@gmail.com>2022-12-21 18:38:27 +0100
commit27b637ce383ef7ef89d5052098e4d31aef1ff5a3 (patch)
treed9ca16f6b8c0db8a3a6f548f3b7c845b9e25c7b6 /thirdparty/mbedtls/library/pk_wrap.c
parent9b770dbd23c55835b69f5985c8da60f75b306612 (diff)
parent6e65244b6b33ff4d6f99153baafe23767a488181 (diff)
Merge pull request #70395 from akien-mga/mbedtls-2.28.2
mbedtls: Update to upstream version 2.28.2
Diffstat (limited to 'thirdparty/mbedtls/library/pk_wrap.c')
-rw-r--r--thirdparty/mbedtls/library/pk_wrap.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/thirdparty/mbedtls/library/pk_wrap.c b/thirdparty/mbedtls/library/pk_wrap.c
index 107e912ace..f35abf21a4 100644
--- a/thirdparty/mbedtls/library/pk_wrap.c
+++ b/thirdparty/mbedtls/library/pk_wrap.c
@@ -50,13 +50,7 @@
#include "mbedtls/asn1.h"
#endif
-#if defined(MBEDTLS_PLATFORM_C)
#include "mbedtls/platform.h"
-#else
-#include <stdlib.h>
-#define mbedtls_calloc calloc
-#define mbedtls_free free
-#endif
#include <limits.h>
#include <stdint.h>
@@ -872,7 +866,7 @@ static void *pk_opaque_alloc_wrap( void )
{
void *ctx = mbedtls_calloc( 1, sizeof( psa_key_id_t ) );
- /* no _init() function to call, an calloc() already zeroized */
+ /* no _init() function to call, as calloc() already zeroized */
return( ctx );
}