mirror of
https://github.com/LizardByte/Sunshine.git
synced 2026-12-01 09:30:55 +00:00
fix(openssl): fix build with OPENSSL_NO_DEPRECATED (#3339)
This commit is contained in:
1 parent
79ada18b49
commit
ca40cfd268
2 files changed
+8
-1
No files matched your search
+7
-1
@@ -1033,7 +1033,13 @@ namespace nvhttp {
|
||||
|
||||
// Verify certificates after establishing connection
|
||||
https_server.verify = [add_cert](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 0;
|
||||
|
||||
Reference in new issue
Block a user