openHiTLS API openHiTLS 0.1.0-Alpha1

◆ HITLS_GetPeerSignScheme()

int32_t HITLS_GetPeerSignScheme ( const HITLS_Ctx ctx,
HITLS_SignHashAlgo peerSignScheme 
)

Obtain the signature hash algorithm used by the peer end.

Parameters
ctx[IN] TLS connection handle
peerSignScheme[OUT] Peer signature hash algorithm
Return values
HITLS_SUCCESS,ifsuccessful.
Forother error codes, see hitls_error.h.