1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-18 08:02:48 +00:00

mail/deforaos-mailer: Support non-base SSL including no SSLv3 (LibreSSL)

Approved by:	SSL blanket
This commit is contained in:
John Marino 2016-09-12 04:53:28 +00:00
parent 6827982b41
commit 6cc6c422fc
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=421905
3 changed files with 26 additions and 2 deletions

View File

@ -18,10 +18,9 @@ LIB_DEPENDS= libSystem.so:devel/deforaos-libsystem \
libDesktop.so:x11/deforaos-libdesktop libDesktop.so:x11/deforaos-libdesktop
USE_GNOME= gtk20 USE_GNOME= gtk20
USES= desktop-file-utils pkgconfig USES= desktop-file-utils pkgconfig ssl
INSTALLS_ICONS= yes INSTALLS_ICONS= yes
USE_LDCONFIG= yes USE_LDCONFIG= yes
USE_OPENSSL= yes
MAKE_ARGS+= PREFIX=${PREFIX} MAKE_ARGS+= PREFIX=${PREFIX}
MAKE_ENV+= MANDIR=${STAGEDIR}${MANPREFIX}/man MAKE_ENV+= MANDIR=${STAGEDIR}${MANPREFIX}/man

View File

@ -0,0 +1,14 @@
--- src/mailer.c.orig 2016-02-20 14:36:22 UTC
+++ src/mailer.c
@@ -373,7 +373,11 @@ Mailer * mailer_new(void)
/* ssl */
SSL_load_error_strings();
SSL_library_init();
+#ifndef OPENSSL_NO_SSL3
if((mailer->ssl_ctx = SSL_CTX_new(SSLv3_client_method())) == NULL
+#else
+ if((mailer->ssl_ctx = SSL_CTX_new(SSLv23_client_method())) == NULL
+#endif
|| SSL_CTX_set_cipher_list(mailer->ssl_ctx,
SSL_DEFAULT_CIPHER_LIST) != 1
|| SSL_CTX_load_verify_locations(mailer->ssl_ctx, NULL,

View File

@ -0,0 +1,11 @@
--- tests/Makefile.orig 2016-09-12 04:36:41 UTC
+++ tests/Makefile
@@ -27,7 +27,7 @@ $(OBJDIR)date$(EXEEXT): $(date_OBJS)
$(CC) -o $(OBJDIR)date$(EXEEXT) $(date_OBJS) $(date_LDFLAGS)
email_OBJS = $(OBJDIR)email.o
-email_CFLAGS = $(CPPFLAGSF) $(CPPFLAGS) $(CFLAGSF) $(CFLAGS)
+email_CFLAGS = $(CPPFLAGSF) $(CPPFLAGS) $(CFLAGSF) $(CFLAGS) `pkg-config --cflags openssl`
email_LDFLAGS = $(LDFLAGSF) $(LDFLAGS) -L$(OBJDIR)../src -Wl,-rpath,$(OBJDIR)../src -lMailer
$(OBJDIR)email$(EXEEXT): $(email_OBJS)