Subject: bin/11846: enable STARTTLS support in sendmail
To: None <gnats-bugs@gnats.netbsd.org>
From: None <itojun@itojun.org>
List: netbsd-bugs
Date: 12/29/2000 21:38:11
>Number:         11846
>Category:       bin
>Synopsis:       enable STARTTLS support in sendmail
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Fri Dec 29 21:38:00 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     Jun-ichiro itojun Hagino
>Release:        Dec 30 2000
>Organization:
	itojun.org
>Environment:
System: NetBSD starfruit.itojun.org 1.5Q NetBSD 1.5Q (STARFRUIT) #304: Sat Dec 30 13:09:57 JST 2000 itojun@starfruit.itojun.org:/usr/home/itojun/NetBSD/src/sys/arch/i386/compile/STARFRUIT i386
Architecture: i386
Machine: i386
>Description:
	The attached patch should enable STARTTLS support in sendmail.
	I'm posting it here as I do not have any environment to test it
	(nor knowledge enough to configure STARTTLS).

>How-To-Repeat:
>Fix:
Index: sendmail/Makefile.inc
===================================================================
RCS file: /cvsroot/gnusrc/gnu/usr.sbin/sendmail/Makefile.inc,v
retrieving revision 1.3
diff -u -r1.3 Makefile.inc
--- sendmail/Makefile.inc	2000/05/03 11:07:59	1.3
+++ sendmail/Makefile.inc	2000/12/30 05:36:20
@@ -7,6 +7,12 @@
 CPPFLAGS+=	-DNEEDSGETIPNODE -DNETINET6
 CPPFLAGS+=	-I. -I${DIST}/sendmail/sendmail -I${DIST}/sendmail/include
 
+.if ${MKCRYPTO} != "no"
+CPPFLAGS+=	-DSTARTTLS -D_FFR_TLS_TOREK
+LDADD+=		-lssl -lcrypto
+DPADD+=		${LIBSSL} ${LIBCRYPTO}
+.endif
+
 .if exists(${.CURDIR}/../../Makefile.inc)
 .include "${.CURDIR}/../../Makefile.inc"
 .endif
>Release-Note:
>Audit-Trail:
>Unformatted: