Merge option to disable truncated hmac on the server-side
This commit is contained in:
commit
c82b7e2003
7 changed files with 80 additions and 24 deletions
|
@ -1523,15 +1523,15 @@ int ssl_set_max_frag_len( ssl_context *ssl, unsigned char mfl_code );
|
|||
|
||||
#if defined(POLARSSL_SSL_TRUNCATED_HMAC)
|
||||
/**
|
||||
* \brief Activate negotiation of truncated HMAC (Client only)
|
||||
* (Default: SSL_TRUNC_HMAC_ENABLED)
|
||||
* \brief Activate negotiation of truncated HMAC
|
||||
* (Default: SSL_TRUNC_HMAC_DISABLED on client,
|
||||
* SSL_TRUNC_HMAC_ENABLED on server.)
|
||||
*
|
||||
* \param ssl SSL context
|
||||
* \param truncate Enable or disable (SSL_TRUNC_HMAC_ENABLED or
|
||||
* SSL_TRUNC_HMAC_DISABLED)
|
||||
*
|
||||
* \return O if successful,
|
||||
* POLARSSL_ERR_SSL_BAD_INPUT_DATA if used server-side
|
||||
* \return Always 0.
|
||||
*/
|
||||
int ssl_set_truncated_hmac( ssl_context *ssl, int truncate );
|
||||
#endif /* POLARSSL_SSL_TRUNCATED_HMAC */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue