Syntax
int SysSetWLANClientcert(
int certIndex,
char *clientcertPath,
char *privatekeyPath,
int mode
);
Parameters
- certIndex
- [in] Specify the number of the array where you want to install the client certificate (0-13).
- clientcertPath
- [in] The path to the client certificate file. (DER format only)
- privatekeyPath
- [in] The path of the private key 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
Sets the client certificate used for wireless LAN EAP-TLS connections.Requirements
Header file:
lib.hLibrary file:
libSTARTUPOPH5000.a
Sample
#include <stdio.h>
#include <string.h>
#include "lib.h"
void main(void)
{
if (SysSetWLANClientcert (2, "1:/CLIENT.CER", "1:/PRIVATE.KEY", WLAN_CERT_SET) == TRUE)
printf("SUCCESS\n");
else
printf("FAIL\n");
while(1)
Idle();
}
Last updated: 2020/10/14