IdeaHub-场景4:TLS验证:示例代码

时间:2023-11-01 16:15:17

示例代码

//设置TLS   IdeaShareServiceTlsInfo *tlsInfo = [[IdeaShareServiceTlsInfo alloc]init];  tlsInfo.caCertpath = @"/Users/***/Desktop";  tlsInfo.clientCertpath = @"/Users/***/Desktop";  tlsInfo.verifyMode = 1;  int result = [mShareServiceController setTls: tlsInfo :^(id tlsCallback) {  }];
support.huaweicloud.com/ideahub-IdeaShare-SDK/mac-devguide-000012.html