vcpkg/ports/boinc/001-add-openssl3-support.patch
Vitalii Koshura 40d7ccf880
[boinc] Add custom patch (copied from mainstream unreleased code) to support OpenSSL3 (#22945)
Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
2022-02-15 20:28:32 -08:00

14 lines
438 B
Diff

diff --git a/lib/crypt.cpp b/lib/crypt.cpp
index 01249cfc340..9b1f69160b8 100644
--- a/lib/crypt.cpp
+++ b/lib/crypt.cpp
@@ -672,7 +672,7 @@ int check_validity_of_cert(
}
#ifdef HAVE_OPAQUE_RSA_DSA_DH
RSA *rsa;
- rsa = EVP_PKEY_get0_RSA(pubKey);
+ rsa = (rsa_st*)EVP_PKEY_get0_RSA(pubKey);
if (!RSA_blinding_on(rsa, c)) {
#else
if (!RSA_blinding_on(pubKey->pkey.rsa, c)) {