Date: Thu, 25 Feb 2021 13:05:04 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 253846] net/bsdec2-image-upload: patch to make it build with libressl >= 2.9 Message-ID: <bug-253846-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D253846 Bug ID: 253846 Summary: net/bsdec2-image-upload: patch to make it build with libressl >=3D 2.9 Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: cperciva@FreeBSD.org Reporter: tphilipp@potion-studios.com Assignee: cperciva@FreeBSD.org Flags: maintainer-feedback?(cperciva@FreeBSD.org) Created attachment 222823 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D222823&action= =3Dedit patch for build with libressl >=3D 2.9 Hello, thanks for writing bsdec2-image-upload! Attached is a patch that should make the build work with libressl >=3D 2.9, which introduced SSL_set1_host(), so= it's not necessary for bsdec2-image-upload to provide its own implementation, in this case. I'm afraid my patch is a bit "pragmatic"; I tried to follow the style of matching it to a specific openssl API version as was done in sslreq.c, but = 2.9 introduced the mentioned function above, but not SSL_set_hostflags(), both being within the same #if block, so I pragmatically added a libressl specif= ic check :-/ Also, INT_MAX wasn't declared, so I added the needed #include. I'm not sure from which libressl version on this is necessary, though. Since Colin seems to be maintainer and author, I guess this patch could be merged upstream instead of adding it to the ports' patches..? Sorry, I wasn= 't sure what to do, there might also be a less hacky way of addressing this, I guess. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-253846-7788>