head 1.5; access; symbols pkgsrc-2026Q1:1.4.0.84 pkgsrc-2026Q1-base:1.4 pkgsrc-2025Q4:1.4.0.82 pkgsrc-2025Q4-base:1.4 pkgsrc-2025Q3:1.4.0.80 pkgsrc-2025Q3-base:1.4 pkgsrc-2025Q2:1.4.0.78 pkgsrc-2025Q2-base:1.4 pkgsrc-2025Q1:1.4.0.76 pkgsrc-2025Q1-base:1.4 pkgsrc-2024Q4:1.4.0.74 pkgsrc-2024Q4-base:1.4 pkgsrc-2024Q3:1.4.0.72 pkgsrc-2024Q3-base:1.4 pkgsrc-2024Q2:1.4.0.70 pkgsrc-2024Q2-base:1.4 pkgsrc-2024Q1:1.4.0.68 pkgsrc-2024Q1-base:1.4 pkgsrc-2023Q4:1.4.0.66 pkgsrc-2023Q4-base:1.4 pkgsrc-2023Q3:1.4.0.64 pkgsrc-2023Q3-base:1.4 pkgsrc-2023Q2:1.4.0.62 pkgsrc-2023Q2-base:1.4 pkgsrc-2023Q1:1.4.0.60 pkgsrc-2023Q1-base:1.4 pkgsrc-2022Q4:1.4.0.58 pkgsrc-2022Q4-base:1.4 pkgsrc-2022Q3:1.4.0.56 pkgsrc-2022Q3-base:1.4 pkgsrc-2022Q2:1.4.0.54 pkgsrc-2022Q2-base:1.4 pkgsrc-2022Q1:1.4.0.52 pkgsrc-2022Q1-base:1.4 pkgsrc-2021Q4:1.4.0.50 pkgsrc-2021Q4-base:1.4 pkgsrc-2021Q3:1.4.0.48 pkgsrc-2021Q3-base:1.4 pkgsrc-2021Q2:1.4.0.46 pkgsrc-2021Q2-base:1.4 pkgsrc-2021Q1:1.4.0.44 pkgsrc-2021Q1-base:1.4 pkgsrc-2020Q4:1.4.0.42 pkgsrc-2020Q4-base:1.4 pkgsrc-2020Q3:1.4.0.40 pkgsrc-2020Q3-base:1.4 pkgsrc-2020Q2:1.4.0.36 pkgsrc-2020Q2-base:1.4 pkgsrc-2020Q1:1.4.0.16 pkgsrc-2020Q1-base:1.4 pkgsrc-2019Q4:1.4.0.38 pkgsrc-2019Q4-base:1.4 pkgsrc-2019Q3:1.4.0.34 pkgsrc-2019Q3-base:1.4 pkgsrc-2019Q2:1.4.0.32 pkgsrc-2019Q2-base:1.4 pkgsrc-2019Q1:1.4.0.30 pkgsrc-2019Q1-base:1.4 pkgsrc-2018Q4:1.4.0.28 pkgsrc-2018Q4-base:1.4 pkgsrc-2018Q3:1.4.0.26 pkgsrc-2018Q3-base:1.4 pkgsrc-2018Q2:1.4.0.24 pkgsrc-2018Q2-base:1.4 pkgsrc-2018Q1:1.4.0.22 pkgsrc-2018Q1-base:1.4 pkgsrc-2017Q4:1.4.0.20 pkgsrc-2017Q4-base:1.4 pkgsrc-2017Q3:1.4.0.18 pkgsrc-2017Q3-base:1.4 pkgsrc-2017Q2:1.4.0.14 pkgsrc-2017Q2-base:1.4 pkgsrc-2017Q1:1.4.0.12 pkgsrc-2017Q1-base:1.4 pkgsrc-2016Q4:1.4.0.10 pkgsrc-2016Q4-base:1.4 pkgsrc-2016Q3:1.4.0.8 pkgsrc-2016Q3-base:1.4 pkgsrc-2016Q2:1.4.0.6 pkgsrc-2016Q2-base:1.4 pkgsrc-2016Q1:1.4.0.4 pkgsrc-2016Q1-base:1.4 pkgsrc-2015Q4:1.4.0.2 pkgsrc-2015Q4-base:1.4 pkgsrc-2015Q3:1.3.0.16 pkgsrc-2015Q3-base:1.3 pkgsrc-2015Q2:1.3.0.14 pkgsrc-2015Q2-base:1.3 pkgsrc-2015Q1:1.3.0.12 pkgsrc-2015Q1-base:1.3 pkgsrc-2014Q4:1.3.0.10 pkgsrc-2014Q4-base:1.3 pkgsrc-2014Q3:1.3.0.8 pkgsrc-2014Q3-base:1.3 pkgsrc-2014Q2:1.3.0.6 pkgsrc-2014Q2-base:1.3 pkgsrc-2014Q1:1.3.0.4 pkgsrc-2014Q1-base:1.3 pkgsrc-2013Q4:1.3.0.2 pkgsrc-2013Q4-base:1.3 pkgsrc-2013Q3:1.2.0.76 pkgsrc-2013Q3-base:1.2 pkgsrc-2013Q2:1.2.0.74 pkgsrc-2013Q2-base:1.2 pkgsrc-2013Q1:1.2.0.72 pkgsrc-2013Q1-base:1.2 pkgsrc-2012Q4:1.2.0.70 pkgsrc-2012Q4-base:1.2 pkgsrc-2012Q3:1.2.0.68 pkgsrc-2012Q3-base:1.2 pkgsrc-2012Q2:1.2.0.66 pkgsrc-2012Q2-base:1.2 pkgsrc-2012Q1:1.2.0.64 pkgsrc-2012Q1-base:1.2 pkgsrc-2011Q4:1.2.0.62 pkgsrc-2011Q4-base:1.2 pkgsrc-2011Q3:1.2.0.60 pkgsrc-2011Q3-base:1.2 pkgsrc-2011Q2:1.2.0.58 pkgsrc-2011Q2-base:1.2 pkgsrc-2011Q1:1.2.0.56 pkgsrc-2011Q1-base:1.2 pkgsrc-2010Q4:1.2.0.54 pkgsrc-2010Q4-base:1.2 pkgsrc-2010Q3:1.2.0.52 pkgsrc-2010Q3-base:1.2 pkgsrc-2010Q2:1.2.0.50 pkgsrc-2010Q2-base:1.2 pkgsrc-2010Q1:1.2.0.48 pkgsrc-2010Q1-base:1.2 pkgsrc-2009Q4:1.2.0.46 pkgsrc-2009Q4-base:1.2 pkgsrc-2009Q3:1.2.0.44 pkgsrc-2009Q3-base:1.2 pkgsrc-2009Q2:1.2.0.42 pkgsrc-2009Q2-base:1.2 pkgsrc-2009Q1:1.2.0.40 pkgsrc-2009Q1-base:1.2 pkgsrc-2008Q4:1.2.0.38 pkgsrc-2008Q4-base:1.2 pkgsrc-2008Q3:1.2.0.36 pkgsrc-2008Q3-base:1.2 cube-native-xorg:1.2.0.34 cube-native-xorg-base:1.2 pkgsrc-2008Q2:1.2.0.32 pkgsrc-2008Q2-base:1.2 cwrapper:1.2.0.30 pkgsrc-2008Q1:1.2.0.28 pkgsrc-2008Q1-base:1.2 pkgsrc-2007Q4:1.2.0.26 pkgsrc-2007Q4-base:1.2 pkgsrc-2007Q3:1.2.0.24 pkgsrc-2007Q3-base:1.2 pkgsrc-2007Q2:1.2.0.22 pkgsrc-2007Q2-base:1.2 pkgsrc-2007Q1:1.2.0.20 pkgsrc-2007Q1-base:1.2 pkgsrc-2006Q4:1.2.0.18 pkgsrc-2006Q4-base:1.2 pkgsrc-2006Q3:1.2.0.16 pkgsrc-2006Q3-base:1.2 pkgsrc-2006Q2:1.2.0.14 pkgsrc-2006Q2-base:1.2 pkgsrc-2006Q1:1.2.0.12 pkgsrc-2006Q1-base:1.2 pkgsrc-2005Q4:1.2.0.10 pkgsrc-2005Q4-base:1.2 pkgsrc-2005Q3:1.2.0.8 pkgsrc-2005Q3-base:1.2 pkgsrc-2005Q2:1.2.0.6 pkgsrc-2005Q2-base:1.2 pkgsrc-2005Q1:1.2.0.4 pkgsrc-2005Q1-base:1.2 pkgsrc-2004Q4:1.2.0.2 pkgsrc-2004Q4-base:1.2 pkgsrc-2004Q3:1.1.1.1.0.8 pkgsrc-2004Q3-base:1.1.1.1 pkgsrc-2004Q2:1.1.1.1.0.6 pkgsrc-2004Q2-base:1.1.1.1 pkgsrc-2004Q1:1.1.1.1.0.4 pkgsrc-2004Q1-base:1.1.1.1 pkgsrc-2003Q4:1.1.1.1.0.2 pkgsrc-2003Q4-base:1.1.1.1 pkgsrc-base:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.5 date 2026.04.22.23.27.00; author cheusov; state Exp; branches; next 1.4; commitid Re015gADf0JHK0DG; 1.4 date 2015.10.20.10.53.24; author tnn; state Exp; branches; next 1.3; commitid PTlpbtSMIjQLUPFy; 1.3 date 2013.10.24.11.31.10; author jperkin; state Exp; branches; next 1.2; commitid xlj4EIUB8IPprxax; 1.2 date 2004.10.22.14.45.47; author tv; state Exp; branches; next 1.1; 1.1 date 2003.06.19.20.39.10; author jlam; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2003.06.19.20.39.10; author jlam; state Exp; branches 1.1.1.1.8.1; next ; 1.1.1.1.8.1 date 2004.12.13.10.21.33; author salo; state Exp; branches; next ; desc @@ 1.5 log @Fix build failure on Linux/musl with recent gcc @ text @$NetBSD: patch-ab,v 1.4 2015/10/20 10:53:24 tnn Exp $ --- ssmtp.c.orig 2009-11-23 09:55:11.000000000 +0000 +++ ssmtp.c @@@@ -13,6 +13,8 @@@@ #define VERSION "2.64" #define _GNU_SOURCE +#include +#include #include #include #include @@@@ -55,21 +57,21 @@@@ bool_t use_oldauth = False; /* use old #define ARPADATE_LENGTH 32 /* Current date in RFC format */ char arpadate[ARPADATE_LENGTH]; -char *auth_user = (char)NULL; -char *auth_pass = (char)NULL; -char *auth_method = (char)NULL; /* Mechanism for SMTP authentication */ -char *mail_domain = (char)NULL; -char *from = (char)NULL; /* Use this as the From: address */ +char *auth_user = NULL; +char *auth_pass = NULL; +char *auth_method = NULL; /* Mechanism for SMTP authentication */ +char *mail_domain = NULL; +char *from = NULL; /* Use this as the From: address */ char *hostname; char *mailhost = "mailhub"; -char *minus_f = (char)NULL; -char *minus_F = (char)NULL; +char *minus_f = NULL; +char *minus_F = NULL; char *gecos; -char *prog = (char)NULL; +char *prog = NULL; char *root = NULL; -char *tls_cert = "/etc/ssl/certs/ssmtp.pem"; /* Default Certificate */ -char *uad = (char)NULL; -char *config_file = (char)NULL; /* alternate configuration file */ +char *tls_cert = "/home/cheusov/pkg/home/cheusov/pkg/etc/ssmtp/ssmtp.pem"; /* Default Certificate */ +char *uad = NULL; +char *config_file = NULL; /* alternate configuration file */ headers_t headers, *ht; @@@@ -1457,7 +1459,7 @@@@ int ssmtp(char *argv[]) from = from_format(uad, override_from); /* Now to the delivery of the message */ - (void)signal(SIGALRM, (void(*)())handler); /* Catch SIGALRM */ + (void)signal(SIGALRM, (void(*)(int))handler); /* Catch SIGALRM */ (void)alarm((unsigned) MAXWAIT); /* Set initial timer */ if(setjmp(TimeoutJmpBuf) != 0) { /* Then the timer has gone off and we bail out */ @ 1.4 log @needs libgen.h for basename(3). Fixes segfault on 64bit. Bump. @ text @d1 1 a1 1 $NetBSD$ d14 42 @ 1.3 log @Update ssmtp to 2.64. Changeset from Thomas Merkel. Changes since 2.61 are difficult to ascertain. There is no useful upstream changelog, and the full Debian one primarily includes packaging changes only. However, there appear to have at least been some security fixes. @ text @d3 1 a3 1 --- ssmtp.c.orig 2013-10-21 16:32:47.439696367 +0000 d5 1 a5 1 @@@@ -13,6 +13,7 @@@@ d10 1 @ 1.2 log @Update to 2.61, and obey USE_INET6. Change highlights: * Fixed two format string vulnerabilities (die() and log_event()) (Closes: #243945) * Segfaults when trying to send mail with authenticated smtp (Closes: #261975) * Make address rewriting possible to disable (Closes: #146238) * Add AuthUser, AuthPass, AuthMethod to configuration file (Closes: #249905) * Logic to choose cram-md5 authentication is backwards (Closes: #249907) * SSMTP builds with MD5 support but during the exchange it segfaults (Closes: #249203) * The source compilaton fails if ./configure --enable-logfile is selected (Closes: #242905) * SSL/TLS support cannot handle STARTTLS (Closes: #244666) * Creates bad date headers on some systems (Closes: #230864) * Fix 'MAIL FROM' problems with cron and the like setting bad 'From:' address when FromLineOverride=YES is set (Closes: #205513) * Update version string in ssmtp.c (Closes: #198763) * Work around missing spaces in headers (Closes: #192445) @ text @d3 1 a3 1 --- ssmtp.c.orig Fri Jul 23 01:58:48 2004 d5 3 a7 6 @@@@ -12,8 +12,9 @@@@ See COPYRIGHT for the license */ -#define VERSION "2.60.4" +#define VERSION "2.61" @ 1.1 log @Initial revision @ text @d3 5 a7 3 --- ssmtp.c.orig Sun Dec 8 18:26:20 2002 +++ ssmtp.c Mon Apr 7 01:24:52 2003 @@@@ -14,6 +14,7 @@@@ d9 2 a10 1 #define VERSION "2.60.1" @ 1.1.1.1 log @Initial import of mail/ssmtp, an extremely simple MTA that forwards mail to a mail hub. Originally from pkgsrc-wip; created by Toru TAKAMIZU . A secure, effective and simple way of getting mail off a system to your mail hub. It contains no suid-binaries or other dangerous things - no mail spool to poke around in, and no daemons running in the background. Mail is simply forwarded to the configured mailhost. Extremely easy configuration. WARNING: the above is all it does; it does not receive mail, expand aliases or manage a queue. That belongs on a mail hub with a system administrator. This program is especially recommended for mutt users who send emails via ISP's smtp server. @ text @@ 1.1.1.1.8.1 log @Pullup ticket 168 - requested by Todd Vierling. security fix for ssmtp Module Name: pkgsrc Committed By: tv Date: Fri Oct 22 14:45:47 UTC 2004 Modified Files: pkgsrc/mail/ssmtp: Makefile distinfo pkgsrc/mail/ssmtp/patches: patch-ab Log Message: Update to 2.61, and obey USE_INET6. Change highlights: * Fixed two format string vulnerabilities (die() and log_event()) (Closes: #243945) * Segfaults when trying to send mail with authenticated smtp (Closes: #261975) * Make address rewriting possible to disable (Closes: #146238) * Add AuthUser, AuthPass, AuthMethod to configuration file (Closes: #249905) * Logic to choose cram-md5 authentication is backwards (Closes: #249907) * SSMTP builds with MD5 support but during the exchange it segfaults (Closes: #249203) * The source compilaton fails if ./configure --enable-logfile is selected (Closes: #242905) * SSL/TLS support cannot handle STARTTLS (Closes: #244666) * Creates bad date headers on some systems (Closes: #230864) * Fix 'MAIL FROM' problems with cron and the like setting bad 'From:' address when FromLineOverride=YES is set (Closes: #205513) * Update version string in ssmtp.c (Closes: #198763) * Work around missing spaces in headers (Closes: #192445) @ text @d1 1 a1 1 $NetBSD: patch-ab,v 1.2 2004/10/22 14:45:47 tv Exp $ d3 3 a5 5 --- ssmtp.c.orig Fri Jul 23 01:58:48 2004 +++ ssmtp.c @@@@ -12,8 +12,9 @@@@ See COPYRIGHT for the license d7 1 a7 2 -#define VERSION "2.60.4" +#define VERSION "2.61" @