harmony 鸿蒙net_ssl_c.h

  • 2025-06-16
  • 浏览 (3)

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是否允许。

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Network Kit(网络服务)

harmony 鸿蒙NetConn_ConnectionProperties

harmony 鸿蒙NetConn_HttpProxy

harmony 鸿蒙NetConn_NetAddr

harmony 鸿蒙NetConn_NetCapabilities

harmony 鸿蒙NetConn_NetConnCallback

harmony 鸿蒙NetConn_NetHandle

harmony 鸿蒙NetConn_NetHandleList

harmony 鸿蒙NetConn_NetSpecifier

harmony 鸿蒙NetConn_Route

0  赞