Syntax
int SysSetWLANRootcert(
int certIndex,
char *rootcertPath,
int mode
);
Parameters
- certIndex
- [in] Specify the number of the array where you want to install the root certificate (0-13).
- rootcertPath
- [in] The path to the root certificate file. (DER format only)
- mode
- [in] Specify whether to set or clear.
Value Description WLAN_CERT_SET Set WLAN_CERT_CLEAR Clear
Return value
Returns TRUE if the function succeeds, FALSE otherwise.Remarks
Set the root certificate used for EAP-TLS connection of wireless LAN and SSL / TLS communication.Requirements
Header file:
lib.hLibrary file:
libSTARTUPOPH5000.a
Sample
#include <stdio.h>
#include <string.h>
#include "lib.h"
void main(void)
{
if (SysSetWLANRootcert (2, "1:/ROOT.CER", WLAN_CERT_SET) == TRUE)
printf("SUCCESS\n");
else
printf("FAIL\n");
while(1)
Idle();
}
Last updated: 2020/10/14