Browse Source

librtmp: Use /etc/ssl/certs/ path on FreeBSD

All supported FreeBSD releases include a root certificate bundle in the
base system.  The path is the same as on Linux.
Ed Maste 1 year ago
parent
commit
038c91d823
1 changed files with 1 additions and 1 deletions
  1. 1 1
      plugins/obs-outputs/librtmp/rtmp.c

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

@@ -339,7 +339,7 @@ RTMP_TLS_LoadCerts(RTMP *r) {
 
     CFRelease(anchors);
 
-#elif defined(__linux__)
+#elif defined(__linux__) || defined(__FreeBSD__)
     if (mbedtls_x509_crt_parse_path(chain, "/etc/ssl/certs/") < 0) {
         RTMP_Log(RTMP_LOGERROR, "mbedtls_x509_crt_parse_path: Couldn't parse "
             "/etc/ssl/certs");