Commit Graph

236 Commits

Author SHA1 Message Date
Günter Obiltschnig
bd0235b4b0 include version resource in DLLs built with CMake 2019-06-24 15:42:23 +02:00
Günter Obiltschnig
4717b20b4e style fixes 2019-06-22 19:09:15 +02:00
Günter Obiltschnig
d38f7e2289 fixed GH #2380: Calling Poco::Net::X509Certificate::addChainCertificate() leads to double free. 2019-06-22 18:13:16 +02:00
Günter Obiltschnig
e7969b6e91 Merge pull request #2694 from OgreTransporter/develop
Bugfix for #2683, #2708 and #2715, support for #2705
2019-06-12 13:19:05 +02:00
Günter Obiltschnig
d8826a9a90 SecureSMTPClientSession now uses _host from SMTPClientSession 2019-05-16 14:37:54 +02:00
Transporter
8df1be140a The changes to pr #1733 were reversed by commits 8da67be and b1715f9. 8da67be cleared the check for static OpenSSL libraries, then b1715f9 cleared the rest. When using static OpenSSL libraries, all required dependencies (ws2_32.lib, Crypt32.lib) must be linked from the dependent projects. CMake provides the OPENSSL_USE_STATIC_LIBS switch (https://cmake.org/cmake/help/latest/module/FindOpenSSL.html) for static OpenSSL. 2019-05-13 16:26:50 +02:00
Francis ANDRE
46e00c8d6f use version '8.1' instead of '10.0.16299.0' for <WindowsTargetPlatformVersion>
Signed-off-by: Francis ANDRE <francis.andre.kampbell@orange.fr>
2019-02-09 18:15:56 +01:00
Joerg-Christian Boehme
b1715f90b2 Fix ctest execution in AppVeyor (#2514)
* Test

* Fix execution of ctest in AppVeyor

* Revert "Test"

This reverts commit d50863c1da1757d15e8e9d058cd5a887dabfcd38.

* Use internal/embedded openssl on windows

* Fix apache connector build findings

* Fix appveyor

* Use openssl embedded for windows

* Improve windows embedded openssl checkout

* Test openssl embedded cmake

* Cleanup cmake

* Switch of NetSSLWin. Needs to fix

* Fix copy of embedded openssl

* Fix set correct windows path environment

* Remove path environment for windows

* Comment out AsyncChannel test on windows. Its chrashing

* Commont out async test

* Commont in async test

* Add ChannelTest::testAsync to cppunit ignore

* Remove CppUnit ignore for testasync

* Fix NetSSL_WIN test

* Improve travis script

* Fix source path in travis cmake build

* Fix travis cmake build

* Fix cmake source path in travis

* Change to ninja for faster build

* Fix test from cmake build
2019-01-02 10:40:40 -06:00
Lyashenko Arsenii Maksimovich
223ce277bd Fix "redeclared without dllimport attribute..." warning for MinGW (#2433)
* Fix "redeclared without dllimport attribute..." warning for MinGW

* Use 'POCO_COMPILER_MSVC' instead of '_MSC_VER'.

* Define 'POCO_COMPILER_MINGW' with 'POCO_COMPILER_GCC' too

* Define 'POCO_UNUSED' for Clang too
2018-09-17 20:36:21 +02:00
Günter Obiltschnig
381b868e77 added preliminary TLSv1.3 support with OpenSSL version 1.1.1 2018-08-24 10:52:14 +02:00
dudym
06d984673c Added missing IPv6 methods to SecureSocketImpl (#2417) 2018-08-13 08:51:02 -05:00
Francis ANDRE
164a02a8ff Bump closeSleepTime to 3 secs 2018-07-31 19:23:57 +02:00
micheleselea
9887e78b5e FTPClientSession read welcome message with external socket (#2335)
* FTPClientSession read welcome message with external socket

Add method to configure if the FTPClientSession should read welcome message from FTP server when you use external socket. Otherwise you could end up in a desyncronization of FTP commands

* FTPSClientSession constructor FTPS behavior

Add variable in constructor to let you enable or disable FTPS connection

* Get FTPSClientSession back from master

* Support UTF8 filename

Using UTF8 filename cause image loading funtion fail without a transcoding function

* FTP Add function to get welcome message

Add a function to get at application level the FTP Server welcome message

* removed FTPPasswordProvider from FTPSStreamFactory

Removed duplicate FTPPasswordProvider  class from FTPSStreamFactory

* Code Style corrections

No hungarian style
no indent nested namespace
rename mutex
2018-07-10 06:58:16 -07:00
Francis ANDRE
a859d84c8a Bump sleep time after server close to 2000 ms 2018-06-16 07:36:16 +02:00
Yegor Yefremov
6b9054dfa2 cmake: create and install pkg-config files (#2224)
* cmake: create and install pkg-config files

Automatically create and install *.pc files for selected components.

PocoFoundation.pc
PocoNet.pc
PocoUtil.pc
etc.
2018-06-12 20:42:19 +02:00
Ed
7a3b9008db Don't include <openssl/fips.h> for later OpenSSL (#2358) 2018-06-04 11:47:50 -05:00
proller
9a27757147 SecureSocket: Allow bind with reusePort (#2257)
* SecureSocket: Allow bind with reusePort

* fix
2018-06-03 23:29:28 -05:00
Joerg-Christian Boehme
490a8ca779 Set EVP private key on SSL context (#2259) 2018-06-03 11:29:25 -05:00
Joerg-Christian Boehme
8a70ab8a1c Cleanup cmake build system (develop) to use transitive dependency management from cmake (#2322)
* Cleanup cmake Root CMakeLists.txt

* Cleanup cmake targets

* Add find openssl modul for older cmake version

* set proper scope

* Switch off make based builds in travis and appveyor

* Fix build break, set C11 on c file

* Set from C11 to C99

* Fix NetSSL win build

* Set C99 compile features

* Fix Windows build

* Fix windows build

* Revert "Fix windows build"

This reverts commit 678d44216bd964f61655df809efbf63ddd8a7bfd.

* Cleanup poco unbundle definition

* Fix PDF build

* Remove unused set affinity

* Add _AFXDLL as target compile definitions

* Refactor add_definitions to target_compile_definitons in Util

* Refactor add_definitions to target_compile_definitons in XML

* Remove THREADSAFE in data sql cmake build

* Refactor add_definitions to target_compile_definition in cmake mysql

* Refactor add_definitions to target_compile_definition in cmake odbc

* Refactor add_definitions to target_compile_definition in cmake sqlite

* Refactor add_definitions to target_compile_definitions in platform specific cmake

* Add _DEBUG as compile definition

* Add build dependencies between Foundation-testrunner and TestApp, TestLibrary in cmake build

* cleanup LIB_MODE_DEFINITIONS in cmake buld system

* Fix broken merge

* Fix android foundation test

* Fix old redis build version

* Fix android fondation test

* Cleanup target link libraries.

* Update cmake documentation

* Some fixese in crypto and netssl for win and some cleanup an SQL

* Minor fix in root CMakeList.txt

* Squashed commit of the following:

commit df050b56b6d81eaf9bdb37bb016fe9a3554eba4f

    Fix build dependecies in cmake

* Squashed commit of the following:

commit f41ce2bb404e197ff04b1e64f7b66c9a2b1e03c8

    Fix PostgreSQL build

* Squashed commit of the following:

commit b7da0deed67ffff23a8b7a50d6deff1e022b2577

    Set db hostnames

* Update doc

* Update cmake build commands

* Set public on target link libraries in cmake build

* Fix broken cppunit merge
2018-06-03 11:19:00 -05:00
Francis ANDRE
82785976e3 Switch to vs140 version 2018-06-02 18:15:56 +02:00
Francis ANDRE
e3436d05c1 Remove libeay32 & ssleay32 import lib 2018-05-28 17:22:04 +02:00
Francis ANDRE
8cc9114142 Merge remote-tracking branch 'origin/develop' into develop 2018-05-09 17:25:03 +02:00
roccocorsi
eba0f763f3 Complete Source IP address binding - combined (#2320)
Fixes for:
- HTTPClientSession to support dual IPv4/IPv6 family when setting source IP address #2271
- HTTPClientSession not supporting binding source address for proxy connect #2270
2018-05-09 07:13:27 -06:00
Francis ANDRE
f9b6a5a426 Ignore HTTPSClientSessionTest::testServerAbort() on Cygwin for now 2018-05-09 08:39:30 +02:00
roccocorsi
4b47183368 WebSocketTest.cpp faults reported by valgrind #2323 (#2324) 2018-05-08 12:22:29 -06:00
Marian Krivoš
42ef846651 Fix Visual Studio warnings at level /W4 (#2312)
* SharePtr fix for gcc 7.2

* Fix for Poco issue #2285

* Add missing fail() to sqlite test

* Fix for testIllegalFilePath

* Update SQLiteTest.cpp

* fixexes for Visual Studio and /W4 switch

* Fixed warnings for Foundation module

* Fixed warnings for JSON module

* Fixed warnings for XML module

* Fixed warnings for NET module

* Fix unfixable warning in VarHolder.h

* Fix Typo:

* Fixes for Net

* Fixes for Crypto

* Fixes for NetSSL

* Fixes for Zip

* Fixes for PDF

* Fixes for SQLite

* Fixes for SQLite

* Fixes for SQL

* Fixes for MongoDB

* Fixes for Redis

* Fixes for CppParser

* Fixes for CppUnit

* Fixes for PageCompiler

* Fixes for PostgreSQL

* Fixes for MySQL

* Fixes for SevenZip

* Last Warnings

* Fixes for ODBC

* fix std::type_info include
2018-05-04 08:47:40 -06:00
Aleksandar Fabijanic
685dfab8e7 Revert "HTTPClientSession to support dual IPv4/IPv6 family when setting source IP address #2271 (#2273)" (#2315)
This reverts commit c828d824c3.
2018-05-03 11:43:48 -06:00
roccocorsi
c828d824c3 HTTPClientSession to support dual IPv4/IPv6 family when setting source IP address #2271 (#2273)
* HTTPClientSession not supporting binding source address for proxy connect #2270

* HTTPClientSession to support dual IPv4/IPv6 family when setting source IP address #2271
2018-05-03 11:38:43 -06:00
Aleksandar Fabijanic
4efaa99fff Add WeakRefPtr to Foundation #2246 (#2247)
* Logger & Channel classes now using AutoPtr<Channel> instead of Channel* (API improvement)

* fix CachingChannel

* more fixes

* Configuration: remove raw pointers from interfaces #2077

* Add WeakPtr to Foundation #2246

* Add WeakPtr to Foundation #2246 (buildsystems files)

* Add WeakPtr to Foundation #2246 (x64 VS project files)

* backtrace and Event fixes

* add ordered map

* add ordered set

* add sanitize makefiles

* update RefPtr doc

* fix AtomicCounter includes

* add ordered containers tests

* fix xml test compile error

* remove operator bool rom smart pointers

* Poco::strToInt<> fails for values right above the type's boundary / limit #2250

* add g++ -ftrapv config

* remove Version.h includes (now included from Config.h)

* comment out offending SQLite test (TODO)

* add AtomicFlag and SpinlockMutex

* remove RefCountedObject include from RefPtr and WeakRefPtr mutex template param

* add WeakRef SpinLockMutex threading test

* WeakRefPtr, backtrace, NDC, refcount DC fixes

* SQL fixes

* update RCO documentation

* XML/DOM: Remove raw pointers from public interfaces #2075

* few fixes

* PocoDoc - make logger non-static reference member

* remove path char array initialization

* Fix failing unit test, adding d in debug mode for TestApp and TestLibrary

* fix application config pointer

* fix some crypto warnings

* fix Process tests and consolidate TestApp name building

* define PathImpl::selfImpl for WinCE

* restore WinCE test app name extension

* attempt to passify 32 bit clang

* fix failing Active* tests

* Add POCO_OS_ANDROID support for Path::self()

* Add build dependencies between Foundation-testrunner and TestApp, TestLibrary in cmake build

* Remove to set LD_LIBRARY_PATH on foundation test

* revert to develop XML

* fix VS150 env not found (hardcode it)

* undef min/max
2018-05-02 16:04:39 -06:00
zosrothko
b3d107de94 Replace assert by assertTrue (#2242)
* Update Nuget packaging

* Split a single Nuget package into 2: x86/x64 because its size is greater
than 250Mb, which is the upper limit of Bintray

* CppUnit/Test.h: Rename assert by assertTrue

* Restore poco_assert

* leave old assert for backward compatibility

* add undef

* remove whitespace

* Display PocoDic.ini

* Fix CppUnit includes path

* Delete TestCaller.h

* Create dependencies
2018-03-26 06:56:33 -06:00
Timothy Brackett
43cbd82b7f Fix #1241 Rename CMAKE Variables to allow grouping (#1437)
* Add macro to map ENABLE_* variables provided on CMake command-line to POCO_ENABLE_* variables.

* Properly map ENABLE_* values to POCO_ENABLE_* variables instead of assuming ON
2018-03-26 07:13:54 +02:00
Francis ANDRE
d3dbac877e Making each module a NuGet package does not work properly
when unloading modules with NuGet
2018-03-20 09:56:52 +01:00
Francis ANDRE
a285ef1c66 Package each module as a Nuget package. 2018-03-19 16:19:18 +01:00
Yegor Yefremov
742f4578fc cmake: use the standard CMake flag to drive the shared object build (#2057)
* cmake: use the standard CMake flag to drive the shared object build

* Add deprecated warning and build always shared test library
2018-03-12 20:15:24 +01:00
Joerg-Christian Boehme
d90dca6865 Improve cmake build to find openssl and fix windows build (#2120)
* Improve cmake build. Use cmake to find openssl and set proper dependencies to internal openssl.
2018-03-11 22:17:21 +01:00
Jörg-Christian Böhme
1934db294b Cleanup cmake android test 2018-03-07 23:16:39 +01:00
Joerg-Christian Boehme
a834aad0b1 Add android build on travis (#1981)
* Add build for android in travis CI.

* Fix review findings. Change from __ANDORID__ to POCO_ANDROID

* Add android test

* Fix compile issue after rebase

* Ignore test big ping when its failing
2018-03-05 22:02:40 +01:00
Günter Obiltschnig
f427cb6cfe merge addCertificateAuthority from 1.9; style fixes 2018-03-05 20:31:17 +01:00
Aleksandar Fabijanic
3a3956ea40 Update SetSourceIP.cpp 2018-03-01 15:42:14 -06:00
Alex Fabijanic
d8c45af243 restore SetSourceIP.cpp with proper case 2018-03-01 15:35:09 -06:00
Alex Fabijanic
66ffb93c2d delete SetSourceIp.cpp 2018-03-01 15:34:07 -06:00
Alex Fabijanic
26e952f49e Add source address binding to HTTP/HTTPS ClientSession (#1475) #2078 2018-02-28 11:14:32 -06:00
zosrothko
f6f47d0aab Include Crypto.h in NetSSL.h to avoid missing link lib link error (#2170)
* Use POCO_LIB_SUFFIX as suffix for libssl & libcrypto

* Use Crypto.h for automatic link #pragma of openssl link libs
2018-02-20 07:33:35 -06:00
Tobias Taschner
2a00f6948a Allow building with LibreSSL (#2155)
Building with LibreSSL defines a higher OpenSSL version but does not
provide some of the newer symbols. The necessary alternative code
is already available in the Poco code base and just needs additional
precompiler checks.
2018-02-14 11:12:21 -06:00
zosrothko
5fa3d6094e Backport of pocoproject/feature-gradle to pocoproject/develop (#2127)
* Backport of feature-gradle

Signed-off-by: Francis ANDRE <francis.andre.kampbell@orange.fr>

* Replace '/' by '\' to comply with DOS path

Signed-off-by: Francis ANDRE <francis.andre.kampbell@orange.fr>

* Cleanup

Signed-off-by: Francis ANDRE <francis.andre.kampbell@orange.fr>

* Put environment setting at the Exec task.

Signed-off-by: Francis ANDRE <francis.andre.kampbell@orange.fr>

* Use standard release

Signed-off-by: Francis ANDRE <francis.andre.kampbell@orange.fr>

* Updated mkdoc configuration

Signed-off-by: Francis ANDRE <francis.andre.kampbell@orange.fr>

* Remove lines guarded by POCO_ENABLE_CPP11

Signed-off-by: Francis ANDRE <francis.andre.kampbell@orange.fr>

* Merge remote-tracking branch 'origin/develop' into develop

* Fix NuGet & Wix input dependencies file set.

Signed-off-by: Francis ANDRE <francis.andre.kampbell@orange.fr>

* Remaining fixes for Data2SQL switch.

* Use $global:LastExitCode instead of a local LastExitCode
2018-02-09 08:05:15 -06:00
Alex Fabijanic
e3e2277171 update VS projects for unified openssl dir name 2018-01-29 10:41:40 -06:00
Aleksandar Fabijanic
b49ac67225 Data2sql (#2070)
* remove leftover progen files

* remove Data sources and turn headers into forwards

* add SQL files #2059

* Data2sql: adjust Travis, AppVeyor & Makefiles (#2069)

* Replace Data by SQL

* Replace Data by SQL

* Replace Data by SQL

* Replace Data by SQL

* fix header forwarding

* Data2sql: Fixes for complete Travis CI success (#2071)

* Replace Data by SQL

* Replace Data by SQL

* Replace Data by SQL

* Replace Data by SQL

* Replace Data by SQL

* Restore DataFormatException

* Replace Data by SQL

* Replace Data by SQL

* Replace Data by SQL

* Replace Data by SQL

* construct RowFilter from RecordSet reference instead of pointer

* pass Container ref instead of ptr to Column

* elimitate g++ warnings

* SQL: remove raw pointers from interfaces #2094; add constness and move ops where appropriate

* tidy up Postgres

* ODBC fixes
2018-01-18 11:29:28 -06:00
Günter Obiltschnig
a915269c25 don't set _peerHostName from peerAddress 2017-12-21 14:34:33 +01:00
zosrothko
b27daf2324 Add JSON in the includes path (#2027) 2017-12-11 15:52:14 -06:00
Aleksandar Fabijanic
151304135e purge trailing whitespace (#1947) 2017-10-20 15:37:19 -05:00