Go to file
Aleksandar Fabijanic 7db9831f32
Netssl/openssl3 (#3575)
* feat(Context): DH init openssl3 port (1/2 hardcoded params)

* create poco-1.11.3 branch, bump version

* update copyright date

* #3567: check legacy provider existence for legacy exception #3567

* fix(Placeholder): comparison for zero value

* feat(Context): DH init openssl3 port (2/2 params from file)

* test(HTTPSClientSession): try/catch to understand CI failure

* chore(cmake): copy the DH parameters file

* fix(OpenSSLInitializer): unload provider on uninitialize

* chore(HTTPSClientSessionTest): remove try/catch

* fix(OpenSSLInitializer): fix provider unloading

* feat(CppUnit): make tests exceptions more descriptive

* chore(CppUnit): a more descriptive name for callback

Co-authored-by: Günter Obiltschnig <guenter.obiltschnig@appinf.com>
2022-04-28 22:24:43 -05:00
.github/workflows refactor(Placeholder): ifdef POCO_NO_SOO only in Placeholder and remove it anywhere else (#3566) 2022-04-18 14:28:27 -05:00
.vscode merge 1.11.2 2022-04-16 21:10:45 +02:00
ActiveRecord Netssl/openssl3 (#3575) 2022-04-28 22:24:43 -05:00
ApacheConnector added VS2022 project files 2022-02-19 21:06:24 +01:00
build feat(build): add gen directory (for generated sources) and macchina lib link dirs (if needed) 2021-06-18 13:13:44 +02:00
ci ci fixes 2021-06-16 22:05:58 +02:00
cmake #3466: DefinePlatformSpecific.cmake: handle RelWithDebInfo and MinSizeRel configurations 2022-03-27 19:37:14 +02:00
contrib Moved contributed CMake modules to "cmake" folder 2012-12-16 00:40:40 -02:00
CppParser added VS2022 project files 2022-02-19 21:06:24 +01:00
CppUnit Netssl/openssl3 (#3575) 2022-04-28 22:24:43 -05:00
Crypto Netssl/openssl3 (#3575) 2022-04-28 22:24:43 -05:00
Data fix(Extractor): move extraction decoding to AbstractExtractor #3396 2022-04-28 22:23:04 -05:00
doc Netssl/openssl3 (#3575) 2022-04-28 22:24:43 -05:00
Encodings Netssl/openssl3 (#3575) 2022-04-28 22:24:43 -05:00
Foundation Netssl/openssl3 (#3575) 2022-04-28 22:24:43 -05:00
JSON added VS2022 project files 2022-02-19 21:06:24 +01:00
JWT #3549; replace assert with assertTrue 2022-04-01 21:03:50 +02:00
MongoDB added VS2022 project files 2022-02-19 21:06:24 +01:00
Net added VS2022 project files 2022-02-19 21:06:24 +01:00
NetSSL_OpenSSL Netssl/openssl3 (#3575) 2022-04-28 22:24:43 -05:00
NetSSL_Win added VS2022 project files 2022-02-19 21:06:24 +01:00
packaging scripts to build Poco modules as Nuget packages 2020-12-25 10:41:07 +01:00
PageCompiler updated copyright date 2022-04-17 08:15:10 +02:00
patches/AIX new trunk (base for 1.5) 2012-04-23 01:14:34 +00:00
PDF added VS2022 project files 2022-02-19 21:06:24 +01:00
PocoDoc PocoDoc: fix iframe sandboxing 2022-04-17 20:55:06 +02:00
ProGen added VS2022 project files 2022-02-19 21:06:24 +01:00
Redis #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
release cpproj: also copy testsuite/include if it's there 2021-06-28 12:06:12 +02:00
SevenZip #3524: remove XML and Util dependencies in Zip/SevenZip 2022-03-27 19:46:20 +02:00
Util added VS2022 project files 2022-02-19 21:06:24 +01:00
XML #3538: Upgrade bundled expat to 2.4.7 2022-03-09 08:32:03 +01:00
Zip #3524: remove XML and Util dependencies in Zip/SevenZip 2022-03-27 19:46:20 +02:00
.gitattributes more line ending fixes 2012-11-11 11:20:31 +01:00
.gitignore re-generated project files 2020-01-11 22:33:28 +01:00
.gitmodules remove openssl submodule 2020-01-12 09:01:35 +01:00
build_cmake.cmd Cleanup cmake build system to use transitive dependency management from cmake (#2321) 2018-06-03 11:17:50 -05:00
build_cmake.sh Cleanup cmake build system to use transitive dependency management from cmake (#2321) 2018-06-03 11:17:50 -05:00
build_vs140.cmd Use defaulted 'msbuild' tool 2018-06-01 13:55:02 +02:00
build_vs150.cmd Use defaulted 'msbuild' tool 2018-06-01 13:55:02 +02:00
build_vs160.cmd add build_vs160.cmd 2020-01-12 10:03:01 +01:00
buildwin.cmd added VS2022 project files 2022-02-19 21:06:24 +01:00
buildwin.ps1 Install VSSetup PowerShell script and use it to compute vs150 & vs160 paths 2019-07-11 15:19:07 +02:00
CHANGELOG Netssl/openssl3 (#3575) 2022-04-28 22:24:43 -05:00
CMakeLists.txt #3524: remove XML and Util dependencies in Zip/SevenZip 2022-03-27 19:46:20 +02:00
CODE_OF_CONDUCT.md add CODE_OF_CONDUCT.md 2018-02-09 09:19:46 +01:00
components ActiveRecord: project files and fixes for MSVC 2021-06-18 10:51:48 +02:00
configure refactor(Placeholder): ifdef POCO_NO_SOO only in Placeholder and remove it anywhere else (#3566) 2022-04-18 14:28:27 -05:00
CONTRIBUTING.md updated contribution guidelines 2020-01-12 10:11:47 +01:00
CONTRIBUTORS unescape Backslash char in UTF8 unescape method 2019-12-16 22:43:40 +01:00
cppignore.lnx ignore another test 2020-02-09 09:45:25 +01:00
cppignore.win Add HTTPSClientSessionTest::.testCachedSession 2020-01-21 08:23:40 +01:00
DLLVersion.rc Netssl/openssl3 (#3575) 2022-04-28 22:24:43 -05:00
env.bat Setup POCO_BASE on Windows 2018-06-20 09:44:33 +02:00
env.sh re-added MongoDB, improved buildwin and release scripts 2013-07-23 15:04:48 +02:00
libversion Netssl/openssl3 (#3575) 2022-04-28 22:24:43 -05:00
LICENSE LICENSE: add info about SPDX-License-Identifier usage and use it 2014-05-14 08:38:09 +02:00
Makefile updated Makefile 2021-06-22 14:27:29 +02:00
NEWS Remove \$Id`$ headers 2017-09-09 11:14:06 +02:00
README updated README 2020-01-27 09:27:34 +01:00
README.md Basic support for OpenSSL 3.0.0 (#3448) 2022-03-29 13:23:44 -05:00
VERSION Netssl/openssl3 (#3575) 2022-04-28 22:24:43 -05:00

alt text

poco-ci CII Best Practices

POCO (Portable Components) C++ Libraries are:

  • A collection of C++ class libraries, conceptually similar to the Java Class Library or the .NET Framework.
  • Focused on solutions to frequently-encountered practical problems.
  • Focused on "internet-age" network-centric applications.
  • Written in efficient, modern, 100% ANSI/ISO Standard C++.
  • Based on and complementing the C++ Standard Library/STL.
  • Highly portable and available on many different platforms, from embedded to server.
  • Open Source, licensed under the Boost Software License.

alt text

To start using POCO, see the Guided Tour and Getting Started documents.

Quick Start (with CMake)

Prerequisites

  • CMake 3.5 or newer
  • A C++14 compiler (Visual C++ 2015, GCC 5.0, Clang 3.4, or newer)
  • OpenSSL headers and libraries (optional, but recommended)
  • MySQL, PostgreSQL and ODBC client libraries (optional)

Most Unix/Linux systems already have OpenSSL preinstalled. If your system does not have OpenSSL, please get it from http://www.openssl.org or another source. You do not have to build OpenSSL yourself - a binary distribution is fine. For example, via Debian APT:

$ apt-get install openssl libssl-dev

On macOS, the easiest way to install OpenSSL is via Homebrew:

$ brew install openssl

The easiest way to install OpenSSL on Windows is to use a binary (prebuild) release, for example the one from Shining Light Productions that comes with a Windows installer.

On Windows, POCO can also use the native Windows TLS APIs (SChannel).

Installing All Dependencies (Linux and macOS)

All dependencies can be installed with the following commands:

Debian Linux (including Ubuntu and Raspbian)

$ sudo apt-get -y update && sudo apt-get -y install git g++ make cmake libssl-dev

RedHat Linux

$ sudo yum install -y git gcc-c++ make cmake3 openssl-devel

macOS (with Homebrew)

$ brew install cmake openssl

Building with CMake (Linux, macOS, Windows)

CMake (version 3.5 or newer) is the recommended build system for building the POCO C++ Libraries.

$ git clone -b master https://github.com/pocoproject/poco.git
$ cd poco
$ mkdir cmake-build
$ cd cmake-build
$ cmake ..
$ cmake --build . --config Release

On macOS, it's necessary to tell CMake where to find the OpenSSL headers and libraries by setting the OPENSSL_ROOT_DIR CMake variable. For example, if OpenSSL has been installed with Homebrew, the cmake invocation becomes:

$ cmake .. -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl

Other common ways of building with CMake (e.g., cmake-gui) will also work.

There are also a number of project-specific CMake variables that can be changed.

Cross-Compiling

With a proper CMake toolchain file (specified via the CMAKE_TOOLCHAIN_FILE CMake variable), the POCO C++ Libraries can be cross-compiled for embedded Linux systems:

$ cmake .. -DCMAKE_TOOLCHAIN_FILE=/path/to/mytoolchain.cmake -DCMAKE_INSTALL_PREFIX=/path/to/target

Installing

The POCO C++ Libraries headers and libraries can be optionally be installed by building the install target.

$ sudo cmake --build . --target install

The default install location is /usr/local/ on Linux and macOS and C:\Program Files (x64)\ on Windows and can be overridden by setting the CMAKE_INSTALL_PREFIX CMake variable.

Building Without CMake

If you do not want to or cannot use CMake, POCO can also be built with Visual Studio (project and solution files included) or GNU Make (Linux, macOS and other supported Unix platforms).

Please refer to the documentation for more information.

Getting POCO via a Package Manager

POCO can also be obtained via different package managers.

Community and Contributing

POCO has an active user and contributing community, please visit our website and blog. Answers to POCO-related questions can also be found on Stack Overflow.

Please see CONTRIBUTING for submitting contributions, bugs reports, feature requests or security issues.

POCO vs. Boost

In regards to Boost, in spite of some functional overlapping, POCO is best thought of as a Boost complement (rather than replacement). Side-by-side use of Boost and POCO is a very common occurrence.