Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user