Skip to content

Commit

Permalink
Merge branch 'poco-1.11.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
obiltschnig committed Jun 12, 2022
2 parents 9d1c428 + 0bab41e commit 191cbdc
Show file tree
Hide file tree
Showing 15 changed files with 83 additions and 14 deletions.
2 changes: 1 addition & 1 deletion ActiveRecord/Compiler/src/Compiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class CompilerApp: public Application
helpFormatter.setHeader(
"\n"
"The POCO C++ Libraries ActiveRecord ORM Compiler.\n"
"Copyright (c) 2020-2021 by Applied Informatics Software Engineering GmbH.\n"
"Copyright (c) 2020-2022 by Applied Informatics Software Engineering GmbH.\n"
"All rights reserved.\n\n"
"This program generates C++ source code from an ActiveRecord "
"XML definition. "
Expand Down
9 changes: 9 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
This is the changelog file for the POCO C++ Libraries.

Release 1.11.3 (2022-06-12)
===========================

- GH #3567: fix(openssl-initializer): check legacy provider existence for legacy exception
- GH #3587: MySQL UUID binding temporary string
- GH #3632: Redis - add TLS support
- updated a few copyright dates


Release 1.11.2 (2022-04-16)
===========================

Expand Down
4 changes: 2 additions & 2 deletions Crypto/include/Poco/Crypto/OpenSSLInitializer.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ class Crypto_API OpenSSLInitializer
/// Shuts down the OpenSSL machinery.

static bool isFIPSEnabled();
// Returns true if FIPS mode is enabled, false otherwise.
/// Returns true if FIPS mode is enabled, false otherwise.

static void enableFIPSMode(bool enabled);
// Enable or disable FIPS mode. If FIPS is not available, this method doesn't do anything.
/// Enable or disable FIPS mode. If FIPS is not available, this method doesn't do anything.

protected:
enum
Expand Down
5 changes: 2 additions & 3 deletions Crypto/src/OpenSSLInitializer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ void OpenSSLInitializer::initialize()
}
if (!_legacyProvider)
{
_legacyProvider = OSSL_PROVIDER_load(NULL, "legacy");
if (!_defaultProvider) throw CryptoException("Failed to load OpenSSL legacy provider");
_legacyProvider = OSSL_PROVIDER_load(NULL, "legacy");
if (!_legacyProvider) throw CryptoException("Failed to load OpenSSL legacy provider");
}
#endif
}
Expand All @@ -157,7 +157,6 @@ void OpenSSLInitializer::uninitialize()
#endif
delete [] _mutexes;
#endif

}
}

Expand Down
4 changes: 2 additions & 2 deletions DLLVersion.rc
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

#include "winres.h"

#define POCO_VERSION 1,11,2,0
#define POCO_VERSION_STR "1.11.2"
#define POCO_VERSION 1,11,3,0
#define POCO_VERSION_STR "1.11.3"

VS_VERSION_INFO VERSIONINFO
FILEVERSION POCO_VERSION
Expand Down
3 changes: 1 addition & 2 deletions Data/MySQL/src/Binder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,7 @@ void Binder::bind(std::size_t pos, const Time& val, Direction dir)

void Binder::bind(std::size_t pos, const UUID& val, Direction dir)
{
std::string str = val.toString();
bind(pos, str, dir);
bind(pos, toString(val), dir);
}


Expand Down
7 changes: 7 additions & 0 deletions Data/include/Poco/Data/AbstractBinder.h
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,13 @@ class Data_API AbstractBinder

static bool isInBound(Direction dir);
/// Returns true if direction is in bound;

protected:
const std::string& toString(const UUID& uuid);

private:
using StringList = std::vector<std::string*>;
std::unique_ptr<StringList> _pStrings;
};


Expand Down
13 changes: 13 additions & 0 deletions Data/src/AbstractBinder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,19 @@ AbstractBinder::AbstractBinder()

AbstractBinder::~AbstractBinder()
{
if (_pStrings)
{
for (auto& s : *_pStrings)
delete s;
}
}


const std::string& AbstractBinder::toString(const UUID& uuid)
{
if (!_pStrings) _pStrings.reset(new StringList);
_pStrings->push_back(new std::string(uuid.toString()));
return *_pStrings->back();
}


Expand Down
2 changes: 1 addition & 1 deletion Encodings/Compiler/src/TextEncodingCompiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ class TextEncodingCompiler: public Application
helpFormatter.setHeader(
"\n"
"The POCO C++ Text Encodings Compiler.\n"
"Copyright (c) 2018-2021 by Applied Informatics Software Engineering GmbH.\n"
"Copyright (c) 2018-2022 by Applied Informatics Software Engineering GmbH.\n"
"All rights reserved.\n\n"
"This program compiles Unicode character encoding tables "
"from http://www.unicode.org/Public/MAPPINGS/ to TextEncoding "
Expand Down
2 changes: 1 addition & 1 deletion Foundation/include/Poco/Version.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
// Ax: alpha releases
// Bx: beta releases
//
#define POCO_VERSION 0x010B0200
#define POCO_VERSION 0x010B0300


#endif // Foundation_Version_INCLUDED
10 changes: 10 additions & 0 deletions Redis/include/Poco/Redis/Client.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,11 @@ class Redis_API Client
Client(const Net::SocketAddress& addrs);
/// Constructor which connects to the given Redis host/port.

Client(const Net::StreamSocket& socket);
/// Constructor which connects using an existing TCP
/// connection. This can be used to connect via TLS, if the
/// given socket is a Poco::Net::SecureStreamSocket.

virtual ~Client();
/// Destroys the Client.

Expand All @@ -113,6 +118,11 @@ class Redis_API Client
void connect(const Net::SocketAddress& addrs, const Timespan& timeout);
/// Connects to the given Redis server.

void connect(const Net::StreamSocket& socket);
/// Connects to the given Redis server using an existing TCP
/// connection. This can be used to connect via TLS, if the
/// given socket is a Poco::Net::SecureStreamSocket.

void disconnect();
/// Disconnects from the Redis server.

Expand Down
22 changes: 22 additions & 0 deletions Redis/src/Client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,16 @@ Client::Client(const Net::SocketAddress& addrs):
}


Client::Client(const Net::StreamSocket& socket):
_address(),
_socket(),
_input(0),
_output(0)
{
connect(socket);
}


Client::~Client()
{
delete _input;
Expand Down Expand Up @@ -133,6 +143,18 @@ void Client::connect(const Net::SocketAddress& addrs, const Timespan& timeout)
}


void Client::connect(const Poco::Net::StreamSocket& socket)
{
poco_assert(! _input);
poco_assert(! _output);

_address = socket.peerAddress();
_socket = socket;
_input = new RedisInputStream(_socket);
_output = new RedisOutputStream(_socket);
}


void Client::disconnect()
{
delete _input;
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.11.2
1.11.3
10 changes: 10 additions & 0 deletions doc/99100-ReleaseNotes.page
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
POCO C++ Libraries Release Notes
AAAIntroduction

!!!Release 1.11.3

!!Summary of Changes

- GH #3567: fix(openssl-initializer): check legacy provider existence for legacy exception
- GH #3587: MySQL UUID binding temporary string
- GH #3632: Redis - add TLS support
- updated a few copyright dates


!!!Release 1.11.2

!!Summary of Changes
Expand Down
2 changes: 1 addition & 1 deletion libversion
Original file line number Diff line number Diff line change
@@ -1 +1 @@
82
83

0 comments on commit 191cbdc

Please sign in to comment.