Support building with Nettle 4

This makes GnuTLS compile against Nettle 4.0. Notable changes are:

  • Use nettle_hash_{init,update,digest}_func types as possible, instead of the custom types
  • Conditionalize the call to nettle_hash_digest_func with/without the length argument, based on NETTLE_VERSION_MAJOR
  • Truncation of digest output is now handled by the caller of nettle_hash_digest_func
  • Give up supporting HMAC backed by accelerated implementation

Fixes: #1791 (closed)

Checklist

  • Commits have Signed-off-by: with name/author being identical to the commit author
  • Code modified for feature
  • Test suite updated with functionality tests
  • Test suite updated with negative tests
  • Documentation updated / NEWS entry present (for non-trivial changes)

Reviewer's checklist:

  • Any issues marked for closing are addressed
  • There is a test suite reasonably covering new functionality or modifications
  • Function naming, parameters, return values, types, etc., are consistent and according to CONTRIBUTION.md
  • This feature/change has adequate documentation added
  • No obvious mistakes in the code
Edited by Alexander Sosedkin

Merge request reports

Loading