39 Commits

Author SHA1 Message Date
Guenter Obiltschnig
fdd68b17f3 added X509Certificate::equals() 2016-02-25 22:15:32 +01:00
Miklos Vajna
eccab535b5 GH #1050 Crypto: fix gcc -Wshadow warnings 2016-01-04 17:56:13 +01:00
Alex Fabijanic
c5960a6745 add external openssl guard 2015-12-13 00:49:40 -06:00
Alex Fabijanic
50ae257a52 fix VS 2015 openssl static link 2015-12-13 00:28:00 -06:00
Rangel Reale
b47f38fc33 * Don't leak <windows.h> (Poco/Unwindows.h) to library users 2015-12-10 13:16:02 -02:00
Guenter Obiltschnig
df36ae6a04 fixed GH #958: Bug while reading X509Certificate subjectName 2015-09-30 16:53:47 +02:00
Benoît Bleuzé
2aa6657717 Crypto: Add any digest to key generation. 2015-08-31 09:25:34 +02:00
gpongelli
82cbabc27b Update OpenSSL initialize with not deprecated code
OpenSSL's 1.0.2a CRYPTO_set_id_callback is deprecated.
This patch let use OpenSSL with deprecated code and with newer and not deprecated ones.
2015-05-20 19:13:28 +02:00
bobstabler
6ccfaa53d0 Allow caller to disable SSL Initialization, so it can be done outside of Poco. 2015-04-30 16:37:21 -05:00
Guenter Obiltschnig
b5e5673b6e X509Certificate::issuedBy(): explicitely check for X509_verify() return value 1, disable test due to failure with newer OpenSSL versions (need to investigate) 2015-03-21 00:07:01 +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
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
Guenter Obiltschnig
544229302e #538 prevent destructors from throwing exceptions 2014-09-19 09:46:49 +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
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
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
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
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
Guenter Obiltschnig
4367c5da7c fixed DigestEngine test in Crypto 2012-09-25 04:42:58 +00:00
Aleksandar Fabijanic
b9f4ce3b08 SF#3515284: RSA publickey format(X.509 SubjectPublicKeyInfo) 2012-08-22 02:00:25 +00:00
Aleksandar Fabijanic
662050937e porting rev.1912 from 1.4.4 (fixed SF# 3552597) 2012-08-18 02:19:34 +00:00
Aleksandar Fabijanic
c48b06221a SF 3538786: Use size_t for describing data-blocks in DigestEngine 2012-07-20 02:48:41 +00:00
Aleksandar Fabijanic
9b952a29c7 ported 1.4.4 branch changes (needs build checks and test runs!) 2012-05-19 03:04:51 +00:00
Aleksandar Fabijanic
d75e68c027 new trunk (base for 1.5)
windows build only
2012-04-23 01:14:34 +00:00
Aleksandar Fabijanic
f9b60296f7 removing old trunk files 2012-04-23 00:43:14 +00:00
Marian Krivos
8b70c37260 trunk: sync from 1.4.3
make & cmake fixes
2012-02-04 17:03:09 +00:00
Marian Krivos
bcf1d5b6a7 Crypto: complete merge to 1.4.2 2011-09-14 16:41:40 +00:00
Guenter Obiltschnig
7895040ccf fixed SF# 2795395 2009-06-17 06:58:32 +00:00
Guenter Obiltschnig
99c48cff49 integrated changes from 1.3.5 2009-06-16 16:56:28 +00:00
Marian Krivos
57bd673b01 missing include <cstring> 2009-02-17 19:59:39 +00:00
Peter Schojer
956f221664 fixed bug 2221757: RSA exp component not used 2008-11-05 06:53:50 +00:00
Peter Schojer
4975ac2c44 copied Crypto from sandbox to trunk 2008-10-31 09:06:54 +00:00