Cpp: Fix simple symmetric encryption
authorAndre Heinecke <aheinecke@intevation.de>
Tue, 9 Aug 2016 10:56:01 +0000 (12:56 +0200)
committerAndre Heinecke <aheinecke@intevation.de>
Tue, 9 Aug 2016 12:23:51 +0000 (14:23 +0200)
commitbf776ce94cf454f1b3f1645b1cde09cd1c54324b
treeeed559d7f137d3bab8d74a8b89a12dddb2870fb7
parent3d2f027d0f40e7ec4ab48cee89ff0ee10b423566
Cpp: Fix simple symmetric encryption

* lang/cpp/src/context.cpp (Context::encrypt): If no recipients
are provided encrypt with NULL and not an empty array.

--
Sending an empty array leads to an invalid argument error.
lang/cpp/src/context.cpp