Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -4,6 +4,7 @@
|
|||||||
*/
|
*/
|
||||||
#include "crypto.h"
|
#include "crypto.h"
|
||||||
#include <openssl/pem.h>
|
#include <openssl/pem.h>
|
||||||
|
#include <openssl/rsa.h>
|
||||||
|
|
||||||
namespace crypto {
|
namespace crypto {
|
||||||
using asn1_string_t = util::safe_ptr<ASN1_STRING, ASN1_STRING_free>;
|
using asn1_string_t = util::safe_ptr<ASN1_STRING, ASN1_STRING_free>;
|
||||||
|
|||||||
@@ -1369,7 +1369,13 @@ namespace nvhttp {
|
|||||||
|
|
||||||
// Verify certificates after establishing connection
|
// Verify certificates after establishing connection
|
||||||
https_server.verify = [](req_https_t req, SSL *ssl) {
|
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) {
|
if (!x509) {
|
||||||
BOOST_LOG(info) << "unknown -- denied"sv;
|
BOOST_LOG(info) << "unknown -- denied"sv;
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
@@ -514,6 +514,7 @@ namespace video {
|
|||||||
{ "forced-idr"s, 1 },
|
{ "forced-idr"s, 1 },
|
||||||
{ "zerolatency"s, 1 },
|
{ "zerolatency"s, 1 },
|
||||||
{ "surfaces"s, 1 },
|
{ "surfaces"s, 1 },
|
||||||
|
{ "filler_data"s, false },
|
||||||
{ "preset"s, &config::video.nv_legacy.preset },
|
{ "preset"s, &config::video.nv_legacy.preset },
|
||||||
{ "tune"s, NV_ENC_TUNING_INFO_ULTRA_LOW_LATENCY },
|
{ "tune"s, NV_ENC_TUNING_INFO_ULTRA_LOW_LATENCY },
|
||||||
{ "rc"s, NV_ENC_PARAMS_RC_CBR },
|
{ "rc"s, NV_ENC_PARAMS_RC_CBR },
|
||||||
|
|||||||
Reference in New Issue
Block a user