danoon2/Boxedwine

Compile Error on Ubuntu with SSL 1.1.1 or 3.0.0

Closed this issue · 9 comments

Consolidate compiler generated dependencies of target Foundation
[ 50%] Built target Foundation
Consolidate compiler generated dependencies of target Util
[ 58%] Built target Util
Consolidate compiler generated dependencies of target Net
[ 86%] Built target Net
Consolidate compiler generated dependencies of target Crypto
[ 86%] Building CXX object Crypto/CMakeFiles/Crypto.dir/src/RSACipherImpl.cpp.o
In file included from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSAKeyImpl.h:22,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSAKey.h:23,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSACipherImpl.h:23,
from /home/stevena/Boxedwine/lib/poco/Crypto/src/RSACipherImpl.cpp:15:
/home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/EVPPKey.h: In member function ‘bool Poco::Crypto::EVPPKey::operator==(const Poco::Crypto::EVPPKey&) const’:
/home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/EVPPKey.h:291:54: warning: ‘int EVP_PKEY_cmp(const EVP_PKEY*, const EVP_PKEY*)’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
291 | return (1 == EVP_PKEY_cmp(_pEVPPKey, other._pEVPPKey));
| ^
In file included from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/EVPPKey.h:27,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSAKeyImpl.h:22,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSAKey.h:23,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSACipherImpl.h:23,
from /home/stevena/Boxedwine/lib/poco/Crypto/src/RSACipherImpl.cpp:15:
/usr/include/openssl/evp.h:1418:5: note: declared here
1418 | int EVP_PKEY_cmp(const EVP_PKEY a, const EVP_PKEY b);
| ^~~~~~~~~~~~
In file included from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSAKeyImpl.h:22,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSAKey.h:23,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSACipherImpl.h:23,
from /home/stevena/Boxedwine/lib/poco/Crypto/src/RSACipherImpl.cpp:15:
/home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/EVPPKey.h:291:54: warning: ‘int EVP_PKEY_cmp(const EVP_PKEY
, const EVP_PKEY
)’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
291 | return (1 == EVP_PKEY_cmp(_pEVPPKey, other._pEVPPKey));
| ^
In file included from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/EVPPKey.h:27,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSAKeyImpl.h:22,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSAKey.h:23,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSACipherImpl.h:23,
from /home/stevena/Boxedwine/lib/poco/Crypto/src/RSACipherImpl.cpp:15:
/usr/include/openssl/evp.h:1418:5: note: declared here
1418 | int EVP_PKEY_cmp(const EVP_PKEY a, const EVP_PKEY b);
| ^~~~~~~~~~~~
In file included from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSAKeyImpl.h:22,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSAKey.h:23,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSACipherImpl.h:23,
from /home/stevena/Boxedwine/lib/poco/Crypto/src/RSACipherImpl.cpp:15:
/home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/EVPPKey.h: In member function ‘void Poco::Crypto::EVPPKey::setKey(EC_KEY
)’:
/home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/EVPPKey.h:335:43: warning: ‘int EVP_PKEY_set1_EC_KEY(EVP_PKEY
, ec_key_st*)’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
335 | if (!EVP_PKEY_set1_EC_KEY(_pEVPPKey, pKey))
| ^
In file included from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/EVPPKey.h:27,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSAKeyImpl.h:22,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSAKey.h:23,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSACipherImpl.h:23,
from /home/stevena/Boxedwine/lib/poco/Crypto/src/RSACipherImpl.cpp:15:
/usr/include/openssl/evp.h:1370:5: note: declared here
1370 | int EVP_PKEY_set1_EC_KEY(EVP_PKEY pkey, struct ec_key_st key);
| ^~~~~~~~~~~~~~~~~~~~
In file included from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSAKeyImpl.h:22,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSAKey.h:23,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSACipherImpl.h:23,
from /home/stevena/Boxedwine/lib/poco/Crypto/src/RSACipherImpl.cpp:15:
/home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/EVPPKey.h:335:43: warning: ‘int EVP_PKEY_set1_EC_KEY(EVP_PKEY
, ec_key_st
)’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
335 | if (!EVP_PKEY_set1_EC_KEY(_pEVPPKey, pKey))
| ^
In file included from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/EVPPKey.h:27,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSAKeyImpl.h:22,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSAKey.h:23,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSACipherImpl.h:23,
from /home/stevena/Boxedwine/lib/poco/Crypto/src/RSACipherImpl.cpp:15:
/usr/include/openssl/evp.h:1370:5: note: declared here
1370 | int EVP_PKEY_set1_EC_KEY(EVP_PKEY pkey, struct ec_key_st key);
| ^~~~~~~~~~~~~~~~~~~~
In file included from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSAKeyImpl.h:22,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSAKey.h:23,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSACipherImpl.h:23,
from /home/stevena/Boxedwine/lib/poco/Crypto/src/RSACipherImpl.cpp:15:
/home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/EVPPKey.h: In member function ‘void Poco::Crypto::EVPPKey::setKey(RSA
)’:
/home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/EVPPKey.h:342:40: warning: ‘int EVP_PKEY_set1_RSA(EVP_PKEY
, rsa_st*)’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
342 | if (!EVP_PKEY_set1_RSA(_pEVPPKey, pKey))
| ^
In file included from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/EVPPKey.h:27,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSAKeyImpl.h:22,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSAKey.h:23,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSACipherImpl.h:23,
from /home/stevena/Boxedwine/lib/poco/Crypto/src/RSACipherImpl.cpp:15:
/usr/include/openssl/evp.h:1344:5: note: declared here
1344 | int EVP_PKEY_set1_RSA(EVP_PKEY pkey, struct rsa_st key);
| ^~~~~~~~~~~~~~~~~
In file included from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSAKeyImpl.h:22,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSAKey.h:23,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSACipherImpl.h:23,
from /home/stevena/Boxedwine/lib/poco/Crypto/src/RSACipherImpl.cpp:15:
/home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/EVPPKey.h:342:40: warning: ‘int EVP_PKEY_set1_RSA(EVP_PKEY
, rsa_st
)’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
342 | if (!EVP_PKEY_set1_RSA(_pEVPPKey, pKey))
| ^
In file included from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/EVPPKey.h:27,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSAKeyImpl.h:22,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSAKey.h:23,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSACipherImpl.h:23,
from /home/stevena/Boxedwine/lib/poco/Crypto/src/RSACipherImpl.cpp:15:
/usr/include/openssl/evp.h:1344:5: note: declared here
1344 | int EVP_PKEY_set1_RSA(EVP_PKEY pkey, struct rsa_st key);
| ^~~~~~~~~~~~~~~~~
/home/stevena/Boxedwine/lib/poco/Crypto/src/RSACipherImpl.cpp: In function ‘int Poco::Crypto::{anonymous}::mapPaddingMode(RSAPaddingMode)’:
/home/stevena/Boxedwine/lib/poco/Crypto/src/RSACipherImpl.cpp:54:11: error: ‘RSA_SSLV23_PADDING’ was not declared in this scope; did you mean ‘RSA_NO_PADDING’?
54 | return RSA_SSLV23_PADDING;
| ^~~~~~~~~~~~~~~~~~
| RSA_NO_PADDING
/home/stevena/Boxedwine/lib/poco/Crypto/src/RSACipherImpl.cpp: In member function ‘virtual std::size_t Poco::Crypto::{anonymous}::RSAEncryptImpl::blockSize() const’:
/home/stevena/Boxedwine/lib/poco/Crypto/src/RSACipherImpl.cpp:109:24: warning: ‘int RSA_size(const RSA
)’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
109 | return RSA_size(_pRSA);
| ^
In file included from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/EVPPKey.h:26,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSAKeyImpl.h:22,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSAKey.h:23,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSACipherImpl.h:23,
from /home/stevena/Boxedwine/lib/poco/Crypto/src/RSACipherImpl.cpp:15:
/usr/include/openssl/rsa.h:204:27: note: declared here
204 | OSSL_DEPRECATEDIN_3_0 int RSA_size(const RSA rsa);
| ^~~~~~~~
/home/stevena/Boxedwine/lib/poco/Crypto/src/RSACipherImpl.cpp:109:24: warning: ‘int RSA_size(const RSA
)’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
109 | return RSA_size(_pRSA);
| ^
In file included from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/EVPPKey.h:26,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSAKeyImpl.h:22,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSAKey.h:23,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSACipherImpl.h:23,
from /home/stevena/Boxedwine/lib/poco/Crypto/src/RSACipherImpl.cpp:15:
/usr/include/openssl/rsa.h:204:27: note: declared here
204 | OSSL_DEPRECATEDIN_3_0 int RSA_size(const RSA rsa);
| ^~~~~~~~
/home/stevena/Boxedwine/lib/poco/Crypto/src/RSACipherImpl.cpp: In member function ‘virtual std::streamsize Poco::Crypto::{anonymous}::RSAEncryptImpl::transform(const unsigned char
, std::streamsize, unsigned char
, std::streamsize)’:
/home/stevena/Boxedwine/lib/poco/Crypto/src/RSACipherImpl.cpp:163:127: warning: ‘int RSA_public_encrypt(int, const unsigned char*, unsigned char*, RSA*, int)’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
163 | int n = RSA_public_encrypt(static_cast(maxSize), _pBuf, output, const_cast<RSA*>(_pRSA), mapPaddingMode(_paddingMode));
| ^
In file included from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/EVPPKey.h:26,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSAKeyImpl.h:22,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSAKey.h:23,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSACipherImpl.h:23,
from /home/stevena/Boxedwine/lib/poco/Crypto/src/RSACipherImpl.cpp:15:
/usr/include/openssl/rsa.h:282:5: note: declared here
282 | int RSA_public_encrypt(int flen, const unsigned char from, unsigned char to,
| ^~~~~~~~~~~~~~~~~~
/home/stevena/Boxedwine/lib/poco/Crypto/src/RSACipherImpl.cpp:163:127: warning: ‘int RSA_public_encrypt(int, const unsigned char
, unsigned char
, RSA*, int)’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
163 | int n = RSA_public_encrypt(static_cast(maxSize), _pBuf, output, const_cast<RSA*>(_pRSA), mapPaddingMode(_paddingMode));
| ^
In file included from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/EVPPKey.h:26,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSAKeyImpl.h:22,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSAKey.h:23,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSACipherImpl.h:23,
from /home/stevena/Boxedwine/lib/poco/Crypto/src/RSACipherImpl.cpp:15:
/usr/include/openssl/rsa.h:282:5: note: declared here
282 | int RSA_public_encrypt(int flen, const unsigned char from, unsigned char to,
| ^~~~~~~~~~~~~~~~~~
/home/stevena/Boxedwine/lib/poco/Crypto/src/RSACipherImpl.cpp: In member function ‘virtual std::streamsize Poco::Crypto::{anonymous}::RSAEncryptImpl::finalize(unsigned char
, std::streamsize)’:
/home/stevena/Boxedwine/lib/poco/Crypto/src/RSACipherImpl.cpp:194:120: warning: ‘int RSA_public_encrypt(int, const unsigned char
, unsigned char*, RSA*, int)’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
194 | rc = RSA_public_encrypt(static_cast(_pos), _pBuf, output, const_cast<RSA*>(_pRSA), mapPaddingMode(_paddingMode));
| ^
In file included from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/EVPPKey.h:26,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSAKeyImpl.h:22,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSAKey.h:23,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSACipherImpl.h:23,
from /home/stevena/Boxedwine/lib/poco/Crypto/src/RSACipherImpl.cpp:15:
/usr/include/openssl/rsa.h:282:5: note: declared here
282 | int RSA_public_encrypt(int flen, const unsigned char from, unsigned char to,
| ^~~~~~~~~~~~~~~~~~
/home/stevena/Boxedwine/lib/poco/Crypto/src/RSACipherImpl.cpp:194:120: warning: ‘int RSA_public_encrypt(int, const unsigned char
, unsigned char
, RSA*, int)’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
194 | rc = RSA_public_encrypt(static_cast(_pos), _pBuf, output, const_cast<RSA*>(_pRSA), mapPaddingMode(_paddingMode));
| ^
In file included from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/EVPPKey.h:26,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSAKeyImpl.h:22,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSAKey.h:23,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSACipherImpl.h:23,
from /home/stevena/Boxedwine/lib/poco/Crypto/src/RSACipherImpl.cpp:15:
/usr/include/openssl/rsa.h:282:5: note: declared here
282 | int RSA_public_encrypt(int flen, const unsigned char *from, unsigned char to,
| ^~~~~~~~~~~~~~~~~~
/home/stevena/Boxedwine/lib/poco/Crypto/src/RSACipherImpl.cpp: In member function ‘virtual std::size_t Poco::Crypto::{anonymous}::RSADecryptImpl::blockSize() const’:
/home/stevena/Boxedwine/lib/poco/Crypto/src/RSACipherImpl.cpp:247:24: warning: ‘int RSA_size(const RSA
)’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
247 | return RSA_size(_pRSA);

seems that might not of been my error

  |                             ^~~~~~~~~~~~~~~~~~~~~~~~

/usr/bin/ld: cannot find -lPocoNetSSL: No such file or directory
/usr/bin/ld: cannot find -lPocoCrypto: No such file or directory
collect2: error: ld returned 1 exit status

trying later version of poco...

/Boxedwine/project/linux$ ls
bin build64static.sh buildPocoLib.sh buildRaspberryTest.sh buildtest.sh fastAuto.sh makefile pkcs11-helper
build64.sh buildInstructions.txt buildRaspberry.sh build.sh fastAuto64.sh linux_build msvc-remote poco
(base) stevena@stevena-HP-ProDesk-400-G1-MT:
/Boxedwine/project/linux$ ./build64.sh
-- Checking for C++14 compiler
-- Checking for C++14 compiler - available
-- Could NOT find APR (missing: APR_INCLUDE_DIR APR_LIBRARY)
-- Could NOT find APRUTIL (missing: APRUTIL_INCLUDE_DIR APRUTIL_LIBRARY)
-- Could NOT find Apache2 (missing: APACHE2_INCLUDE_DIR)
CMake Warning (dev) at /usr/share/cmake-3.23/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
The package name passed to find_package_handle_standard_args (MYSQL) does
not match the name of the calling package (MySQL). This can lead to
problems in calling code that expects find_package result variables
(e.g., _FOUND) to follow a certain pattern.
Call Stack (most recent call first):
cmake/FindMySQL.cmake:107 (find_package_handle_standard_args)
CMakeLists.txt:119 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.

-- Could NOT find MYSQL (missing: MYSQL_INCLUDE_DIR MYSQL_LIBRARY)
-- Could NOT find ODBC (missing: ODBC_LIBRARY ODBC_INCLUDE_DIR)
-- Building without tests & samples
-- Using internal sqlite, zlib, pcre, expat, ...
-- CMake 3.23.1 successfully configured Poco using Unix Makefiles generator
-- Poco package version: 1.10.1
-- Building static libraries
-- [cmake] Installation target path: /usr/local
-- [cmake] Bulid for OS type: Linux
-- [cmake] Build for OS version: 5.15.0-30-generic
-- [cmake] Build for CPU type: x86_64
-- [cmake] Build type: Release
-- [cmake] Build with cxx flags: -O2 -DNDEBUG
-- [cmake] Build with c flags: -O2 -DNDEBUG
-- Building: Util
-- Building: Net
-- Building: NetSSL_OpenSSL
-- Building: Crypto
-- Configuring done
-- Generating done
-- Build files have been written to: /home/stevena/Boxedwine/project/linux/linux_build
Consolidate compiler generated dependencies of target Foundation
[ 86%] Built target Foundation
Consolidate compiler generated dependencies of target Util
[ 86%] Built target Util
Consolidate compiler generated dependencies of target Net
[ 86%] Built target Net
Consolidate compiler generated dependencies of target Crypto
[ 86%] Building CXX object Crypto/CMakeFiles/Crypto.dir/src/RSACipherImpl.cpp.o
In file included from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSAKeyImpl.h:22,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSAKey.h:23,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSACipherImpl.h:23,
from /home/stevena/Boxedwine/lib/poco/Crypto/src/RSACipherImpl.cpp:15:
/home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/EVPPKey.h: In member function ‘bool Poco::Crypto::EVPPKey::operator==(const Poco::Crypto::EVPPKey&) const’:
/home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/EVPPKey.h:291:54: warning: ‘int EVP_PKEY_cmp(const EVP_PKEY*, const EVP_PKEY*)’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
291 | return (1 == EVP_PKEY_cmp(_pEVPPKey, other._pEVPPKey));
| ^
In file included from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/EVPPKey.h:27,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSAKeyImpl.h:22,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSAKey.h:23,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSACipherImpl.h:23,
from /home/stevena/Boxedwine/lib/poco/Crypto/src/RSACipherImpl.cpp:15:
/usr/include/openssl/evp.h:1418:5: note: declared here
1418 | int EVP_PKEY_cmp(const EVP_PKEY a, const EVP_PKEY b);
| ^~~~~~~~~~~~
In file included from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSAKeyImpl.h:22,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSAKey.h:23,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSACipherImpl.h:23,
from /home/stevena/Boxedwine/lib/poco/Crypto/src/RSACipherImpl.cpp:15:
/home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/EVPPKey.h:291:54: warning: ‘int EVP_PKEY_cmp(const EVP_PKEY
, const EVP_PKEY
)’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
291 | return (1 == EVP_PKEY_cmp(_pEVPPKey, other._pEVPPKey));
| ^
In file included from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/EVPPKey.h:27,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSAKeyImpl.h:22,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSAKey.h:23,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSACipherImpl.h:23,
from /home/stevena/Boxedwine/lib/poco/Crypto/src/RSACipherImpl.cpp:15:
/usr/include/openssl/evp.h:1418:5: note: declared here
1418 | int EVP_PKEY_cmp(const EVP_PKEY a, const EVP_PKEY b);
| ^~~~~~~~~~~~
In file included from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSAKeyImpl.h:22,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSAKey.h:23,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSACipherImpl.h:23,
from /home/stevena/Boxedwine/lib/poco/Crypto/src/RSACipherImpl.cpp:15:
/home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/EVPPKey.h: In member function ‘void Poco::Crypto::EVPPKey::setKey(EC_KEY
)’:
/home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/EVPPKey.h:335:43: warning: ‘int EVP_PKEY_set1_EC_KEY(EVP_PKEY
, ec_key_st*)’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
335 | if (!EVP_PKEY_set1_EC_KEY(_pEVPPKey, pKey))
| ^
In file included from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/EVPPKey.h:27,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSAKeyImpl.h:22,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSAKey.h:23,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSACipherImpl.h:23,
from /home/stevena/Boxedwine/lib/poco/Crypto/src/RSACipherImpl.cpp:15:
/usr/include/openssl/evp.h:1370:5: note: declared here
1370 | int EVP_PKEY_set1_EC_KEY(EVP_PKEY pkey, struct ec_key_st key);
| ^~~~~~~~~~~~~~~~~~~~
In file included from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSAKeyImpl.h:22,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSAKey.h:23,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSACipherImpl.h:23,
from /home/stevena/Boxedwine/lib/poco/Crypto/src/RSACipherImpl.cpp:15:
/home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/EVPPKey.h:335:43: warning: ‘int EVP_PKEY_set1_EC_KEY(EVP_PKEY
, ec_key_st
)’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
335 | if (!EVP_PKEY_set1_EC_KEY(_pEVPPKey, pKey))
| ^
In file included from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/EVPPKey.h:27,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSAKeyImpl.h:22,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSAKey.h:23,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSACipherImpl.h:23,
from /home/stevena/Boxedwine/lib/poco/Crypto/src/RSACipherImpl.cpp:15:
/usr/include/openssl/evp.h:1370:5: note: declared here
1370 | int EVP_PKEY_set1_EC_KEY(EVP_PKEY pkey, struct ec_key_st key);
| ^~~~~~~~~~~~~~~~~~~~
In file included from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSAKeyImpl.h:22,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSAKey.h:23,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSACipherImpl.h:23,
from /home/stevena/Boxedwine/lib/poco/Crypto/src/RSACipherImpl.cpp:15:
/home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/EVPPKey.h: In member function ‘void Poco::Crypto::EVPPKey::setKey(RSA
)’:
/home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/EVPPKey.h:342:40: warning: ‘int EVP_PKEY_set1_RSA(EVP_PKEY
, rsa_st*)’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
342 | if (!EVP_PKEY_set1_RSA(_pEVPPKey, pKey))
| ^
In file included from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/EVPPKey.h:27,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSAKeyImpl.h:22,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSAKey.h:23,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSACipherImpl.h:23,
from /home/stevena/Boxedwine/lib/poco/Crypto/src/RSACipherImpl.cpp:15:
/usr/include/openssl/evp.h:1344:5: note: declared here
1344 | int EVP_PKEY_set1_RSA(EVP_PKEY pkey, struct rsa_st key);
| ^~~~~~~~~~~~~~~~~
In file included from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSAKeyImpl.h:22,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSAKey.h:23,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSACipherImpl.h:23,
from /home/stevena/Boxedwine/lib/poco/Crypto/src/RSACipherImpl.cpp:15:
/home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/EVPPKey.h:342:40: warning: ‘int EVP_PKEY_set1_RSA(EVP_PKEY
, rsa_st
)’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
342 | if (!EVP_PKEY_set1_RSA(_pEVPPKey, pKey))
| ^
In file included from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/EVPPKey.h:27,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSAKeyImpl.h:22,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSAKey.h:23,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSACipherImpl.h:23,
from /home/stevena/Boxedwine/lib/poco/Crypto/src/RSACipherImpl.cpp:15:
/usr/include/openssl/evp.h:1344:5: note: declared here
1344 | int EVP_PKEY_set1_RSA(EVP_PKEY pkey, struct rsa_st key);
| ^~~~~~~~~~~~~~~~~
/home/stevena/Boxedwine/lib/poco/Crypto/src/RSACipherImpl.cpp: In function ‘int Poco::Crypto::{anonymous}::mapPaddingMode(RSAPaddingMode)’:
/home/stevena/Boxedwine/lib/poco/Crypto/src/RSACipherImpl.cpp:54:11: error: ‘RSA_SSLV23_PADDING’ was not declared in this scope; did you mean ‘RSA_NO_PADDING’?
54 | return RSA_SSLV23_PADDING;
| ^~~~~~~~~~~~~~~~~~
| RSA_NO_PADDING
/home/stevena/Boxedwine/lib/poco/Crypto/src/RSACipherImpl.cpp: In member function ‘virtual std::size_t Poco::Crypto::{anonymous}::RSAEncryptImpl::blockSize() const’:
/home/stevena/Boxedwine/lib/poco/Crypto/src/RSACipherImpl.cpp:109:24: warning: ‘int RSA_size(const RSA
)’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
109 | return RSA_size(_pRSA);
| ^
In file included from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/EVPPKey.h:26,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSAKeyImpl.h:22,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSAKey.h:23,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSACipherImpl.h:23,
from /home/stevena/Boxedwine/lib/poco/Crypto/src/RSACipherImpl.cpp:15:
/usr/include/openssl/rsa.h:204:27: note: declared here
204 | OSSL_DEPRECATEDIN_3_0 int RSA_size(const RSA rsa);
| ^~~~~~~~
/home/stevena/Boxedwine/lib/poco/Crypto/src/RSACipherImpl.cpp:109:24: warning: ‘int RSA_size(const RSA
)’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
109 | return RSA_size(_pRSA);
| ^
In file included from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/EVPPKey.h:26,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSAKeyImpl.h:22,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSAKey.h:23,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSACipherImpl.h:23,
from /home/stevena/Boxedwine/lib/poco/Crypto/src/RSACipherImpl.cpp:15:
/usr/include/openssl/rsa.h:204:27: note: declared here
204 | OSSL_DEPRECATEDIN_3_0 int RSA_size(const RSA rsa);
| ^~~~~~~~
/home/stevena/Boxedwine/lib/poco/Crypto/src/RSACipherImpl.cpp: In member function ‘virtual std::streamsize Poco::Crypto::{anonymous}::RSAEncryptImpl::transform(const unsigned char
, std::streamsize, unsigned char
, std::streamsize)’:
/home/stevena/Boxedwine/lib/poco/Crypto/src/RSACipherImpl.cpp:163:127: warning: ‘int RSA_public_encrypt(int, const unsigned char*, unsigned char*, RSA*, int)’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
163 | int n = RSA_public_encrypt(static_cast(maxSize), _pBuf, output, const_cast<RSA*>(_pRSA), mapPaddingMode(_paddingMode));
| ^
In file included from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/EVPPKey.h:26,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSAKeyImpl.h:22,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSAKey.h:23,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSACipherImpl.h:23,
from /home/stevena/Boxedwine/lib/poco/Crypto/src/RSACipherImpl.cpp:15:
/usr/include/openssl/rsa.h:282:5: note: declared here
282 | int RSA_public_encrypt(int flen, const unsigned char from, unsigned char to,
| ^~~~~~~~~~~~~~~~~~
/home/stevena/Boxedwine/lib/poco/Crypto/src/RSACipherImpl.cpp:163:127: warning: ‘int RSA_public_encrypt(int, const unsigned char
, unsigned char
, RSA*, int)’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
163 | int n = RSA_public_encrypt(static_cast(maxSize), _pBuf, output, const_cast<RSA*>(_pRSA), mapPaddingMode(_paddingMode));
| ^
In file included from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/EVPPKey.h:26,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSAKeyImpl.h:22,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSAKey.h:23,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSACipherImpl.h:23,
from /home/stevena/Boxedwine/lib/poco/Crypto/src/RSACipherImpl.cpp:15:
/usr/include/openssl/rsa.h:282:5: note: declared here
282 | int RSA_public_encrypt(int flen, const unsigned char from, unsigned char to,
| ^~~~~~~~~~~~~~~~~~
/home/stevena/Boxedwine/lib/poco/Crypto/src/RSACipherImpl.cpp: In member function ‘virtual std::streamsize Poco::Crypto::{anonymous}::RSAEncryptImpl::finalize(unsigned char
, std::streamsize)’:
/home/stevena/Boxedwine/lib/poco/Crypto/src/RSACipherImpl.cpp:194:120: warning: ‘int RSA_public_encrypt(int, const unsigned char
, unsigned char*, RSA*, int)’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
194 | rc = RSA_public_encrypt(static_cast(_pos), _pBuf, output, const_cast<RSA*>(_pRSA), mapPaddingMode(_paddingMode));
| ^
In file included from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/EVPPKey.h:26,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSAKeyImpl.h:22,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSAKey.h:23,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSACipherImpl.h:23,
from /home/stevena/Boxedwine/lib/poco/Crypto/src/RSACipherImpl.cpp:15:
/usr/include/openssl/rsa.h:282:5: note: declared here
282 | int RSA_public_encrypt(int flen, const unsigned char from, unsigned char to,
| ^~~~~~~~~~~~~~~~~~
/home/stevena/Boxedwine/lib/poco/Crypto/src/RSACipherImpl.cpp:194:120: warning: ‘int RSA_public_encrypt(int, const unsigned char
, unsigned char
, RSA*, int)’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
194 | rc = RSA_public_encrypt(static_cast(_pos), _pBuf, output, const_cast<RSA*>(_pRSA), mapPaddingMode(_paddingMode));
| ^
In file included from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/EVPPKey.h:26,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSAKeyImpl.h:22,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSAKey.h:23,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSACipherImpl.h:23,
from /home/stevena/Boxedwine/lib/poco/Crypto/src/RSACipherImpl.cpp:15:
/usr/include/openssl/rsa.h:282:5: note: declared here
282 | int RSA_public_encrypt(int flen, const unsigned char from, unsigned char to,
| ^~~~~~~~~~~~~~~~~~
/home/stevena/Boxedwine/lib/poco/Crypto/src/RSACipherImpl.cpp: In member function ‘virtual std::size_t Poco::Crypto::{anonymous}::RSADecryptImpl::blockSize() const’:
/home/stevena/Boxedwine/lib/poco/Crypto/src/RSACipherImpl.cpp:247:24: warning: ‘int RSA_size(const RSA
)’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
247 | return RSA_size(_pRSA);
| ^
In file included from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/EVPPKey.h:26,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSAKeyImpl.h:22,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSAKey.h:23,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSACipherImpl.h:23,
from /home/stevena/Boxedwine/lib/poco/Crypto/src/RSACipherImpl.cpp:15:
/usr/include/openssl/rsa.h:204:27: note: declared here
204 | OSSL_DEPRECATEDIN_3_0 int RSA_size(const RSA rsa);
| ^~~~~~~~
/home/stevena/Boxedwine/lib/poco/Crypto/src/RSACipherImpl.cpp:247:24: warning: ‘int RSA_size(const RSA
)’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
247 | return RSA_size(_pRSA);
| ^
In file included from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/EVPPKey.h:26,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSAKeyImpl.h:22,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSAKey.h:23,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSACipherImpl.h:23,
from /home/stevena/Boxedwine/lib/poco/Crypto/src/RSACipherImpl.cpp:15:
/usr/include/openssl/rsa.h:204:27: note: declared here
204 | OSSL_DEPRECATEDIN_3_0 int RSA_size(const RSA rsa);
| ^~~~~~~~
/home/stevena/Boxedwine/lib/poco/Crypto/src/RSACipherImpl.cpp: In member function ‘virtual std::streamsize Poco::Crypto::{anonymous}::RSADecryptImpl::transform(const unsigned char
, std::streamsize, unsigned char
, std::streamsize)’:
/home/stevena/Boxedwine/lib/poco/Crypto/src/RSACipherImpl.cpp:281:130: warning: ‘int RSA_private_decrypt(int, const unsigned char*, unsigned char*, RSA*, int)’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
281 | int tmp = RSA_private_decrypt(static_cast(rsaSize), _pBuf, output, const_cast<RSA*>(_pRSA), mapPaddingMode(_paddingMode));
| ^
In file included from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/EVPPKey.h:26,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSAKeyImpl.h:22,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSAKey.h:23,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSACipherImpl.h:23,
from /home/stevena/Boxedwine/lib/poco/Crypto/src/RSACipherImpl.cpp:15:
/usr/include/openssl/rsa.h:291:5: note: declared here
291 | int RSA_private_decrypt(int flen, const unsigned char from, unsigned char to,
| ^~~~~~~~~~~~~~~~~~~
/home/stevena/Boxedwine/lib/poco/Crypto/src/RSACipherImpl.cpp:281:130: warning: ‘int RSA_private_decrypt(int, const unsigned char
, unsigned char
, RSA*, int)’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
281 | int tmp = RSA_private_decrypt(static_cast(rsaSize), _pBuf, output, const_cast<RSA*>(_pRSA), mapPaddingMode(_paddingMode));
| ^
In file included from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/EVPPKey.h:26,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSAKeyImpl.h:22,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSAKey.h:23,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSACipherImpl.h:23,
from /home/stevena/Boxedwine/lib/poco/Crypto/src/RSACipherImpl.cpp:15:
/usr/include/openssl/rsa.h:291:5: note: declared here
291 | int RSA_private_decrypt(int flen, const unsigned char from, unsigned char to,
| ^~~~~~~~~~~~~~~~~~~
/home/stevena/Boxedwine/lib/poco/Crypto/src/RSACipherImpl.cpp: In member function ‘virtual std::streamsize Poco::Crypto::{anonymous}::RSADecryptImpl::finalize(unsigned char
, std::streamsize)’:
/home/stevena/Boxedwine/lib/poco/Crypto/src/RSACipherImpl.cpp:311:121: warning: ‘int RSA_private_decrypt(int, const unsigned char
, unsigned char*, RSA*, int)’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
311 | rc = RSA_private_decrypt(static_cast(_pos), _pBuf, output, const_cast<RSA*>(_pRSA), mapPaddingMode(_paddingMode));
| ^
In file included from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/EVPPKey.h:26,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSAKeyImpl.h:22,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSAKey.h:23,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSACipherImpl.h:23,
from /home/stevena/Boxedwine/lib/poco/Crypto/src/RSACipherImpl.cpp:15:
/usr/include/openssl/rsa.h:291:5: note: declared here
291 | int RSA_private_decrypt(int flen, const unsigned char from, unsigned char to,
| ^~~~~~~~~~~~~~~~~~~
/home/stevena/Boxedwine/lib/poco/Crypto/src/RSACipherImpl.cpp:311:121: warning: ‘int RSA_private_decrypt(int, const unsigned char
, unsigned char
, RSA*, int)’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
311 | rc = RSA_private_decrypt(static_cast(_pos), _pBuf, output, const_cast<RSA*>(_pRSA), mapPaddingMode(_paddingMode));
| ^
In file included from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/EVPPKey.h:26,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSAKeyImpl.h:22,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSAKey.h:23,
from /home/stevena/Boxedwine/lib/poco/Crypto/include/Poco/Crypto/RSACipherImpl.h:23,
from /home/stevena/Boxedwine/lib/poco/Crypto/src/RSACipherImpl.cpp:15:
/usr/include/openssl/rsa.h:291:5: note: declared here
291 | int RSA_private_decrypt(int flen, const unsigned char *from, unsigned char *to,
| ^~~~~~~~~~~~~~~~~~~
gmake[2]: *** [Crypto/CMakeFiles/Crypto.dir/build.make:314: Crypto/CMakeFiles/Crypto.dir/src/RSACipherImpl.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:304: Crypto/CMakeFiles/Crypto.dir/all] Error 2
gmake: *** [Makefile:156: all] Error 2

seemes updating POco to the latest does not fix it. Any ideas?

it seems like its trying to use an outdated SSL library is my guess.

I have tested the build on the latest Ubuntu, I'm currently building on Linux Mint 20 with gcc 9.3

I image I will have to remove Poco and replace it with something like libcurl. I think I only use Poco to help with downloading the demos.

Same issue on Fedora 37.

This issue is fixed in upstream POCO by using #if on the version of OpenSSL

While pulling in the latest Poco, I noticed that a few patches were made to the Poco version in this repo to allow extraction of the file descriptor of a downloaded stream. @danoon2 Do we still need these changes, or is there a way to work around it so we can use the unpatched upstream Poco?

diff -r Net/include/Poco/Net/HTTPIOStream.h ~/projects/poco/Net/include/Poco/Net/HTTPIOStream.h
80c80
< //private:
---
> private:
diff -r Net/include/Poco/Net/Socket.h ~/poco/Net/include/Poco/Net/Socket.h
337c337
< //protected:
---
> protected:

@rameshvarun Thanks for finding my changes in Poco. I really need to be more careful about changing libraries just for this reason, that they get hard to upgrade. I was able to revert those two change. Hopefully that was all I changed.

@rameshvarun I'm still looking into the poco changes. I tried out submodules but decided against it because it requires more knowledge from the user in order to compile boxedwine. A simple "git clone" won't work. And even worse is that github's "Download Zip" on the main page won't contain submodules.

I started testing a new branch (james/poco_update) that contains the newer poco code without using submodules. It almost works. On Windows I don't uses CMake, I just include the files directly. But I think something must have changed. The Release build of Win32 will always crash when exiting while running "atexit" functions (so after I return from main). This works fine if I use no optimizations in the Release build, but with O2 it crashes. I will continue to investigate.

@rameshvarun Thanks for your helping trying to upgrade poco. I ended up replacing poco with curl since downloading files was the main reason I was using poco. Now I will use the installed versions of libcurl for unix like systems and will using a single api on Windows. This really reduces my need to keep libraries up to date and hopefully simplifies the code base.