This function sets the root certificate used for EAP-TLS connection of wireless LAN and SSL / TLS communication.

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.
ValueDescription
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.h
Library 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