net: lib: tls_credentials: earlier initialisation
The TLS credentials libraries are purely software constructs with no external dependencies, run them immediately after the kernel setup to allow other initialisation functions to add credentials without the requirement to run in the back half of the `APPLICATION` priority. Signed-off-by: Jordan Yates <jordan.yates@data61.csiro.au>
This commit is contained in:
parent
8c7ffac4a6
commit
83b1a983a9
2 changed files with 2 additions and 2 deletions
|
@ -24,7 +24,7 @@ static int credentials_init(void)
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
SYS_INIT(credentials_init, APPLICATION, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
|
SYS_INIT(credentials_init, POST_KERNEL, 0);
|
||||||
|
|
||||||
static struct tls_credential *unused_credential_get(void)
|
static struct tls_credential *unused_credential_get(void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -164,7 +164,7 @@ static int credentials_init(void)
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
SYS_INIT(credentials_init, APPLICATION, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
|
SYS_INIT(credentials_init, POST_KERNEL, 0);
|
||||||
|
|
||||||
static struct tls_credential *unused_credential_get(void)
|
static struct tls_credential *unused_credential_get(void)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue