openHiTLS API openHiTLS 0.1.0-Alpha1

◆ HITLS_SetNeedCheckPmsVersion()

int32_t HITLS_SetNeedCheckPmsVersion ( HITLS_Ctx ctx,
bool  needCheck 
)

Sets whether to verify the version in the premaster secret.

Parameters
ctx[OUT] TLS Connection Handle.
needCheck[IN] Indicates whether to perform check.
Attention
This parameter is valid for versions earlier than TLS1.1. true indicates that verification is supported, and false indicates that verification is not supported. In this case, rollback attacks may occur. For versions later than TLS1.1, forcible verification is supported. This interface takes effect on the server.
Return values
HITLS_SUCCESS,ifsuccessful.
HITLS_NULL_INPUT,configis null.