net_ssl_c.h

概述

为SSL/TLS证书链校验模块定义C接口。

库: libnet_ssl.so

系统能力: SystemCapability.Communication.NetStack

起始版本: 11

相关模块:Netstack

汇总

函数

名称 描述
OH_NetStack_CertVerification (const struct NetStack_CertBlob *cert, const struct NetStack_CertBlob *caCert) 证书链校验接口。
OH_NetStack_GetPinSetForHostName(const char *hostname, NetStack_CertificatePinning *pin) 获取证书锁定信息。
OH_NetStack_GetCertificatesForHostName(const char *hostname, NetStack_Certificates *certs) 获取证书信息。
OH_Netstack_DestroyCertificatesContent(NetStack_Certificates *certs) 释放证书内容。
OH_Netstack_IsCleartextPermitted(bool *isCleartextPermitted) 整体明文HTTP是否允许。
OH_Netstack_IsCleartextPermittedByHostName(const char *hostname, bool *isCleartextPermitted) 按域名明文HTTP是否允许。