From 4d89123cdc9c47fdf984980b93a70447c1692183 Mon Sep 17 00:00:00 2001 From: Kurt Kartaltepe Date: Sun, 12 Jan 2020 13:28:57 -0800 Subject: [PATCH] librtmp: Allow partial success for mbedtls mbedtls_x509_crt_parse_path returns a positive number if it partially succeeds and a negative number on complete failure. This changes the positive result to no longer error and prevent TLS connections (OBS verifies all endpoints so having no CA chain prevents TLS). --- plugins/obs-outputs/librtmp/rtmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/obs-outputs/librtmp/rtmp.c b/plugins/obs-outputs/librtmp/rtmp.c index 580a668f2..1194731bf 100644 --- a/plugins/obs-outputs/librtmp/rtmp.c +++ b/plugins/obs-outputs/librtmp/rtmp.c @@ -344,7 +344,7 @@ RTMP_TLS_LoadCerts() { CFRelease(keychain_ref); #elif defined(__linux__) - if (mbedtls_x509_crt_parse_path(chain, "/etc/ssl/certs/") != 0) { + if (mbedtls_x509_crt_parse_path(chain, "/etc/ssl/certs/") < 0) { goto error; } #endif