projects
/
project
/
ustream-ssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
68d0924
)
ustream-openssl: wolfSSL: Add compatibility for wolfssl >= 5.0
author
Sergey V. Lobanov
<sergey@lobanov.in>
Sat, 1 Jan 2022 19:28:46 +0000
(22:28 +0300)
committer
Hauke Mehrtens
<hauke@hauke-m.de>
Sun, 16 Jan 2022 20:47:25 +0000
(21:47 +0100)
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>
ustream-openssl.c
patch
|
blob
|
history
diff --git
a/ustream-openssl.c
b/ustream-openssl.c
index 1ce796a3964fbed890eb514de4ed810e87594689..894dddb5afb1de7183284f7018243a1aeea581f6 100644
(file)
--- 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: