Commit Graph

208 Commits

Author SHA1 Message Date
Francis ANDRE
be79688077 Use PocoCppUnit instead of CppUnit 2018-05-25 14:05:00 +02:00
Alex Fabijanic
55e56b668d data fixes (getters constness, string any handling) 2018-05-07 15:23:19 +00:00
zosrothko
960ecb38f0 Poco 1.9.1 assert true (#2255)
* Rename assert by assertTrue

* Update submodules

* Missing assertTrue

* Rename poco_assertTrue to poco_assert

* Rename poco_assertTrue to poco_assert
2018-03-29 11:12:54 -06:00
zosrothko
22976b8eb7 Remove linklib for ssl & crypto 2018-03-25 20:36:52 +02:00
Günter Obiltschnig
df1caff144 regen project files 2018-03-07 10:25:19 +01:00
Günter Obiltschnig
826dc92fda style and doc fixes 2018-03-06 23:13:07 +01:00
Günter Obiltschnig
e7d2b4593a fix for OpenSSL 1.0 2018-03-06 22:58:14 +01:00
Günter Obiltschnig
943595c937 GH #2129: Add support for AES-GCM ciphers 2018-03-06 22:53:27 +01:00
Günter Obiltschnig
e19f33351d add additional cipher modes 2018-03-06 19:46:24 +01:00
Alex Fabijanic
20f9320f2d RSAKeyImpl #2201 2018-03-05 20:12:31 -06:00
Joerg-Christian Boehme
9feabc7723 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-02-26 18:54:40 -06:00
Aleksandar Fabijanic
c8c6662069
fix osx clang compile 2018-01-31 13:10:58 -06:00
Aleksandar Fabijanic
a4c744fdba
fix #endif comment 2018-01-29 18:43:25 -06:00
Alex Fabijanic
8f2ecfccef openssl VS projects modifications 2018-01-29 09:22:45 -06:00
Aleksandar Fabijanic
6cdf579b48
fix name case 2017-11-16 22:27:16 -06:00
Aleksandar Fabijanic
860975b372
Fix EVPTest on RHEL/Fedora by removing hard-coded EC curve name (#2002) 2017-11-15 20:35:25 -06:00
Guenter Obiltschnig
c672c14e5a remove duplicate files and remaining Id headers 2017-11-10 09:26:24 +01:00
Guenter Obiltschnig
4bb54690d0 removed openssl_ver script 2017-11-09 16:25:43 +01:00
zosrothko
f2e58c17e8 Add Gradle build scripts. 2017-10-31 09:07:53 +01:00
Bjoe
3ddda2f163 Add missing std:: namespace (#1946) 2017-10-18 16:15:20 -05:00
Alex Fabijanic
210bc6d30c add X509 version, serialNumber and signatureAlgorithm 2017-09-29 18:20:10 -05:00
Alex Fabijanic
4c4de6b7fb add PKCS12 CA-cert friendly names extraction 2017-09-28 20:50:30 -05:00
Alex Fabijanic
70f9af935a fix array init 2017-09-28 15:26:31 -05:00
Alex Fabijanic
8fff0cf586 fix incomplete EC key creation from curve name; make sure tests use curves that exist; add validation checks on EC key creation 2017-09-28 14:42:50 -05:00
Alex Fabijanic
ba5af017cc remove unneeded include and duplicate declaration 2017-09-27 21:56:40 -05:00
Alex Fabijanic
9e18ae0944 fix wrong test file name and other iprovements (WIP EC EVP key comparison) 2017-09-27 21:43:00 -05:00
Alex Fabijanic
e5aaa991b8 style fix 2017-09-26 21:57:15 -05:00
Alex Fabijanic
1d18435e38 read/write list of X509 certificates 2017-09-26 21:43:22 -05:00
Alex Fabijanic
4ac56bff0c EVPPKey == operator; PKCS12 copy/move 2017-09-26 15:28:23 -05:00
Alex Fabijanic
dc2c4dcd27 backport CipherKey digest changes and tests from develop 2017-09-26 11:38:53 -05:00
Alex Fabijanic
b4f1427725 make all save() functions const 2017-09-26 11:20:00 -05:00
Alex Fabijanic
741fead666 add openssl autolink to NetSSL 2017-09-23 16:19:14 -05:00
Alex Fabijanic
b7fbdabf5f Merge branch 'poco-1.8.0' of https://github.com/pocoproject/poco into poco-1.8.0 2017-09-22 18:31:39 -05:00
Alex Fabijanic
0e81e082ff openssl 1.1 support 2017-09-22 16:29:33 -05:00
Alex Fabijanic
b01d45a166 fix linux build 2017-09-21 11:42:54 -05:00
Alex Fabijanic
6b57edd031 regenerate NetSSL VS projects and Crypto sample project 2017-09-20 14:09:42 -05:00
Alex Fabijanic
3c8e93dd20 regenerate VS2013 projects 2017-09-20 09:12:35 -05:00
Alex Fabijanic
ab90c48da2 backport EVPPKey file/stream load/save capabilities 2017-09-19 22:04:32 -05:00
Alex Fabijanic
dbd82953cb add capability to construct EVPPKey from ECKey and RSAKey; RSA EVPPKey tests, RSA KeyPairImpl type bugfix 2017-09-18 14:49:54 -05:00
Alex Fabijanic
b90ee449a2 port RSAKey* changes 2017-09-18 12:18:56 -05:00
Alex Fabijanic
e89e3745ee add Crypto PKCS12/EC; update VS projects 2017-09-16 00:44:39 -05:00
Günter Obiltschnig
04e7e04d4d Remove \$Id`$ headers 2017-09-09 11:14:06 +02:00
Günter Obiltschnig
8237e9ba14 fix CipherImpl issue with OpenSSL 1.1 2017-04-18 11:42:39 +02:00
Guenter Obiltschnig
a141f9fbe1 fixed GH #1665: CipherImpl memory leak with OpenSSL 1.1 2017-04-16 08:32:57 +02:00
Guenter Obiltschnig
f10d3a28f3 added Visual Studio 2017 project files 2017-02-20 16:20:16 +01:00
Guenter Obiltschnig
186e89923a style fixes and SolarisStudio support backported from develop 2017-01-25 11:07:51 +01:00
Günter Obiltschnig
75a7ee4b0f Crypto and NetSSL fixes for OpenSSL 1.1 2016-11-27 23:58:39 +01:00
Guenter Obiltschnig
5076f60a5c added X509Certificate::equals() 2016-02-25 22:17:34 +01:00
Guenter Obiltschnig
b3cc2257d1 fixed GH #958: Bug while reading X509Certificate subjectName 2015-09-30 16:54:26 +02:00
Guenter Obiltschnig
e25a17030d integrated CMake improvements from develop (GH #946) 2015-09-26 11:11:23 +02:00
Guenter Obiltschnig
93554d54f6 merged X509Certificate fixes from develop 2015-08-02 09:13:38 +02:00
Günter Obiltschnig
4f0b692d66 added project and solution files for VS2015 2015-08-01 10:29:32 +02:00
Sascha Zelzer
10425a9556 Do not overwrite CMAKE_PREFIX_PATH in component config files.
This fixes problems when a project adds a directory to
CMAKE_PREFIX_PATH, then calls find_package(Poco ...) and afterwards
calls find_package() for another project located in one of the
directories of the original CMAKE_PREFIX_PATH variable.
2015-02-04 04:35:23 +01:00
Pascal Bach
f778e67430 CMake: Improve installation and package generation
Signed-off-by: Pascal Bach <pascal.bach@siemens.com>
2015-01-27 15:52:18 +01:00
Pascal Bach
10ef2b2335 CMake: Remove WinDriver usage in tests
Add WinCEDriver to packages supporting it
2014-12-21 16:23:35 +01:00
Guenter Obiltschnig
676f043338 style fix 2014-12-15 11:12:24 +01:00
Guenter Obiltschnig
931a5a5252 Removing support for Visual Studio.NET 2003 and Visual Studio 2005 - it's time to say goodbye to the past 2014-12-15 11:05:13 +01:00
Guenter Obiltschnig
c7e9067fde fixed GH #622: Crypto: RSATest::testSign() should verify with public key only 2014-11-25 10:05:44 +01:00
Günter Obiltschnig
bc0978d01e fixed GH #471: vs2010 release builds have optimization disabled
fixed GH #616: Visual Studio warning C4244
2014-11-20 21:22:52 +01:00
Guenter Obiltschnig
e657309a0b GH #506: removed -lkrb5 dependency 2014-11-19 18:22:22 +01:00
Guenter Obiltschnig
4152b569c0 fixed GH #500: SSLManager causes a crash (use AtomicCounter, remove static Mutex) 2014-11-19 17:33:57 +01:00
Guenter Obiltschnig
03deea59c5 OpenSSLInitializer calls OPENSSL_config but not CONF_modules_free #612 2014-11-18 23:11:43 +01:00
Guenter Obiltschnig
87f1d0f940 #596: only include openssl/fips.h for OpenSSL versions < 1.0.1 2014-11-06 13:17:43 +01:00
Günter Obiltschnig
5f380f0b80 Merge pull request #574 from siemens/cmake
Cmake updates
2014-11-06 11:17:45 +01:00
Guenter Obiltschnig
865943438b fixed #596: For OpenSSL 1.0.1, include openssl/crypto.h not openssl/fips.h 2014-11-06 11:16:33 +01:00
Pascal Bach
b69fafb84c CMake: Create PocoConfig.cmake to make importable from other CMake projects
The generated PocoConfig.cmake can be used by other CMake projects using find_package.
2014-10-14 17:58:46 +02:00
John Nelson
8a51be2a0d Fix RSAKey constructor documentation.
The two RSAKey constructors which take existing keys (one from a
stream, the other from a string) have incomplete and ambiguous
documentation.

This change improves the header documentation to reflect that:
 1. Decryption is supported using a private key (existing doc says you
    can "only" sign if a private key is present),
 2. Clarify that public key not needed when private key is present.
2014-10-13 13:48:29 -06:00
John Nelson
18ffcdd7c3 Don't DES-encrypt priv keys without a passphrase
Per https://www.openssl.org/docs/crypto/pem.html, specifying to encrypt
a private key with DES *without* providing a passphrase causes OpenSSL
to prompt for the passphrase to use on the console -- which is
problematic for GUI applications which generally lack a console.

This modifies the behavior of RSAKeyImpl::save() so that DES encryption
of private keys will not be attempted unless the passphrase argument is
non-empty. This will also suppress OpenSSL's prompting for that
passphrase on the console.

Also added a case to the test suite.
2014-10-13 13:33:22 -06:00
Günter Obiltschnig
6fe2e4fb11 VS project files: do not share intermediate directory between projects in same folder 2014-10-06 13:51:49 +02:00
Guenter Obiltschnig
544229302e #538 prevent destructors from throwing exceptions 2014-09-19 09:46:49 +02:00
Guenter Obiltschnig
9ad81fd6a2 improved Crypto tests 2014-09-18 20:58:41 +02:00
Guenter Obiltschnig
ded5af27db fixed #527: added OpenSSLInitializer to DigestEngine 2014-08-26 11:41:57 +02:00
Pascal Bach
7950001803 cmake: Cleanup CMakeLists.txt for all components
- Add missing CMakeLists.txt
- Use POCO_ macros to improve code structure in XCode/VisualStudio
- Better ODBC detection
- Remove unnecessary commented out code

The CMake documentation recommends explicitly listing source files, but because CMake is not the primary build system GLOB patterns are used for the moment.
2014-08-22 17:11:03 +02:00
Aleksandar Fabijanic
d0ebf0bc76 Merge pull request #507 from cristiantm/fix-memleak-rsaimpl
FIx to memleak on RSAImpl (#502)
2014-08-12 23:26:12 -05:00
Günter Obiltschnig
30bb18f394 added VS2013 project/solution files for Windows Embedded Compact 2013 2014-08-09 10:49:04 +02:00
Guenter Obiltschnig
52ba87a6f0 fixed GH #510: Incorrect RSAKey construction from istream 2014-08-01 09:57:41 +02:00
Cristian Thiago Moecke
4fa6e8b423 FIx to memleak on RSAImpl (#502) 2014-07-28 08:32:09 -03:00
Pascal Bach
d5d31055c1 Fix typo in Package name 2014-07-18 16:42:40 +02:00
Pascal Bach
216ecd3ec2 cmake: Crypto cleanup
- explicitly list files
- add OpenSSL include directory to include path
- remove unused code

Reviewed-by: Roger Meier <r.meier@siemens.com>
2014-07-10 09:15:06 +02:00
Pascal Bach
975c30faf0 Add CTests for all components 2014-06-17 11:30:03 +02:00
Josh Blum
f442148670 poco: library install dirs per RUNTIME/LIBRARY/ARCHIVE
For a unix system, this commit implies no changes by default. However, the ${LIB_SUFFIX} convention was added so the build can be configured for a red-hat style installation which uses lib64 by specifying cmake -DLIB_SUFFIX=64

For a windows build (msvc), this commit will cause the .dll files to be installed in the bin/ path; import libraries .lib are still installed in the lib/ path. Installing dlls into the bin path is preferable because dlls must be in the executable %PATH% to be found at runtime, as there is not equivalent of a separate library path as there is on unix.
2014-05-21 14:16:34 -07:00
Roger Meier
b0581433a7 LICENSE: add info about SPDX-License-Identifier usage and use it
fix: remove executable flag and change back to 100644 (was 100755)

Signed-off-by: Roger Meier <r.meier@siemens.com>
2014-05-14 08:38:09 +02:00
Roger Meier
628a06f718 LICENSE: add info about SPDX-License-Identifier usage and use it
Signed-off-by: Roger Meier <roger@bufferoverflow.ch>
2014-05-04 21:02:42 +02:00
Günter Obiltschnig
85873d02c9 re-generated VS2013 testsuite projects without MFC 2014-04-21 22:10:34 +02:00
Günter Obiltschnig
12c7bb562d re-generated vs100-vs120 project files 2014-04-21 10:50:51 +02:00
Pascal Bach
850148f775 Add SHA1 test for Poco::Crypto::DigestEngine 2014-03-12 15:19:36 +01:00
Günter Obiltschnig
e4b9ea32f2 style fix 2014-03-09 15:57:46 +01:00
Cristian Thiago Moecke
ecd771d1e0 Also removing include of rsa.h that is not needed on the header file 2014-02-21 05:10:48 -08:00
Cristian Thiago Moecke
45d6e2789a Fixing #includes. pem.h and evp.h are not needed, only rsa.h 2014-02-21 05:04:28 -08:00
Cristian Thiago Moecke
5af8235b38 Using the same variable name as in DigestEngine 2014-02-21 04:56:39 -08:00
Cristian Thiago Moecke
53e6d9efaa Improve RSADigestEngine, using Poco::Crypto::DigestEngine to calculate
the hash before signing. That way we can then support RSA signatures
with any hash supported by OpenSSL, not only MD5 and SHA1. It was also
required a new method on DigestEngine to obtain the NID (numeric ID) of
the algorithm, to be used on the OpenSSL RSA_sign call.
2014-02-21 04:43:05 -08:00
Linquize
c2ca2ffb58 Build the libraries before their TestSuites
Fixes error LINK : fatal error LNK1104: cannot open file 'Poco*.lib'
2014-01-16 08:03:42 +08:00
Alex Fabijanic
1c732e9938 removed MFC dependencies (WinTestRunner) from test VS projects 2013-11-07 23:31:30 -06:00
Alex Fabijanic
4297d78621 VS 2013 projects/solutions 2013-11-05 23:11:28 -06:00
Aleksandar Fabijanic
43df537c49 added openssl doc quote 2013-04-21 13:42:33 -05:00
Aleksandar Fabijanic
0a153046b4 GH #159: Crash in openssl CRYPTO_thread_id()
GH #159: Crash in openssl CRYPTO_thread_id() after library
libPocoCrypto.so has been unloaded.
2013-04-21 13:42:33 -05:00
aleks-f
3bdcef277f GH #61: static_md build configs for Crypto and NetSSL
fixed GH #61: static_md build configs for Crypto and NetSSL
2013-03-17 22:25:07 -05:00
aleks-f
5654749e2b fixed warning in Poco/Crypto/OpenSSLInitializer.h
- fixed a warning in Poco/Crypto/OpenSSLInitializer.h (fix ported from
1.4.6)
2013-02-26 22:43:36 -06:00
Marian Krivos
9349786415 cmake and gcc warning fixes 2013-02-19 06:16:12 +01:00
aleks-f
911f22508e Any SOO 2013-01-31 21:12:13 -06:00