Line data Source code
1 0 : /*
2 : * Copyright (c) 2025 Nordic Semiconductor ASA
3 : *
4 : * SPDX-License-Identifier: Apache-2.0
5 : */
6 :
7 : #ifndef WIFI_CERTS_H__
8 : #define WIFI_CERTS_H__
9 :
10 : #include <stdbool.h>
11 : #include <zephyr/kernel.h>
12 : #include <zephyr/net/wifi_mgmt.h>
13 :
14 : /**
15 : * Set Wi-Fi Enterprise credentials.
16 : *
17 : * Sets up the required credentials for Enterprise mode in both
18 : * Access Point and Station modes.
19 : *
20 : * Certificates typically used:
21 : * - CA certificate
22 : * - Client certificate
23 : * - Client private key
24 : * - Server certificate and server key (for AP mode)
25 : *
26 : * @param iface Network interface
27 : * @param is_ap AP or Station mode
28 : *
29 : * @return 0 if ok, < 0 if error
30 : */
31 1 : int wifi_set_enterprise_credentials(struct net_if *iface, bool is_ap);
32 :
33 : /**
34 : * Clear Wi-Fi enterprise credentials
35 : */
36 1 : void wifi_clear_enterprise_credentials(void);
37 :
38 : #endif /* WIFI_CERTS_H__ */
|