OpenBSD CVS

CVS log for src/usr.sbin/smtpd/iobuf.c


[BACK] Up to [local] / src / usr.sbin / smtpd

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.16 / (download) - annotate - [select for diffs], Mon Jun 14 17:58:15 2021 UTC (2 years, 11 months ago) by eric
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, HEAD
Changes since 1.15: +1 -3 lines
Diff to previous 1.15 (colored)

add required headers for smtpd.h and remove unnecessary ones in other files.

ok jung@

Revision 1.15 / (download) - annotate - [select for diffs], Fri Mar 5 12:37:32 2021 UTC (3 years, 2 months ago) by eric
Branch: MAIN
CVS Tags: OPENBSD_6_9_BASE, OPENBSD_6_9
Changes since 1.14: +26 -40 lines
Diff to previous 1.14 (colored)

Start porting smtpd to libtls.

Note that it changes the way SNI works: The certificate to use is now
selected by looking at the names found in the certificates themselves,
rather than the names of the pki entries in the configuration file.
The set of certificates for a tls listener must be defined explicitly by
using the pki listener option multiple times.

ok tb@

Revision 1.14 / (download) - annotate - [select for diffs], Sat Jan 23 16:11:11 2021 UTC (3 years, 4 months ago) by rob
Branch: MAIN
Changes since 1.13: +3 -5 lines
Diff to previous 1.13 (colored)

Remove unused variables found by clang. Additional unused var spotted by eric@.

OK mvs@, eric@

Revision 1.13 / (download) - annotate - [select for diffs], Fri Apr 24 11:34:07 2020 UTC (4 years, 1 month ago) by eric
Branch: MAIN
CVS Tags: OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7
Changes since 1.12: +3 -4 lines
Diff to previous 1.12 (colored)

strip trailing CRs at smtp level rather than io level

ok millert@

Revision 1.12 / (download) - annotate - [select for diffs], Thu Oct 3 07:03:23 2019 UTC (4 years, 8 months ago) by gilles
Branch: MAIN
CVS Tags: OPENBSD_6_6_BASE, OPENBSD_6_6
Changes since 1.11: +1 -5 lines
Diff to previous 1.11 (colored)

remove useless check and dead code

Revision 1.11 / (download) - annotate - [select for diffs], Wed Jun 12 17:42:53 2019 UTC (4 years, 11 months ago) by eric
Branch: MAIN
Changes since 1.10: +16 -16 lines
Diff to previous 1.10 (colored)

change "ssl" to "tls" in various identifiers.
no functional change.

ok gilles@

Revision 1.10 / (download) - annotate - [select for diffs], Fri Mar 17 20:56:04 2017 UTC (7 years, 2 months ago) by eric
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.9: +3 -3 lines
Diff to previous 1.9 (colored)

realloc() -> recallocarray().
use calloc() for initial allocation.

prodded by deraadt@ ok gilles@

Revision 1.9 / (download) - annotate - [select for diffs], Mon Dec 14 10:22:12 2015 UTC (8 years, 5 months ago) by jung
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.8: +2 -2 lines
Diff to previous 1.8 (colored)

remove trailing whitespace

ok sunil gilles

Revision 1.8 / (download) - annotate - [select for diffs], Sat Dec 5 21:27:42 2015 UTC (8 years, 5 months ago) by mmcc
Branch: MAIN
Changes since 1.7: +2 -3 lines
Diff to previous 1.7 (colored)

Remove a few NULL-checks before free().

Revision 1.7 / (download) - annotate - [select for diffs], Thu Oct 15 08:29:41 2015 UTC (8 years, 7 months ago) by gilles
Branch: MAIN
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored)

iobuf_queue() should return the number of bytes it queued on success, not 0

ok eric@

Revision 1.6 / (download) - annotate - [select for diffs], Thu Sep 3 06:26:17 2015 UTC (8 years, 9 months ago) by jsg
Branch: MAIN
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored)

move paren to correctly return a negative error value instead of the
result of the < 0 test which would be 1.

ok gilles@

Revision 1.5 / (download) - annotate - [select for diffs], Fri May 24 17:03:14 2013 UTC (11 years ago) by eric
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7, OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.4: +3 -2 lines
Diff to previous 1.4 (colored)

sync with OpenSMTPD 5.3.2

ok gilles@

Revision 1.4 / (download) - annotate - [select for diffs], Sat Jan 26 09:37:23 2013 UTC (11 years, 4 months ago) by gilles
Branch: MAIN
CVS Tags: OPENBSD_5_3_BASE, OPENBSD_5_3
Changes since 1.3: +16 -4 lines
Diff to previous 1.3 (colored)

Sync with our smtpd repo:

* first bricks of ldap and sqlite support (not finished but both working)
* new table API to replace map API, all lookups are done through tables
* improved handling of temporary errors throughout the daemon
* improved scheduler and mta logic: connection reuse, optimizes batches
* improved queue: more tolerant to admin errors, new layout, less disk-IO
* improved memory usage under high load
* SSL certs/keys isolated to lookup process to avoid facing network
* VIRTUAL support improved, fully virtual setups possible now
* runtime tracing of processes through smtpctl trace
* ssl_privsep.c sync-ed with relayd
* ssl.c no longer contains smtpd specific interfaces
* smtpd-specific ssl bits moved to ssl_smtpd.c
* update mail address in copyright

FLUSH YOUR QUEUE. FLUSH YOUR QUEUE. FLUSH YOUR QUEUE. FLUSH YOUR QUEUE.

smtpd.conf(5) simplified, it will require adaptations

ok eric@

Revision 1.3 / (download) - annotate - [select for diffs], Fri Nov 23 10:55:25 2012 UTC (11 years, 6 months ago) by eric
Branch: MAIN
Changes since 1.2: +11 -11 lines
Diff to previous 1.2 (colored)

knf

ok gilles@

Revision 1.2 / (download) - annotate - [select for diffs], Wed Feb 1 17:25:29 2012 UTC (12 years, 4 months ago) by eric
Branch: MAIN
CVS Tags: OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1
Changes since 1.1: +2 -2 lines
Diff to previous 1.1 (colored)

fix stupid mistake in buffer code

ok gilles@

Revision 1.1 / (download) - annotate - [select for diffs], Sun Jan 29 00:32:51 2012 UTC (12 years, 4 months ago) by eric
Branch: MAIN

Import generic network IO code.  The plan is to hide the boring
details of IO operations such as buffering or SSL, and provide a
slightly nicer interface to the protocol writer.

Not plugged to the rest of the code yet.

ok gilles@

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.