openHiTLS API openHiTLS 0.1.0-Alpha1

◆ HITLS_CFG_NewTLS12Config()

HITLS_Config * HITLS_CFG_NewTLS12Config ( void  )

Create a TLS12 configuration item, including the default configuration.

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

注意
The default configuration is as follows: Version number: HITLS_VERSION_TLS12 Algorithm suite: HITLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384, HITLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384, HITLS_DHE_DSS_WITH_AES_256_GCM_SHA384, HITLS_DHE_RSA_WITH_AES_256_GCM_SHA384, HITLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256, HITLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256, HITLS_DHE_RSA_WITH_CHACHA20_POLY1305_SHA256, HITLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256, HITLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256, HITLS_DHE_DSS_WITH_AES_128_GCM_SHA256, HITLS_DHE_RSA_WITH_AES_128_GCM_SHA256 EC point format: HITLS_POINT_FORMAT_UNCOMPRESSED groups:secp256r1, secp384r1, secp521r1, x25519, x448 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.