avrdude: update to 7.3
[feed/packages.git] / net / boinc / patches / 003-update-to-openssl-3.0.0.patch
1 From 689dc20ede9768377d4032ff8c70b58269c8dc9c Mon Sep 17 00:00:00 2001
2 From: Charlie Fenton <charlief@example.com>
3 Date: Mon, 18 Oct 2021 01:43:08 -0700
4 Subject: [PATCH] Mac: update dependent libraries to latest: c-ares-1.17.2,
5 curl-7.79.1, freetype-2.11.0, openssl-3.0.0 Previously updated to
6 wxWidgets-3.1.5. FTGL version ftgl-2.1.3~rc5 is still the current version.
7
8 ---
9 cotequeiroz: Trimming original commit to lib/crypt.cpp only
10
11 lib/crypt.cpp | 7 +-
12
13 --- a/lib/crypt.cpp
14 +++ b/lib/crypt.cpp
15 @@ -1,6 +1,6 @@
16 // This file is part of BOINC.
17 // http://boinc.berkeley.edu
18 -// Copyright (C) 2008 University of California
19 +// Copyright (C) 2021 University of California
20 //
21 // BOINC is free software; you can redistribute it and/or modify it
22 // under the terms of the GNU Lesser General Public License
23 @@ -670,7 +670,10 @@ int check_validity_of_cert(
24 }
25 #ifdef HAVE_OPAQUE_RSA_DSA_DH
26 RSA *rsa;
27 - rsa = EVP_PKEY_get0_RSA(pubKey);
28 + // CAUTION: In OpenSSL 3.0.0, EVP_PKEY_get0_RSA() now returns a
29 + // pointer of type "const struct rsa_st*" to an immutable value.
30 + // Do not try to modify the contents of the returned struct.
31 + rsa = (rsa_st*)EVP_PKEY_get0_RSA(pubKey);
32 if (!RSA_blinding_on(rsa, c)) {
33 #else
34 if (!RSA_blinding_on(pubKey->pkey.rsa, c)) {