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:
Jordan Yates 2023-07-12 14:41:24 +10:00 committed by Carles Cufí
commit 83b1a983a9
2 changed files with 2 additions and 2 deletions

View file

@ -24,7 +24,7 @@ static int credentials_init(void)
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)
{

View file

@ -164,7 +164,7 @@ static int credentials_init(void)
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)
{