76 Commits

Author SHA1 Message Date
Günter Obiltschnig
bd08e465f8 style 2020-01-24 11:08:30 +01:00
Günter Obiltschnig
a106dcbf80 fixed a warning 2020-01-23 13:29:00 +01:00
Günter Obiltschnig
0f49493d0e remove raw pointer interfaces 2020-01-23 09:50:36 +01:00
Günter Obiltschnig
048c4a134c style 2020-01-22 13:52:04 +01:00
Günter Obiltschnig
12db5ff31e
Merge pull request #2871 from siemens/feat/fix-x509-uft8
Add support for utf-8 characters in subject
2020-01-22 13:39:22 +01:00
Günter Obiltschnig
ba0acff719 fixed GH #2743: X509Certificate validFrom expiresOn Date parsing 2020-01-21 20:21:34 +01:00
Günter Obiltschnig
18adb1e43b code cleanup; fix move ctors and assignment 2020-01-21 17:52:43 +01:00
Günter Obiltschnig
e1f09a602b cleanup and modernization 2020-01-10 12:20:30 +01:00
Guenter Obiltschnig
d4077125cf replace deprecated OPENSSL_config() 2020-01-09 19:03:54 +00:00
Pascal Bach
69a7f53b02 Add support for utf-8 characters in subject
This changes the format produced by OpenSSL from being separated by / to ,
2020-01-08 10:54:01 +01:00
Günter Obiltschnig
acd7ec865b constness fix 2019-11-04 21:03:52 +01:00
Günter Obiltschnig
54413879e8
Merge pull request #2827 from neheb/patch-2
X509Certificate: Get rid of deprecated OpenSSL 1.1 APIs
2019-11-04 20:44:55 +01:00
Rosen Penev
c11d1eebb0 X509Certificate: Get rid of deprecated OpenSSL 1.1 APIs
Added a missing implicit header and added compatibility macros.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2019-11-04 11:42:16 -08:00
Rosen Penev
8b0ea3b538 CipherImpl: Fix small error with OpenSSL 1.1
EVP_CIPHER_CTX_cleanup is deprecated in 1.1. Replaced by _reset.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2019-11-04 11:39:57 -08:00
Günter Obiltschnig
3c3bc44d3f fixed warnings 2019-08-14 20:26:34 +02:00
Günter Obiltschnig
dfb29ad296 fix for OpenSSL 1.1.0 2019-08-04 15:14:06 +02:00
Günter Obiltschnig
6c828018df added JWT library 2019-07-30 11:19:49 +02:00
Günter Obiltschnig
70c6e33419 fixed GH #2583: Crypto library does not build with OpenSSL 1.0.0 2019-01-17 18:47:24 +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
Aleksandar Fabijanic
c8c6662069
fix osx clang compile 2018-01-31 13:10:58 -06:00
Alex Fabijanic
8f2ecfccef openssl VS projects modifications 2018-01-29 09:22:45 -06: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
9e18ae0944 fix wrong test file name and other iprovements (WIP EC EVP key comparison) 2017-09-27 21:43:00 -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
0e81e082ff openssl 1.1 support 2017-09-22 16:29:33 -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
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
93554d54f6 merged X509Certificate fixes from develop 2015-08-02 09:13:38 +02: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