You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
636 B

  1. commit 91b66a6b402b790f3c8cebb0420ef549744ee197
  2. Author: Sergey V. Lobanov <sergey@lobanov.in>
  3. Date: Mon Jan 3 19:25:45 2022 +0300
  4. add compatibility for wolfssl >= 5.0
  5. NTRU support has been removed in wolfssl 5.0 so it is required to
  6. mask NTRU specific code if wolfssl >= 5.0
  7. --- a/src/ssl/openssl.c
  8. +++ b/src/ssl/openssl.c
  9. @@ -336,7 +336,9 @@ static bool handle_wolfssl_asn_error(voi
  10. case ASN_SIG_HASH_E:
  11. case ASN_SIG_KEY_E:
  12. case ASN_DH_KEY_E:
  13. +#if LIBWOLFSSL_VERSION_HEX < 0x05000000
  14. case ASN_NTRU_KEY_E:
  15. +#endif
  16. case ASN_CRIT_EXT_E:
  17. case ASN_ALT_NAME_E:
  18. case ASN_NO_PEM_HEADER: