OpenBSD CVS

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


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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.21 / (download) - annotate - [select for diffs], Mon May 13 06:48:26 2024 UTC (3 weeks, 5 days ago) by jsg
Branch: MAIN
CVS Tags: HEAD
Changes since 1.20: +2 -1 lines
Diff to previous 1.20 (colored)

fix some leaks; ok op@

Revision 1.20 / (download) - annotate - [select for diffs], Tue May 16 17:48:52 2023 UTC (12 months, 3 weeks ago) by op
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4
Changes since 1.19: +3 -3 lines
Diff to previous 1.19 (colored)

some fatal -> fatalx to improved logging

errno doesn't generally contains anything useful after libtls functions,
and in most cases it's explicitly cleared to avoid misuse, so change a
few fatal() calls to fatalx() when logging libtls failures.  Also, add
the real error string, via tls_error() or tls_config_error(), that was
missing before.

ok millert@

Revision 1.19 / (download) - annotate - [select for diffs], Wed Jul 14 13:33:57 2021 UTC (2 years, 10 months ago) by kn
Branch: MAIN
CVS Tags: 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
Changes since 1.18: +1 -2 lines
Diff to previous 1.18 (colored)

Remove unneeded calls to tls_init(3)

As per the manual and lib/libtls/tls.c revision 1.79 from 2018
"Automatically handle library initialisation for libtls." initialisation
is handled automatically by other tls_*(3) functions.

Remove explicit tls_init() calls from base to not give the impression of
it being needed.

Feedback tb
OK Tests mestre

Revision 1.18 / (download) - annotate - [select for diffs], Mon Jun 14 17:58:16 2021 UTC (2 years, 11 months ago) by eric
Branch: MAIN
Changes since 1.17: +1 -5 lines
Diff to previous 1.17 (colored)

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

ok jung@

Revision 1.17 / (download) - annotate - [select for diffs], Sun May 23 15:57:32 2021 UTC (3 years ago) by eric
Branch: MAIN
Changes since 1.16: +39 -5 lines
Diff to previous 1.16 (colored)

add more TLS options to smtp(1):

- cafile=<path>:  override the default root certificates
- nosni:  disable SNI completely
- noverify:  do not verify sevrer certificate (replaces -C)
- servername=<name>:  set server name for SNI

ok tb@

Revision 1.16 / (download) - annotate - [select for diffs], Sat May 22 09:09:07 2021 UTC (3 years ago) by eric
Branch: MAIN
Changes since 1.15: +52 -3 lines
Diff to previous 1.15 (colored)

allow to specify TLS ciphers and protocols in smtp(1)

improvements from jmc@ schwarze@ tb@

ok tb@

Revision 1.15 / (download) - annotate - [select for diffs], Sat Apr 10 10:19:19 2021 UTC (3 years, 1 month ago) by eric
Branch: MAIN
CVS Tags: OPENBSD_6_9_BASE, OPENBSD_6_9
Changes since 1.14: +1 -35 lines
Diff to previous 1.14 (colored)

remove dead code and unused dependencies

ok tb@

Revision 1.14 / (download) - annotate - [select for diffs], Fri Mar 5 12:37:32 2021 UTC (3 years, 3 months ago) by eric
Branch: MAIN
Changes since 1.13: +25 -15 lines
Diff to previous 1.13 (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.13 / (download) - annotate - [select for diffs], Tue Dec 29 12:17:54 2020 UTC (3 years, 5 months ago) by jmc
Branch: MAIN
Changes since 1.12: +2 -2 lines
Diff to previous 1.12 (colored)

sync usage() with SYNOPSIS; the -S option remains
undocumented, at least for now;

Revision 1.12 / (download) - annotate - [select for diffs], Mon Dec 21 11:48:38 2020 UTC (3 years, 5 months ago) by martijn
Branch: MAIN
Changes since 1.11: +25 -5 lines
Diff to previous 1.11 (colored)

The plumbing already allowed for smtp authentication, hook it up to the -a
flag.

Manpage order feedback jmc@
OK eric@

Revision 1.11 / (download) - annotate - [select for diffs], Mon Sep 14 18:32:11 2020 UTC (3 years, 8 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_6_8_BASE, OPENBSD_6_8
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored)

Fix handling of user names containing '@' symbols.
It is possible to have a user name of the form foo@bar in the URL.
When splitting user name from host name, split at the last '@', not
the first one.  From Josh Rickmar

Revision 1.10 / (download) - annotate - [select for diffs], Sat Sep 21 09:04:08 2019 UTC (4 years, 8 months ago) by semarie
Branch: MAIN
CVS Tags: OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6
Changes since 1.9: +3 -3 lines
Diff to previous 1.9 (colored)

remove dead assignment.

the return code of ssl_check_name() doesn't need to be checked as `match' is
always initialized to 0, and get 1 only on success.

ok gilles@

Revision 1.9 / (download) - annotate - [select for diffs], Wed Sep 18 11:26:30 2019 UTC (4 years, 8 months ago) by eric
Branch: MAIN
Changes since 1.8: +53 -13 lines
Diff to previous 1.8 (colored)

Implement server certificate validation in smtp(1).
Check certificate against MX name in smtpd(8) mta.

ok gilles@

Revision 1.8 / (download) - annotate - [select for diffs], Mon Sep 2 20:05:21 2019 UTC (4 years, 9 months ago) by eric
Branch: MAIN
Changes since 1.7: +11 -7 lines
Diff to previous 1.7 (colored)

Request a new SSL structure for each TLS session.
Fix a crash reported by Ross L Richardson.

ok gilles@

Revision 1.7 / (download) - annotate - [select for diffs], Mon Sep 2 19:17:43 2019 UTC (4 years, 9 months ago) by gilles
Branch: MAIN
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored)

in standalone smtp client, smtps schema should use ... smtps port

diff from Ross L Richardson <openbsd@rlr.id.au>

Revision 1.6 / (download) - annotate - [select for diffs], Tue Jul 2 09:36:20 2019 UTC (4 years, 11 months ago) by martijn
Branch: MAIN
Changes since 1.5: +3 -10 lines
Diff to previous 1.5 (colored)

Replace mkstemp/fdopen/unlink dances with tmpfile.
No functional change.

OK gilles@

Revision 1.5 / (download) - annotate - [select for diffs], Wed May 15 05:02:43 2019 UTC (5 years ago) by eric
Branch: MAIN
Changes since 1.4: +9 -2 lines
Diff to previous 1.4 (colored)

normalize newlines when reading the message

spotted by martijn@

ok martijn@ gilles@

Revision 1.4 / (download) - annotate - [select for diffs], Thu Sep 20 11:42:28 2018 UTC (5 years, 8 months ago) by eric
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4
Changes since 1.3: +10 -2 lines
Diff to previous 1.3 (colored)

properly handle credentials and fix auth in smtp(1)

ok gilles@

Revision 1.3 / (download) - annotate - [select for diffs], Mon May 21 21:25:37 2018 UTC (6 years ago) by krw
Branch: MAIN
Changes since 1.2: +2 -3 lines
Diff to previous 1.2 (colored)

Nuke unused variables. Initialize variable before use.

Makes clang happy.

ok gilles@

Revision 1.2 / (download) - annotate - [select for diffs], Thu Apr 26 21:19:46 2018 UTC (6 years, 1 month ago) by eric
Branch: MAIN
Changes since 1.1: +2 -1 lines
Diff to previous 1.1 (colored)

fix build for smtp(1) after log.h update

Revision 1.1 / (download) - annotate - [select for diffs], Thu Apr 26 13:57:13 2018 UTC (6 years, 1 month ago) by eric
Branch: MAIN

add a simple SMTP client

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.