openHiTLS API openHiTLS 0.1.0-Alpha1
宏定义 | 类型定义 | 枚举
Hitls_type

TLS type definition, provides the TLS type required by the user 更多...

Hitls_type 的协作图:

宏定义

#define DTLS_SCTP_SHARED_AUTHKEY_LEN   64
 DTLS SCTP authkey length, which is specified in the protocol and can be used to determine the length when the auth key is set.
 
#define TLS13_KE_MODE_PSK_ONLY   1u
 TLS1.3 key exchange mode: Only PSKs are used for key negotiation.
 
#define TLS13_KE_MODE_PSK_WITH_DHE   2u
 TLS1.3 key exchange mode: Both PSK and (EC)DHE are used for key negotiation.
 
#define TLS13_CERT_AUTH_WITH_DHE   4u
 TLS1.3 certificate authentication: The certificate authentication is used and the (EC)DHE negotiation key is required.
 

类型定义

typedef struct TlsCtx HITLS_Ctx
 HITLS context
 
typedef struct TlsConfig HITLS_Config
 config context
 
typedef struct TlsCipherSuiteInfo HITLS_Cipher
 cipherSuite information
 

枚举

enum  HITLS_SESS_CACHE_MODE { HITLS_SESS_CACHE_NO , HITLS_SESS_CACHE_CLIENT , HITLS_SESS_CACHE_SERVER , HITLS_SESS_CACHE_BOTH }
 HITLS_SESS_CACHE_MODE: mode for storing hitls sessions. 更多...
 
enum  HITLS_KeyUpdateRequest { HITLS_UPDATE_NOT_REQUESTED = 0 , HITLS_UPDATE_REQUESTED = 1 , HITLS_KEY_UPDATE_REQ_END = 255 }
 key update message type 更多...
 

详细描述

TLS type definition, provides the TLS type required by the user