Browse Source
Add a config flag to enable conditional mbebtls initialization at startup, defaulting to enabled. Also add a function, mbedtls_init(), that should be called by platforms that wish to initialise mbedtls at a time of their choosing. Signed-off-by: Eugene Cohen <quic_egmc@quicinc.com> Signed-off-by: Dave Aldridge <quic_daldridg@quicinc.com>pull/60087/head
3 changed files with 35 additions and 2 deletions
@ -0,0 +1,15 @@ |
|||||||
|
/*
|
||||||
|
* Copyright (c) 2022 Qualcomm Innovation Center, Inc. |
||||||
|
* |
||||||
|
* SPDX-License-Identifier: Apache-2.0 |
||||||
|
*/ |
||||||
|
|
||||||
|
#ifndef MBEDTLS_INIT_H |
||||||
|
#define MBEDTLS_INIT_H |
||||||
|
|
||||||
|
/* This should be called by platforms that do not wish to
|
||||||
|
* have mbedtls initialised during kernel startup |
||||||
|
*/ |
||||||
|
int mbedtls_init(void); |
||||||
|
|
||||||
|
#endif /* MBEDTLS_INIT_H */ |
Loading…
Reference in new issue