浏览代码

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).
Kurt Kartaltepe 5 年之前
父节点
当前提交
4d89123cdc
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      plugins/obs-outputs/librtmp/rtmp.c

+ 1 - 1
plugins/obs-outputs/librtmp/rtmp.c

@@ -344,7 +344,7 @@ RTMP_TLS_LoadCerts() {
 
 
     CFRelease(keychain_ref);
     CFRelease(keychain_ref);
 #elif defined(__linux__)
 #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;
         goto error;
     }
     }
 #endif
 #endif