- Update to 5.29

This commit is contained in:
Ryan Steinmetz 2016-01-08 20:36:31 +00:00
parent 4154d0b666
commit f899fa0928
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=405590
3 changed files with 3 additions and 201 deletions

View file

@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= stunnel
PORTVERSION= 5.28
PORTVERSION= 5.29
PORTEPOCH= 1
CATEGORIES= security
MASTER_SITES= https://www.stunnel.org/downloads/%SUBDIR%/ \

View file

@ -1,2 +1,2 @@
SHA256 (stunnel-5.28.tar.gz) = 9a25b87b1ef0c08fa3d796edce07b4408e6a8acece23de2eb7ee9285b78852b5
SIZE (stunnel-5.28.tar.gz) = 637471
SHA256 (stunnel-5.29.tar.gz) = 43909625403ea634fa7cb8399d58faf8e7f11c1b7b29097491469951f56df551
SIZE (stunnel-5.29.tar.gz) = 637806

View file

@ -1,198 +0,0 @@
--- ChangeLog.orig 2015-12-11 11:15:13 UTC
+++ ChangeLog
@@ -1,5 +1,9 @@
stunnel change log
+Version 5.28, unreleased, urgency: LOW
+* Bugfixes
+ - Compilation fix for *BSD.
+
Version 5.28, 2015.12.11, urgency: HIGH
* New features
- Build matrix (.travis.yml) extended with ./configure options.
--- configure.orig 2015-12-08 15:59:04 UTC
+++ configure
@@ -3077,20 +3077,6 @@ END
fi
-$as_echo "#define _GNU_SOURCE 1" >>confdefs.h
-
-
-$as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
-
-# OSX does not declare chroot() with newer _XOPEN_SOURCE versions
-
-$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
-
-# Solaris does not declare IPv6 structures without __EXTENSIONS__
-
-$as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
-
-
if test -d ".git"; then
AUTHOR_TESTS_TRUE=
AUTHOR_TESTS_FALSE='#'
@@ -3190,6 +3176,24 @@ cat >>confdefs.h <<_ACEOF
_ACEOF
+case "$host_os" in
+*darwin*)
+ # OSX does not declare ucontext without _XOPEN_SOURCE
+
+$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
+
+ # OSX does not declare chroot() without _DARWIN_C_SOURCE
+
+$as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
+
+ ;;
+*)
+
+$as_echo "#define _GNU_SOURCE 1" >>confdefs.h
+
+ ;;
+esac
+
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
--- configure.ac.orig 2015-12-08 15:58:38 UTC
+++ configure.ac
@@ -7,12 +7,6 @@ AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_HEADERS([src/config.h])
AC_CONFIG_SRCDIR([src/stunnel.c])
AM_INIT_AUTOMAKE
-AC_DEFINE([_GNU_SOURCE], [1], [Use GNU source])
-AC_DEFINE([_DARWIN_C_SOURCE], [1], [Use Darwin source])
-# OSX does not declare chroot() with newer _XOPEN_SOURCE versions
-AC_DEFINE([_XOPEN_SOURCE], [500], [Use X/Open 5 with POSIX 1995])
-# Solaris does not declare IPv6 structures without __EXTENSIONS__
-AC_DEFINE([__EXTENSIONS__], [1], [Use extended system interfaces])
AM_CONDITIONAL([AUTHOR_TESTS], [test -d ".git"])
AC_CANONICAL_HOST
@@ -23,6 +17,18 @@ AC_DEFINE_UNQUOTED(esc(CPU_$host_cpu))
AC_DEFINE_UNQUOTED(esc(VENDOR_$host_vendor))
AC_DEFINE_UNQUOTED(esc(OS_$host_os))
+case "$host_os" in
+*darwin*)
+ # OSX does not declare ucontext without _XOPEN_SOURCE
+ AC_DEFINE([_XOPEN_SOURCE], [500], [Use X/Open 5 with POSIX 1995])
+ # OSX does not declare chroot() without _DARWIN_C_SOURCE
+ AC_DEFINE([_DARWIN_C_SOURCE], [1], [Use Darwin source])
+ ;;
+*)
+ AC_DEFINE([_GNU_SOURCE], [1], [Use GNU source])
+ ;;
+esac
+
AC_PROG_CC
AM_PROG_CC_C_O
AC_PROG_INSTALL
--- src/config.h.in.orig 2015-12-08 15:59:16 UTC
+++ src/config.h.in
@@ -290,9 +290,6 @@
/* Use X/Open 5 with POSIX 1995 */
#undef _XOPEN_SOURCE
-/* Use extended system interfaces */
-#undef __EXTENSIONS__
-
/* Define to `int' if <sys/types.h> doesn't define. */
#undef gid_t
--- src/dhparam.c.orig 2015-12-05 21:51:48 UTC
+++ src/dhparam.c
@@ -2,44 +2,52 @@
#ifndef OPENSSL_NO_DH
#define DN_new DH_new
#ifndef HEADER_DH_H
-#include <openssl/dh.h>
+# include <openssl/dh.h>
#endif
+
DH *get_dh2048()
- {
- static unsigned char dh2048_p[]={
- 0xC8,0xB6,0xC5,0xB3,0x5B,0x11,0xA6,0xA3,0x5B,0xAF,0x6E,0x47,
- 0x48,0x68,0x54,0x5D,0x17,0xE1,0x05,0xA2,0x04,0x71,0xD7,0xA1,
- 0xD4,0xD4,0xC4,0x46,0x6F,0x1C,0x95,0xC6,0xFE,0xF2,0xAD,0xDC,
- 0xEB,0x97,0x95,0x97,0x52,0x15,0x39,0xDC,0xE7,0x5D,0x59,0xC2,
- 0xA9,0x31,0x74,0x08,0x31,0xF7,0xD8,0xFF,0xF3,0xEC,0xE9,0xE7,
- 0xA1,0xC0,0xCC,0x2B,0x0E,0x45,0x56,0x06,0x64,0xE2,0x75,0x51,
- 0xBB,0x20,0xF9,0x7F,0x0C,0xD6,0x92,0xA5,0x76,0x87,0x4D,0x74,
- 0xEE,0x70,0x15,0x1F,0xE9,0x51,0x9E,0xB4,0xBF,0xEF,0xBE,0x22,
- 0xAC,0x0E,0x5F,0xE3,0x23,0x74,0x28,0xFC,0x00,0x7E,0xE7,0x5B,
- 0x14,0x00,0x1E,0x36,0xB6,0xE0,0x7F,0x35,0xF5,0x5F,0xE6,0x98,
- 0xCC,0xE4,0x35,0xC8,0x67,0x5F,0xDA,0x4B,0x81,0xA3,0xC2,0xE8,
- 0x20,0x7B,0xFF,0x25,0xE0,0x24,0x6A,0xB2,0x2C,0xE3,0xC8,0x2E,
- 0xAA,0x66,0x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x09, 0xEE, 0xA2, 0x84, 0x0C, 0x2A,
+ 0xD6, 0xFD, 0x58, 0xD5, 0xE7, 0xCB
+ };
+ static unsigned char dhg_2048[] = {
+ 0x02
+ };
+ DH *dh = DN_new();
- if ((dh=DH_new()) == NULL) return(NULL);
- dh->p=BN_bin2bn(dh2048_p,sizeof(dh2048_p),NULL);
- dh->g=BN_bin2bn(dh2048_g,sizeof(dh2048_g),NULL);
- if ((dh->p == NULL) || (dh->g == NULL))
- { DH_free(dh); return(NULL); }
- return(dh);
- }
+ if (dh == NULL)
+ return NULL;
+ dh->p = BN_bin2bn(dhp_2048, sizeof (dhp_2048), NULL);
+ dh->g = BN_bin2bn(dhg_2048, sizeof (dhg_2048), NULL);
+ if (!dh->p || !dh->g) {
+ DH_free(dh);
+ return NULL;
+ }
+ return dh;
+}
#endif /* OPENSSL_NO_DH */