History log of /dovecot/src/lib-dcrypt/ostream-encrypt.c
Revision Date Author Comments Expand
c5e46dba179864f6f1adf196d46e7a0371b11914 12-Dec-2017 Josef 'Jeff' Sipek <jeff.sipek@dovecot.fi>

global: drop unnecessary parens in &(foo) This makes the code more consistent since most of the repo uses the no-parens style. These inconsistencies were found using `git grep '(&([^*]'` and any use of the parens in macros was ignored for safety reasons.

c147bff818798a979d93537f72f5c1f68f5d5ba8 24-Nov-2017 Aki Tuomi <aki.tuomi@dovecot.fi>

global: Use t_buffer_create sed -i -e 's/buffer_create_dynamic(pool_datastack_create(), */t_buffer_create(/g'

/dovecot/src/auth/auth-policy.c /dovecot/src/auth/auth-request-handler.c /dovecot/src/auth/auth-request-stats.c /dovecot/src/auth/db-checkpassword.c /dovecot/src/auth/password-scheme-scram.c /dovecot/src/auth/password-scheme.c /dovecot/src/config/old-set-parser.c /dovecot/src/doveadm/client-connection-tcp.c /dovecot/src/doveadm/doveadm-fs.c /dovecot/src/doveadm/dsync/dsync-mailbox-state.c /dovecot/src/imap-login/client-authenticate.c /dovecot/src/lib-compression/test-compression.c dcrypt-openssl.c istream-decrypt.c ostream-encrypt.c test-crypto.c /dovecot/src/lib-dict-backend/dict-sql.c /dovecot/src/lib-imap-client/imapc-connection.c /dovecot/src/lib-imap/imap-url.c /dovecot/src/lib-index/mail-cache-fields.c /dovecot/src/lib-index/mail-cache-lookup.c /dovecot/src/lib-index/mail-cache-transaction.c /dovecot/src/lib-index/mail-index-sync-keywords.c /dovecot/src/lib-index/mail-index-transaction-export.c /dovecot/src/lib-index/mail-index-view-sync.c /dovecot/src/lib-index/mail-transaction-log-file.c /dovecot/src/lib-mail/test-istream-binary-converter.c /dovecot/src/lib-mail/test-ostream-dot.c /dovecot/src/lib-mail/test-quoted-printable.c /dovecot/src/lib-master/master-auth.c /dovecot/src/lib-sql/driver-test.c /dovecot/src/lib-storage/index/index-mail-binary.c /dovecot/src/lib-storage/index/index-mail-headers.c /dovecot/src/lib-storage/index/index-mail.c /dovecot/src/lib-storage/index/index-storage.c /dovecot/src/lib-storage/index/maildir/maildir-uidlist.c /dovecot/src/lib-storage/index/mbox/mbox-save.c /dovecot/src/lib-storage/list/mailbox-list-index-sync.c /dovecot/src/lib-storage/mail-search.c /dovecot/src/lib/base32.c /dovecot/src/lib/base64.c /dovecot/src/lib/hash-method.c /dovecot/src/lib/hmac.c /dovecot/src/lib/pkcs5.h /dovecot/src/lib/test-buffer.c /dovecot/src/lib/test-hex-binary.c /dovecot/src/lib/test-iostream-pump.c /dovecot/src/lib/test-numpack.c /dovecot/src/lib/test-ostream-failure-at.c /dovecot/src/login-common/client-common.c /dovecot/src/login-common/sasl-server.c /dovecot/src/plugins/acl/acl-cache.c /dovecot/src/plugins/fts-lucene/Snowball.cc /dovecot/src/plugins/imap-stats/imap-stats-plugin.c /dovecot/src/plugins/mail-crypt/mail-crypt-global-key.c /dovecot/src/plugins/mail-crypt/test-mail-global-key.c /dovecot/src/plugins/mail-crypt/test-mail-key.c /dovecot/src/plugins/pop3-migration/pop3-migration-plugin.c /dovecot/src/plugins/stats/mail-stats-connection.c /dovecot/src/plugins/virtual/virtual-sync.c /dovecot/src/pop3-login/client-authenticate.c /dovecot/src/stats/mail-command.c /dovecot/src/stats/mail-session.c /dovecot/src/stats/mail-user.c /dovecot/src/util/script.c
19557f192d37cd54a1a090a8a26d9d47265e4413 01-Nov-2017 Aki Tuomi <aki.tuomi@dovecot.fi>

