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.
This commit is contained in:
Ed Maste
2024-06-19 19:20:43 -04:00
committed by Ryan Foster
parent 23e772cc2c
commit 038c91d823

View File

@@ -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");