File tree Expand file tree Collapse file tree 6 files changed +418
-524
lines changed Expand file tree Collapse file tree 6 files changed +418
-524
lines changed Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright (c) 2025 Nordic Semiconductor ASA
3
+ *
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+
7
+ #ifndef WIFI_CREDS_H__
8
+ #define WIFI_CREDS_H__
9
+
10
+ #include <stdbool.h>
11
+ #include <zephyr/kernel.h>
12
+ #include <zephyr/net/wifi_mgmt.h>
13
+ #include <utils/common.h>
14
+ #include <eap_peer/eap_config.h>
15
+ #include <ctrl_iface_zephyr.h>
16
+ #include <wpa_supplicant/config.h>
17
+
18
+ /**
19
+ * Set Wi-Fi Enterprise credentials.
20
+ *
21
+ * Sets up the required credentials for Enterprise mode in both
22
+ * Access Point and Station modes.
23
+ *
24
+ * Certificates typically used:
25
+ * - CA certificate
26
+ * - Client certificate
27
+ * - Client private key
28
+ * - Server certificate and server key (for AP mode)
29
+ *
30
+ * @param iface Network interface
31
+ * @param AP or Station mode
32
+ */
33
+ int wifi_set_enterprise_credentials (struct net_if * iface ,
34
+ bool is_ap );
35
+
36
+ /**
37
+ * Clear Wi-Fi enterprise credentials
38
+ * @param Wi-Fi enterprise params
39
+ */
40
+ void wifi_clear_enterprise_credentials (void );
41
+
42
+ #endif /* WIFI_CREDS_H__ */
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ zephyr_library_include_directories_ifdef(
13
13
)
14
14
15
15
zephyr_library_sources_ifdef (CONFIG_NET_L2_WIFI_MGMT wifi_mgmt.c )
16
+ zephyr_library_sources_ifdef (CONFIG_WIFI_CERTIFICATE_LIB wifi_certs.c )
16
17
zephyr_library_sources_ifdef (CONFIG_NET_L2_WIFI_SHELL wifi_shell.c )
17
18
zephyr_library_sources_ifdef (CONFIG_WIFI_NM wifi_nm.c )
18
19
zephyr_library_sources_ifdef (CONFIG_NET_L2_WIFI_UTILS wifi_utils.c )
Original file line number Diff line number Diff line change @@ -128,6 +128,10 @@ config WIFI_ENT_IDENTITY_MAX_USERS
128
128
129
129
if WIFI_NM_WPA_SUPPLICANT_CRYPTO_ENTERPRISE
130
130
131
+ config WIFI_CERTIFICATE_LIB
132
+ bool "Process certificates in enterprise mode"
133
+ default y
134
+
131
135
config WIFI_SHELL_RUNTIME_CERTIFICATES
132
136
bool "Provide Wi-Fi enterprise security certificates at run-time"
133
137
select TLS_CREDENTIALS
You can’t perform that action at this time.
0 commit comments