ASR_BASE
Change-Id: Icf3719cc0afe3eeb3edc7fa80a2eb5199ca9dda1
diff --git a/external/subpack/utils/ttyd/patches/090-fix-ssl-ca-option-init.patch b/external/subpack/utils/ttyd/patches/090-fix-ssl-ca-option-init.patch
new file mode 100644
index 0000000..06803ae
--- /dev/null
+++ b/external/subpack/utils/ttyd/patches/090-fix-ssl-ca-option-init.patch
@@ -0,0 +1,14 @@
+--- a/src/server.c
++++ b/src/server.c
+@@ -509,9 +509,10 @@ int main(int argc, char **argv) {
+ if (ssl) {
+ info.ssl_cert_filepath = cert_path;
+ info.ssl_private_key_filepath = key_path;
+- if (strlen(ca_path) > 0)
++ if (strlen(ca_path) > 0) {
+ info.ssl_ca_filepath = ca_path;
+ info.options |= LWS_SERVER_OPTION_REQUIRE_VALID_OPENSSL_CLIENT_CERT;
++ }
+ #if LWS_LIBRARY_VERSION_MAJOR >= 2
+ info.options |= LWS_SERVER_OPTION_REDIRECT_HTTP_TO_HTTPS;
+ #endif