global: Fix spelling mistakes in comments Original work by @andreasschulze and @jsoref

/dovecot/doc/example-config/conf.d/20-pop3.conf /dovecot/doc/example-config/conf.d/90-quota.conf /dovecot/m4/notify.m4 /dovecot/src/auth/auth-request-handler.c /dovecot/src/auth/db-checkpassword.c /dovecot/src/auth/db-passwd-file.c /dovecot/src/auth/mech-gssapi.c /dovecot/src/config/config-parser.c /dovecot/src/director/director-connection.c /dovecot/src/imap-urlauth/imap-urlauth.c /dovecot/src/imap/cmd-sort.c ostream-encrypt.c /dovecot/src/lib-fs/fs-metawrap.c /dovecot/src/lib-fts/fts-filter.h /dovecot/src/lib-http/test-http-client-errors.c /dovecot/src/lib-imap-client/imapc-connection.c /dovecot/src/lib-index/mail-cache-transaction.c /dovecot/src/lib-index/mail-index-map-hdr.c /dovecot/src/lib-index/mail-index-map.c /dovecot/src/lib-index/mail-index-strmap.h /dovecot/src/lib-index/mail-index-transaction-finish.c /dovecot/src/lib-index/mail-index-view.c /dovecot/src/lib-index/mail-index.h /dovecot/src/lib-index/mail-transaction-log-private.h /dovecot/src/lib-index/mail-transaction-log.h /dovecot/src/lib-mail/message-part-data.h /dovecot/src/lib-ntlm/ntlm-des.c /dovecot/src/lib-ntlm/ntlm-types.h /dovecot/src/lib-otp/otp-hash.c /dovecot/src/lib-settings/settings.c /dovecot/src/lib-smtp/lmtp-client.h /dovecot/src/lib-ssl-iostream/ostream-openssl.c /dovecot/src/lib-storage/index/dbox-common/dbox-file.c /dovecot/src/lib-storage/index/dbox-single/sdbox-file.h /dovecot/src/lib-storage/index/index-search-mime.c /dovecot/src/lib-storage/index/index-storage.c /dovecot/src/lib-storage/index/maildir/maildir-sync.c /dovecot/src/lib-storage/index/mbox/mbox-sync-rewrite.c /dovecot/src/lib-storage/index/mbox/mbox-sync.c /dovecot/src/lib-storage/list/mailbox-list-index-backend.c /dovecot/src/lib-storage/list/mailbox-list-index-status.c /dovecot/src/lib-storage/mailbox-attribute.c /dovecot/src/lib/array.h /dovecot/src/lib/buffer.c /dovecot/src/lib/failures.c /dovecot/src/lib/ioloop-epoll.c /dovecot/src/lib/ioloop-kqueue.c /dovecot/src/lib/istream.h /dovecot/src/lib/net.h /dovecot/src/lib/path-util.c /dovecot/src/lib/sendfile-util.c /dovecot/src/lib/seq-range-array.h /dovecot/src/lib/wildcard-match.c /dovecot/src/master/sd-daemon.h /dovecot/src/master/service.h /dovecot/src/plugins/acl/acl-backend-vfile-acllist.c /dovecot/src/plugins/fs-compress/fs-compress.c /dovecot/src/plugins/mail-crypt/doveadm-mail-crypt.c /dovecot/src/plugins/mail-crypt/fs-crypt-common.c /dovecot/src/plugins/mail-filter/istream-ext-filter.c /dovecot/src/plugins/mail-filter/ostream-ext-filter.c /dovecot/src/pop3/pop3-client.c
8109f3187f5ece5565de1813209af42dc7bb768b 01-Nov-2017 Timo Sirainen <timo.sirainen@dovecot.fi>

global: Use o_stream_flush_parent()

6630a5734436953a61ce6ec471d0d91a5f206083 30-Oct-2017 Timo Sirainen <timo.sirainen@dovecot.fi>

lib-dcrypt: ostream-dcrypt - Require o_stream_finish() to write the trailer Similar to ostream-zlib.

32340fe8f461f6ae56c4cb3ee8392ba14c9f539a 03-Oct-2017 Aki Tuomi <aki.tuomi@dovecot.fi>

lib-dcrypt: Use cpu32_to_be instead of htonl prefer our own conversion functions over htonl which is intended for networking related numbers.

