summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey V. Lobanov <sergey@lobanov.in>2022-01-01 22:28:46 +0300
committerHauke Mehrtens <hauke@hauke-m.de>2022-01-16 21:47:25 +0100
commit868fd8812f477c110f9c6c5252c0bd172167b94c (patch)
tree977853155b328e9c0babf8c18091f42351b14499
parent68d09243b6fd4473004b27ff6483352e76e6af1a (diff)
downloadustream-ssl-868fd8812f477c110f9c6c5252c0bd172167b94c.tar.gz
ustream-openssl: wolfSSL: Add compatibility for wolfssl >= 5.0
NTRU support has been removed in wolfssl 5.0 so it is required to mask NTRU specific code if wolfssl >= 5.0 Signed-off-by: Sergey V. Lobanov <sergey@lobanov.in>
-rw-r--r--ustream-openssl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ustream-openssl.c b/ustream-openssl.c
index 1ce796a..894dddb 100644
--- a/ustream-openssl.c
+++ b/ustream-openssl.c
@@ -308,7 +308,9 @@ static bool handle_wolfssl_asn_error(struct ustream_ssl *us, int r)
case ASN_SIG_HASH_E:
case ASN_SIG_KEY_E:
case ASN_DH_KEY_E:
+#if LIBWOLFSSL_VERSION_HEX < 0x05000000
case ASN_NTRU_KEY_E:
+#endif
case ASN_CRIT_EXT_E:
case ASN_ALT_NAME_E:
case ASN_NO_PEM_HEADER: