openHiTLS API openHiTLS 0.1.0-Alpha1

◆ HITLS_CFG_NewTLCPConfig()

HITLS_Config * HITLS_CFG_NewTLCPConfig ( void  )

Create TLCP configuration items, including default settings.

The user can call the HITLS_CFG_SetXXX interface to modify the settings.

注意
The default configuration is as follows: Version number: HITLS_VERSION_TLCP11 Algorithm suite: HITLS_ECDHE_SM4_CBC_SM3, HITLS_ECC_SM4_CBC_SM3 EC point format: HITLS_POINT_FORMAT_UNCOMPRESSED groups:sm2 Extended Master Key: Enabled Signature algorithm: All signature algorithms in the HITLS_SignHashAlgo table Dual-ended check: Disabled Allow Client No Certificate: Not Allowed Renegotiation: Not supported This API is a version-specific API. After the configuration context is created, the HITLS_SetVersion, HITLS_CFG_SetVersion, HITLS_SetVersionSupport, HITLS_CFG_SetVersionSupport, HITLS_SetMinProtoVersion, or HITLS_SetMaxProtoVersion interface cannot be used to set other supported versions.
返回值
HITLS_Config,objectpointer succeeded.
NULL,objectapplication failed.