Commit Graph

5128 Commits

Author SHA1 Message Date
Alex Fabijanic
4dfbcd33db fix(Extractor): move extraction decoding to AbstractExtractor #3396 2022-04-28 22:23:04 -05:00
Alex Fabijanic
7f26310ef2 fix(FPEnvironment): Visual Studio Warning C4244 #3543 2022-04-26 22:14:09 -05:00
Alex Fabijanic
1aee1c25b7 Merge branch 'poco-1.11.2' into poco-1.12.0 2022-04-19 09:08:43 +00:00
Alex Fabijanic
a1819107de refactor(Placeholder): more SOO consolidation and optimization 2022-04-19 09:03:47 +00:00
Aleksandar Fabijanic
45cbee7c0e
refactor(Placeholder): ifdef POCO_NO_SOO only in Placeholder and remove it anywhere else (#3566) 2022-04-18 14:28:27 -05:00
Alex Fabijanic
4f5b7c1891 fix(SHA2Engine): cannot use HMACEngine with SHA2Engine #3421 2022-04-18 17:58:31 +02:00
Günter Obiltschnig
96c0bf6d78 PocoDoc: fix iframe sandboxing 2022-04-17 20:55:06 +02:00
Alex Fabijanic
b901e6a19f Merge branch 'poco-1.11.2' into poco-1.12.0 2022-04-17 19:55:49 +02:00
Günter Obiltschnig
6da3186911 updated copyright date 2022-04-17 08:15:10 +02:00
Günter Obiltschnig
42bb5d92d0 remove unused include 2022-04-17 08:13:04 +02:00
Alex Fabijanic
fa6e3f5e9d fix(SSLManager): Race condition in SSLManager #3558 2022-04-16 21:49:49 +02:00
Alex Fabijanic
7b051851b6 merge 1.11.2 2022-04-16 21:10:45 +02:00
Aleksandar Fabijanic
9c976da830
Refactor/any soo (#3564)
* refactor(Any): SOO

- encapsulate data holders
- add missing gets and ops
- eliminate g++ warnings with enable_if's
- default enable SOO

* refactor(Placeholder): encapsulate SOO memory management and fix leaks; cf. #3297 #3514

* fix(Placeholder): asan errors and add tests

cf. #3297 #3514
2022-04-16 06:38:55 -05:00
Günter Obiltschnig
f893251b9a updated .vscode 2022-04-16 08:15:43 +02:00
Günter Obiltschnig
3df32b3526 updated CHANGELOG 2022-04-16 08:15:36 +02:00
Günter Obiltschnig
b2f5633a45 ci jobs for OpenSSL 1.1 and 3 2022-04-16 08:11:05 +02:00
Günter Obiltschnig
e99f4fd31a #3563: Remove support for OpenSSL < 1.0 2022-04-16 08:05:12 +02:00
Günter Obiltschnig
0af3f699af fix exception text 2022-04-15 17:53:21 +02:00
Günter Obiltschnig
720dbe1262 #3562: fixed OpenSSL setup/shutdown 2022-04-15 17:22:01 +02:00
Alex Fabijanic
7ae6b60e9f fix(Any): #3297 #3514 2022-04-13 21:10:56 +02:00
Alex Fabijanic
4080ee275a fix(Envelope): mac/clang compile 2022-04-13 19:58:50 +02:00
Alex Fabijanic
e6afb8749c feat(Envelope): Add envelope to crypto #3561 2022-04-13 10:02:05 +00:00
Alex Fabijanic
c4fb51ac72 fix(openssl): pre 3.0 compile 2022-04-09 21:44:11 +02:00
Alex Fabijanic
45c456653f feat(EVP): 3.0 support
- add EVPCipher
- additional EVPPKey constructors
- tests
- fix and improve openssl-related exceptions

Transition towards 3.0 support;
deprecating direct EC and RSA interface portions.
2022-04-09 18:55:26 +00:00
Günter Obiltschnig
4b0e1848b2 #3559: Poco::Data::PostgreSQL - DateTime extraction truncates fractional seconds 2022-04-07 19:06:51 +02:00
Alex Fabijanic
a2870da1d0 fix(X509Certificate): add missing string format 2022-04-04 10:24:01 +00:00
Alex Fabijanic
063520c8ef Merge branch 'poco-1.11.2' into feat/openssl3-1.11.2 2022-04-04 10:20:56 +00:00
Alex Fabijanic
1d4d444e08 chore: cleanup 2022-04-02 05:15:08 -07:00
Günter Obiltschnig
b158f90381 disable OpenSSL deprecation warnings 2022-04-02 10:21:55 +02:00
Günter Obiltschnig
753757fdf8 #3525: Bad management of file in case of OpenSSLException in X509Certificate::readPEM and X509Certificate::writePEM 2022-04-02 10:21:37 +02:00
Günter Obiltschnig
9fac40afa5 #3553: Upgrade bundled zlib to 1.2.12 2022-04-01 21:14:55 +02:00
Günter Obiltschnig
c5b38f45fe #3549; replace assert with assertTrue 2022-04-01 21:03:50 +02:00
Günter Obiltschnig
4ca3f5ca02 #3500: Sandbox all iFrames in PocoDoc 2022-04-01 12:20:22 +02:00
Alex Fabijanic
3fb001f397 fix(Socket): shutdown fixes from pull #3448 2022-03-31 19:03:27 +00:00
Robin Lee
3bab3548f4
Basic support for OpenSSL 3.0.0 (#3448)
* updated README.md

* Create close-inactive-issues.yml

* check return codes of EVP_CIPHER_CTX_new and EVP_CipherInit

Especially with OpenSSL 3, it is possible that EVP_CipherInit may fail even when
passed a non-null cipher[1]. Without the checking, it will finally get to a
segfault.

[1] https://github.com/openssl/openssl/issues/16864

* Automatically load default and legacy providers with OpenSSL 3

Without the legacy provider [1], some ciphers are not available. For example,
the 'des-ecb' one used by test sutie is missed and the test will fail.

[1] OSSL_PROVIDER-LEGACY(7ossl)

* Make p12 ca order the same as pem

OpenSSL < 3 returns p12 ca order in reversed order. This is fixed
in OpenSSL 3. We work around it with old OpenSSL.

See:
https://github.com/openssl/openssl/issues/16421
https://github.com/openssl/openssl/pull/12641
f5eb85eb0f

* Implement SSL abort handling on OpenSSL 3

On an unexpected EOF, versions before OpenSSL 3.0 returned SSL_ERROR_SYSCALL,
nothing was added to the error stack, and errno was 0. Since OpenSSL 3.0 the
returned error is SSL_ERROR_SSL with a meaningful error on the error stack.[1]

[1] SSL_GET_ERROR(3ossl)

Co-authored-by: Günter Obiltschnig <guenter.obiltschnig@appinf.com>
Co-authored-by: Robin Lee <cheeselee@fedoraproject.org>
Co-authored-by: Aleksandar Fabijanic <aleks-f@users.noreply.github.com>
2022-03-29 13:23:44 -05:00
Günter Obiltschnig
5a0b18246b use tm_gmtoff on Linux 2022-03-28 13:50:31 +02:00
Günter Obiltschnig
c0ea70c2bf remove unused method in Timezone_WIN32.cpp 2022-03-28 13:18:50 +02:00
Günter Obiltschnig
2c15b93dee #2882: another attempt at fixing it that should also work on other platforms 2022-03-28 12:57:16 +02:00
Günter Obiltschnig
6aa29ade17 #3509: fix dst and utcOffset handling for Dublin time zone 2022-03-27 21:25:51 +02:00
Günter Obiltschnig
1b5de92f09 #3268: Poco redis command set have a bug when you want to set nx ex or expireTime 2022-03-27 20:11:56 +02:00
Günter Obiltschnig
2ec44c756b #3495: Array::operator[] should not throw 2022-03-27 20:02:50 +02:00
Günter Obiltschnig
292d137909 #3483: Adds Windows 11 and Server 2022 to Environment::osDisplayName() 2022-03-27 19:53:13 +02:00
Günter Obiltschnig
0ebfafb2b9 #3524: remove XML and Util dependencies in Zip/SevenZip 2022-03-27 19:46:20 +02:00
Günter Obiltschnig
852a53e702 #3466: DefinePlatformSpecific.cmake: handle RelWithDebInfo and MinSizeRel configurations 2022-03-27 19:37:14 +02:00
Günter Obiltschnig
49573106c7
Merge pull request #3544 from jolivain/fix_nios2_build
Add back NIOS2 double conversion detection to fix compile errors
2022-03-27 19:33:26 +02:00
Julien Olivain
13e2199827 Add back NIOS2 double conversion detection to fix compile errors
The commit
558324f672

removed the nios2 support, which was originally added in
e7b91e8125

This commit add it back.

Signed-off-by: Julien Olivain <ju.o@free.fr>
2022-03-25 20:08:22 +01:00
Günter Obiltschnig
a0403928b3 #3538: Upgrade bundled expat to 2.4.7 2022-03-09 08:32:03 +01:00
Günter Obiltschnig
5239c4f023 #3530: Upgrade bundled expat to 2.4.6 2022-02-20 18:53:57 +01:00
Günter Obiltschnig
2b3662c854 added VS2022 project files 2022-02-19 21:06:24 +01:00
Günter Obiltschnig
fbc0078bac Merge branch 'poco-1.11.2' of github.com:pocoproject/poco into poco-1.11.2 2022-02-19 18:42:41 +01:00