diff --git a/src/crypto.cpp b/src/crypto.cpp index 7f4417da..3644ef5b 100644 --- a/src/crypto.cpp +++ b/src/crypto.cpp @@ -4,6 +4,7 @@ */ #include "crypto.h" #include +#include namespace crypto { using asn1_string_t = util::safe_ptr; diff --git a/src/nvhttp.cpp b/src/nvhttp.cpp index 5c21bc60..9b01a3cc 100644 --- a/src/nvhttp.cpp +++ b/src/nvhttp.cpp @@ -1369,7 +1369,13 @@ namespace nvhttp { // Verify certificates after establishing connection https_server.verify = [](req_https_t req, SSL *ssl) { - crypto::x509_t x509 { SSL_get_peer_certificate(ssl) }; + crypto::x509_t x509 { +#if OPENSSL_VERSION_MAJOR >= 3 + SSL_get1_peer_certificate(ssl) +#else + SSL_get_peer_certificate(ssl) +#endif + }; if (!x509) { BOOST_LOG(info) << "unknown -- denied"sv; return false; diff --git a/src/video.cpp b/src/video.cpp index 920218d4..4c396fa3 100644 --- a/src/video.cpp +++ b/src/video.cpp @@ -514,6 +514,7 @@ namespace video { { "forced-idr"s, 1 }, { "zerolatency"s, 1 }, { "surfaces"s, 1 }, + { "filler_data"s, false }, { "preset"s, &config::video.nv_legacy.preset }, { "tune"s, NV_ENC_TUNING_INFO_ULTRA_LOW_LATENCY }, { "rc"s, NV_ENC_PARAMS_RC_CBR },