#![allow(non_upper_case_globals)]
#![allow(non_camel_case_types)]
#![allow(non_snake_case)]
use crate::net_ssl_c_type::*;
extern "C" {
#[cfg(feature = "api-11")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-11")))]
pub fn OH_NetStack_CertVerification(
cert: *const NetStack_CertBlob,
caCert: *const NetStack_CertBlob,
) -> u32;
#[cfg(feature = "api-12")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
pub fn OH_NetStack_GetPinSetForHostName(
hostname: *const ::core::ffi::c_char,
pin: *mut NetStack_CertificatePinning,
) -> i32;
#[cfg(feature = "api-12")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
pub fn OH_NetStack_GetCertificatesForHostName(
hostname: *const ::core::ffi::c_char,
certs: *mut NetStack_Certificates,
) -> i32;
#[cfg(feature = "api-12")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
pub fn OH_Netstack_DestroyCertificatesContent(certs: *mut NetStack_Certificates);
#[cfg(feature = "api-18")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-18")))]
pub fn OH_Netstack_IsCleartextPermitted(isCleartextPermitted: *mut bool) -> i32;
#[cfg(feature = "api-18")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-18")))]
pub fn OH_Netstack_IsCleartextPermittedByHostName(
hostname: *const ::core::ffi::c_char,
isCleartextPermitted: *mut bool,
) -> i32;
#[cfg(feature = "api-20")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-20")))]
pub fn OH_Netstack_IsCleartextCfgByComponent(
component: *const ::core::ffi::c_char,
componentCfg: *mut bool,
) -> i32;
}