211c638d81d382517d196ad47565e0d85012c927 19-Feb-2017 klemens <ka7@github.com>

spelling fixes

/dovecot/NEWS /dovecot/doc/example-config/conf.d/auth-system.conf.ext /dovecot/doc/example-config/dovecot-sql.conf.ext /dovecot/doc/man/doveadm-exec.1.in /dovecot/doc/securecoding.txt /dovecot/m4/dovecot.m4 /dovecot/m4/endian.m4 /dovecot/src/auth/password-scheme.h /dovecot/src/config/config-filter.c /dovecot/src/doveadm/client-connection-http.c /dovecot/src/imap-urlauth/imap-urlauth.c /dovecot/src/imap/cmd-append.c /dovecot/src/imap/cmd-thread.c /dovecot/src/imap/main.c ostream-encrypt.c /dovecot/src/lib-fts/fts-tokenizer-generic.c /dovecot/src/lib-fts/fts-tokenizer.h /dovecot/src/lib-http/http-client-queue.c /dovecot/src/lib-imap/imap-base-subject.c /dovecot/src/lib-index/mail-cache.c /dovecot/src/lib-mail/message-part-data.h /dovecot/src/lib-program-client/program-client-remote.c /dovecot/src/lib-sasl/dsasl-client.h /dovecot/src/lib-ssl-iostream/istream-openssl.c /dovecot/src/lib-storage/index/index-sort-string.c /dovecot/src/lib-storage/index/maildir/maildir-storage.c /dovecot/src/lib-storage/index/maildir/maildir-uidlist.c /dovecot/src/lib-storage/list/mailbox-list-fs-iter.c /dovecot/src/lib-storage/mailbox-attribute.h /dovecot/src/lib/fdatasync-path.c /dovecot/src/lib/sha1.h /dovecot/src/lib/sha3.c /dovecot/src/lib/test-data-stack.c /dovecot/src/log/log-connection.c
f2edbc51be62d7da4a4b37a72f9832851f669caa 21-Sep-2016 Timo Sirainen <timo.sirainen@dovecot.fi>

lib-dcrypt: Don't finalize encryption on o_stream_flush() For example the default o_stream_uncork() implementation enforces flushing and it's probably better not to change that. In general there's really no reason to perform the finalization at flush when the stream can't be written to anymore (whereas lib-compression ostreams allow writes after flushes).

a84b413ef72378bbe235a13846fe6a84899eaedc 17-Aug-2016 Timo Sirainen <timo.sirainen@dovecot.fi>

lib-dcrypt: Fixed accessing out-of-bounds data in istream. Also some small cleanups to make it clearer what's actually happening.

17fbd200b78112bd0d89e89598aa01cea72a74e5 08-Aug-2016 Martti Rannanjärvi <martti.rannanjarvi@dovecot.fi>

lib-dcrypt: add dcrypt-iostream.h Move everything from dcrypt-iostream-private.h and enum io_stream_encrypt_flags to the new dcrypt-iostream.h file.

55a7fe1e4637a8dbc6184b54edeb74ac8276b2c1 04-Aug-2016 Aki Tuomi <aki.tuomi@dovecot.fi>

dcrypt-iostream: Ref/unref keys

f52366af688c5663f3491c63042500ac51ad7780 22-Jul-2016 Timo Sirainen <timo.sirainen@dovecot.fi>

lib-dcrypt: Allow flushing ostream multiple times. The first time flushes the encryption and the following times just flush the parent stream.

d82c8af717c383d37a836b8d29316a3375803fab 01-Jul-2016 Timo Sirainen <timo.sirainen@dovecot.fi>

lib-dcrypt: Removed dead code.

7a71f2326280fb300f7c45d1ba5b30af3db37f2c 30-Jun-2016 Aki Tuomi <aki.tuomi@dovecot.fi>

dcrypt: Fix bugs in 0 and 1 byte payload files

394391e78f26cba1d7fca19d4b8617453a7041b8 21-Jun-2016 Timo Sirainen <timo.sirainen@dovecot.fi>

lib-dcrypt: dcrypt_key_type_public/private() can no longer fail. Removed unnecessary failure handling.

316cbe323513a0f20d1cf519fe9405e231d633e2 30-May-2016 Aki Tuomi <aki.tuomi@dovecot.fi>

lib-dcrypt: Initial implementation