[Bug 216846] security/sslsplit: add LICENSE, USES=ssl, strip the binary, fix build with libressl-devel

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Feb 6 13:53:15 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216846

            Bug ID: 216846
           Summary: security/sslsplit: add LICENSE, USES=ssl, strip the
                    binary, fix build with libressl-devel
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: swills at FreeBSD.org
          Reporter: pkubaj at anongoth.pl
             Flags: maintainer-feedback?(swills at FreeBSD.org)
          Assignee: swills at FreeBSD.org

Created attachment 179676
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=179676&action=edit
patch

The port previously failed with:
ssl.c:480:21: error: no member named 'state' in 'struct ssl_st'
cc -c  -isystem/usr/local/include   -D_GNU_SOURCE -D"BNAME=\"sslsplit\""
-D"PNAME=\"SSLsplit\"" -D"VERSION=\"0.5.0\"" -D"BUILD_DATE=\"2017-02-06\""
-D"FEATURES=\"-DHAVE_IPFILTER -DHAVE_IPFW -DHAVE_PF\""
-D"BUILD_INFO=\"V:FILE\"" -DHAVE_IPFILTER -DHAVE_IPFW -DHAVE_PF -O2 -pipe 
-DHARDENEDBSD -fPIE -fPIC -fstack-protector -fno-strict-aliasing -D_THREAD_SAFE
-pthread   -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2
-fstack-protector-all -pthread -o version.o version.c
                      ssl->state,
                      ~~~  ^
ssl.c:481:22: error: no member named 'state' in 'struct ssl_st'
                      (ssl->state & SSL_ST_CONNECT) ? "SSL_ST_CONNECT|" : "",
                       ~~~  ^
ssl.c:482:22: error: no member named 'state' in 'struct ssl_st'
                      (ssl->state & SSL_ST_ACCEPT) ? "SSL_ST_ACCEPT|" : "",
                       ~~~  ^
ssl.c:483:22: error: no member named 'state' in 'struct ssl_st'
                      (ssl->state & SSL_ST_BEFORE) ? "SSL_ST_BEFORE|" : "",
                       ~~~  ^
ssl.c:484:21: error: no member named 'state' in 'struct ssl_st'
                      ssl->state & SSL_ST_MASK,
                      ~~~  ^
ssl.c:487:22: error: no member named 'type' in 'struct ssl_st'
                      (ssl->type == SSL_ST_CONNECT) ? "connect socket"
                       ~~~  ^


This patch fixes this issue.
Tested on Poudriere on 10.3-RELEASE with and without libressl-devel.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list