Explorar el Código

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 hace 1 año
padre
commit
038c91d823
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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");