cfb3e01ade529871a5cda30b9a4153c8827dfef3 |
|
19-Feb-2018 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
lib-ssl-iostream: Use SSL_CTX_set_ecdh_auto macro
This macro is same for 1.0.2 and 1.1.0 and libressl. |
bcb4e51a409d94ae670de96afb8483a4f7855294 |
|
01-Jan-2018 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
Updated copyright notices to include the year 2018. |
804bca734d3bdf930f1678ee24885965a6aa756c |
|
11-Dec-2017 |
Martti Rannanjärvi <martti.rannanjarvi@dovecot.fi> |
lib-ssl-iostream: Use SSL_CTX_set_min_proto_version if available |
976dee5384c4827dc648c9bc53825390521c388e |
|
11-Dec-2017 |
Martti Rannanjärvi <martti.rannanjarvi@dovecot.fi> |
Replace ssl_protocols config option with ssl_min_protocol
Default to TLSv1. |
15aa67e8a9dd7fc631d58ce13c54fe004bb4d0c1 |
|
07-Nov-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-ssl-iostream: Add io_stream_ssl_global_init() |
74b7b25c4ef1175fe1cd12fbd56a287b8c80595b |
|
07-Nov-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-ssl-iostream: io_stream_create_ssl_client() - Move code to set verify_remote_cert=TRUE
Enable it in the generic SSL code instead of OpenSSL-specific code. |
14a07d2bb34f1d52fce3e3218799f271f118d501 |
|
07-Nov-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-ssl-iostream: Add TLS SNI callback and a way to change SSL context |
96359599bbd4a2d704c3f343ff4c2fcd03f0dd02 |
|
07-Nov-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-ssl-iostream: Add refcounting to ssl_iostream_context |
15d19d6e4daf460d8d2c82b981e23996dbdf7ba5 |
|
07-Nov-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: Rename ssl_iostream_context_deinit() to ssl_iostream_context_unref() |
319bc5ff46e9c941efb573b1e00f85fdeb08942d |
|
07-Nov-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-ssl-iostream: Change ssl_iostream_context.set to not be a pointer
It's just unnecessary memory usage. |
a6366f3b2ccb3fb2f871a42b23ff2833309d8794 |
|
03-Nov-2017 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
lib-ssl-iostream: Fix alt cert support
It was only partially implemented in 0577701d04beea222fc49a7318851ddcea3b99d3 |
d185226aa3dc88a9ee9f16b4c8b2e38000ac8b96 |
|
01-Nov-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-ssl-iostream: Split host to connected_host and sni_host
Using the same variable for both was causing confusion. |
978edad8fbaebab8cac435ec7e2dbf330b5d1170 |
|
31-Oct-2017 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
lib-ssl-iostream: Allow skipping CRL check |
0577701d04beea222fc49a7318851ddcea3b99d3 |
|
31-Oct-2017 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
lib-ssl-iostream: Add alternate certificate support |
9f7ba3807f77209a65e0faa56cac8545b06cd116 |
|
31-Oct-2017 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
global: Splice cert into separate struct from iostream_ssl_settings |
ba4eb91d932ee5eb1c3e2dafd3c0e3e3659d299c |
|
10-Jul-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-ssl-iostream: Fix compiler warning
~SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS makes it unsigned, so it doesn't fit
into signed 32bit long. |
22cb9dbe001c6b5da20cafe947dc858d9cab0e74 |
|
28-Jun-2017 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
lib-ssl-iostream: Fixed deinitialization of openssl library.
Previously, it also dereferenced the library when it was never initialized in the first place. |
0fab9e25db12d9e0511f91b65c21cbd04f568f8a |
|
07-Apr-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-ssl-iostream: Don't require SSL CA certs if allow_invalid_cert=TRUE
This happened only when verify_remote_cert was also TRUE. But this behavior
now allows verifying the cert without actually requiring it to be valid. |
38424b8081a75be3ef93729fed4d30dbafca5885 |
|
22-Feb-2017 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
lib-ssl-iostream: Fix ambiguity with SSL settings
- lib-ssl-iostream as client: Use only allow_invalid_cert. If it's not set, verify the server cert.
- lib-ssl-iostream as server: If verify_client_cert=FALSE, don't ask for the client cert. Otherwise, ask for client cert but still allow it if allow_invalid_cert=TRUE. |
2b8c4027ae956a4a99216a0e541d670aec43f7a5 |
|
05-Feb-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-ssl-iostream: Fix memory leak in RSA_generate_key_ex() usage |
74feb39854e50b644a070b27e952037353722932 |
|
06-Feb-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-ssl-iostream: Use RSA_generate_key_ex() if it exists
This avoids deprecation warnings about RSA_generate_key() in OpenSSL v1.1. |
c4d66e8ccbb8440622f1a70791ed2a8f99659af1 |
|
19-Jan-2017 |
Juha Koho <juha.koho@trineco.fi> |
ssl: add ssl_curve_list setting for selecting ECHDE curves |
2454dfa32c93c20a8522c6ed42fe057baaac9f9a |
|
01-Jan-2017 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
Updated copyright notices to include the year 2017. |
b544772a9912ad55484f0ab3f6caa81db0d37458 |
|
11-Aug-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
-Wstrict-bool warning fixes |
61969c3073f147352a3b99297208e3690080a4d6 |
|
10-Aug-2016 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
lib-ssl-iostream: Read dh parameters from PEM string |
00b722cca0601adadfbc653711b405b03e017e09 |
|
10-Aug-2016 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
dovecot: Remove ssl-params |
285bfe946c2d54928b272270dd5eef9041b24271 |
|
20-Jun-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-dcrypt, lib-ssl-iostream: Share OpenSSL init/deinit code. |
23bdbb7b1831785c6ba6df190f6369da882d2b9d |
|
06-Jun-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: Require comparisons to be strict boolean expressions
* No implicit integer -> boolean or pointer -> boolean conversions
* !expr can be used only if expr is boolean type
These were checked with a patched clang. It found various actual bugs,
which were fixed by the previous commits. |
173d1d74736ec822158165bef66d312bb62f2152 |
|
07-May-2016 |
Martti Rannanjärvi <martti.rannanjarvi@dovecot.fi> |
lib-ssl-iostream: move ssl_iostream_settings_dup to iostream-ssl.c |
02c335c23bf5fa225a467c19f2c063fb0dc7b8c3 |
|
12-Jan-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: freshen copyright
git ls-files | xargs perl -p -i -e 's/(\d+)-201[0-5]/$1-2016/g;s/ (201[0-5]) Dovecot/ $1-2016 Dovecot/' |
78c27af9d04b830afe3df6495d7a1efee556ecb8 |
|
07-Dec-2015 |
Timo Sirainen <tss@iki.fi> |
lib-ssl-iostream, login-*: Hide unnecessary "EVP_PKEY_get1_EC_KEY:expecting a ec key" errors. |
c892cc1606ba39f253e14cef687472a21b18c791 |
|
04-Dec-2015 |
Timo Sirainen <tss@iki.fi> |
lib-ssl-iostream: Fixed compiler warning when OpenSSL didn't support ECDH. |
0ebd8300f18e159ab59dfbb3f42ab282dbf2eace |
|
02-Dec-2015 |
Timo Sirainen <tss@iki.fi> |
lib-ssl-iostream: Moved openssl_iostream_*error() to -common.c
login-common code only links with this file, so that's required for the
previous changes to actually work. |
cc6dfdfaf4912ba2a7de93003bd93f8288d6a9b2 |
|
02-Dec-2015 |
Timo Sirainen <tss@iki.fi> |
login, lib-ssl-iostream: Clear errors caused by manual EC key selection when there was no EC key.
EVP_PKEY_get1_EC_KEY() would return an error, which should be ignored
instead of being logged later on. |
2e492d0d1b25a1da998231b1fe3bfbada0df7d65 |
|
02-Dec-2015 |
Timo Sirainen <tss@iki.fi> |
lib-ssl-iostream: Check for SSL_CTX_set_ecdh_auto() failure.
This shouldn't happen though. |
8b5d186ec2f8b56ded72a7f45a70b7542caad9d0 |
|
02-Dec-2015 |
Timo Sirainen <tss@iki.fi> |
login, lib-ssl-iostream: Deduplicate code with shared openssl_iostream_use_certificate_error() |
1deb13e4a4e8beafa2d0d5b99edecaf408a000b8 |
|
03-Dec-2015 |
Timo Sirainen <tss@iki.fi> |
lib-ssl-iostream: Fixes to error handling.
Copy behavior from login-common/ssl-proxy-openssl.c:
- Handle stacked errors.
- Improve errors with ERR_TXT_STRING flag. |
f82dcfb64fc65fe20e04b152ed425f32b6834078 |
|
03-Dec-2015 |
Timo Sirainen <tss@iki.fi> |
lib-ssl-iostream: Don't ignore errors on SSL certificate loading.
Patch by Sebastiaan Hoogeveen. |
ea6bcfde34e4cced9b42f1b4f5140a47752cb0ab |
|
21-Oct-2015 |
Timo Sirainen <tss@iki.fi> |
ssl_options: Added support for no_ticket |
7cb128dc4cae2a03a742f63ba7afee23c78e3af0 |
|
05-Jan-2015 |
Phil Carmody <phil@dovecot.fi> |
global: freshen copyright
Robomatically:
git ls-files | xargs perl -p -i -e 's/(\d+)-201[0-4]/$1-2015/g;s/ (201[0-4]) Dovecot/ $1-2015 Dovecot/'
Happy 2015 everyone!
Signed-off-by: Phil Carmody <phil@dovecot.fi> |
c5b7a9068c637195bae4751f965fc33c203a72d6 |
|
01-Nov-2014 |
Timo Sirainen <tss@iki.fi> |
lib-ssl-iostream: Support non-1024bit DH parameters in ssl-parameters.dat. |
5ea089e1bdcb984d30b07ca1f0443f66749e5e55 |
|
29-Jul-2014 |
Timo Sirainen <tss@iki.fi> |
libressl fix: Check for SSL_CTRL_SET_ECDH_AUTO macro instead of OpenSSL version number
Patch by Hanno Böck |
7103db837f941fd4de8a3f828c99febbcedb45a2 |
|
03-Jul-2014 |
Timo Sirainen <tss@iki.fi> |
Compile fix for old systems without SSL_OP_NO_COMPRESSION |
9864489d143fafe6f08f6a6d98a478d36458aa98 |
|
03-Jul-2014 |
Phil Carmody <phil@dovecot.fi> |
openssl: optionally disable TLS compression
Make ssl compression optional, but enabled by default. Other ssl options
might be tweakable in the future, so have a single ssl_options string,
and explode it into individual flags. (Compare postfix configuration.)
Based on an idea by Andreas Schulze <sca@andreasschulze.de>
Signed-off-by: Phil Carmody <phil@dovecot.fi> |
6e952586d9aa711007ea7293750085184ef3f9af |
|
02-Jun-2014 |
Timo Sirainen <tss@iki.fi> |
lib-ssl-iostream: Use SSL_MODE_RELEASE_BUFFERS if it exists to reduce memory usage. |
a8c5a86d183db25a57bf193c06b41e092ec2e151 |
|
04-Feb-2014 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2014. |
f974134f495e47ba7173f5b0f75fbd5cbacf1fe2 |
|
22-Sep-2013 |
Timo Sirainen <tss@iki.fi> |
Added ssl_prefer_server_ciphers setting. |
3136f1b7b84dc305aabd9c95c9d031adfe44f29d |
|
20-Sep-2013 |
Timo Sirainen <tss@iki.fi> |
lib-ssl-iostream: Give better error message if CA settings are missing. |
385fd14a05d9bc74336bb93257480a36d99900e5 |
|
07-Aug-2013 |
Timo Sirainen <tss@iki.fi> |
ssl: Fixed compiling with older OpenSSL libraries. |
61b0eeb704039e9837ef3dc7d133096851517d0f |
|
07-Aug-2013 |
Timo Sirainen <tss@iki.fi> |
Compiler warning fixes. |
b4f4552697bdc8e467955e262ae446dbe2914c14 |
|
06-Aug-2013 |
Timo Sirainen <tss@iki.fi> |
lib-ssl-iostream: Deinitialization fixes. |
e3ffd73c8f536f0c9cdaff80b6b8503c594a9449 |
|
12-Jul-2013 |
Timo Sirainen <tss@iki.fi> |
lib-ssl-iostream: Crashfix for recent change. |
d53c8496d77194cd45c05bbacc22dd3f7d881ddc |
|
10-Jul-2013 |
Timo Sirainen <tss@iki.fi> |
lib-ssl-iostream: Compiler warning fix |
231a59ca2b8f0b5a1d1edbd5b04c3840d540d7d9 |
|
10-Jul-2013 |
Timo Sirainen <tss@iki.fi> |
lib-ssl-iostream: Added support for ECDH/ECDHE cipher suites
Based on the login-common patch by David Hicks. |
56d1345c43bbd28c36b7faa85e4163bd9e874290 |
|
07-Apr-2013 |
Timo Sirainen <tss@iki.fi> |
Added ssl_client_ca_file to specify the CA certs as a file instead of as a dir.
This is required for Redhat-based systems where there isn't a CA directory
like in Debian/Ubuntu. |
3b4bd183cc469f70eb91d82a7f01f60ffc24ca5b |
|
04-Apr-2013 |
Timo Sirainen <tss@iki.fi> |
lib-ssl-iostream: Added support for TLS SNI, which caused some API changes. |
ba1c847d0af4afe4787ed470d0c818e948e184e2 |
|
04-Apr-2013 |
Timo Sirainen <tss@iki.fi> |
lib-ssl-iostream: API changes to return error strings if init() functions fail.
This also fixed a couple of broken error handlings. |
ceddfbe396fa69df40e02af4e18d3dac5c984179 |
|
10-Mar-2013 |
Timo Sirainen <tss@iki.fi> |
lib-ssl-iostream: Enable SSL_MODE_ENABLE_PARTIAL_WRITE |
5a580c3a38ced62d4bcc95b8ac7c4f2935b5d294 |
|
02-Feb-2013 |
Timo Sirainen <tss@iki.fi> |
Oops :) Update copyrights to 2013 without breaking all .c files. |
cca4ba2a504d70a9fe9fee37f8433997359de52c |
|
02-Feb-2013 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2013. |
3faa1040e5a3f9f35ffad29110216094ab2f5880 |
|
06-Nov-2012 |
Timo Sirainen <tss@iki.fi> |
lib-ssl-iostream now dynamically loads openssl library instead of linking to it.
This allowed removing the separate libdovecot-ssl library. In future if
GnuTLS/NSS support is added it would also allow switching between them
dynamically. |
6f5a72c9782ce3baf28d0703532da31a54db2e0f |
|
05-Nov-2012 |
Timo Sirainen <tss@iki.fi> |
lib-ssl-iostream: Call all of the OpenSSL deinit functions at exit |
b009e7e399edc8baebe501ede5d4a8a9c56d1687 |
|
12-Aug-2012 |
Timo Sirainen <tss@iki.fi> |
lib-ssl-iostream: Don't crash if protocols setting is NULL. |
6a4212e6d7c41de83bcac63edec3118e6a7a0f68 |
|
28-Jul-2012 |
Timo Sirainen <tss@iki.fi> |
lib-ssl-iostream: Added protocols setting. |
5f5870385cff47efd2f58e7892f251cf13761528 |
|
12-Feb-2012 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2012. |
dc11d995552e6a3ff0829cf5d6790b48b71f5c1f |
|
12-Feb-2012 |
Timo Sirainen <tss@iki.fi> |
SSL: Enable SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS flag for extra security.
This is to counter the "BEAST SSL" attack, although I don't think it's
practical to implement against IMAP/POP3/LMTP protocols. There's really no
way for attackers to inject any evil data before authentication, so the
password is safe. Post-authentication attacker could cause clients to
download evil emails, but even then clients don't typically redownload some
specific mail, so there's really no way to extract anything useful. |
cd5d9e833554e831095d0e52d32f433b674e1e73 |
|
24-Nov-2011 |
Timo Sirainen <tss@iki.fi> |
lib-ssl-iostream: Added crypto_device setting to set OpenSSL engine.
Multiple engines aren't supported, so the first crypto_device value gets
used for all SSL connections. |
8060dd5eae7ad2bf668684ee3bea03bafbecf2e1 |
|
24-Nov-2011 |
Timo Sirainen <tss@iki.fi> |
lib-ssl-iostream: Call OpenSSL_add_all_algorithms() to make some OpenSSL versions happy. |
e98de01b5644c88b6053e2921eb5e9a506fe263f |
|
31-Jan-2011 |
Timo Sirainen <tss@iki.fi> |
Added lib-ssl-iostream for handling SSL connections more easily. |