Help Center/ Meeting/ Client SDK Reference/ iOS SDK/ APIs/ Basic Settings/ Setting Certificate Verification Information
Updated on 2025-04-18 GMT+08:00

Setting Certificate Verification Information

setCaVerifyParam:

API Description

This API is used to set certificate verification information.

Precautions

  1. This API is optional. By default, certificate verification is disabled.

Method Definition

1
+ (HWMSDKERR)setCaVerifyParam:(HWMCaVerifyParam *)param;

Parameter Description

Table 1 HWMCaVerifyParam description

Parameter

Mandatory

Type

Description

isVerify

Yes

BOOL

Whether verification is enabled. The default value is NO.

caPath

No

NSString *

User-defined path for storing the certificate. If this parameter is left empty, the built-in certificate is used for verification.

Return Values

Whether the API is successfully called.

Sample Code

HWMCaVerifyParam *param = [[HWMCaVerifyParam alloc] init];
param.isVerify = isVerify;
param.caPath = caPath;
[HWMSdk setCaVerifyParam:param];