mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
net-libs/libmicrohttpd: fixed testing
Closes: https://bugs.gentoo.org/795105 Signed-off-by: Karlson2k (Evgeny Grin) <k2k@narod.ru> Closes: https://github.com/gentoo/gentoo/pull/21191 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
committed by
Sam James
parent
5524ffe2d2
commit
776f3c2826
@@ -0,0 +1,35 @@
|
||||
Disable usage of SSLv3 in testing
|
||||
|
||||
Integrated uptream version 0.9.74
|
||||
|
||||
|
||||
diff --git a/src/testcurl/https/test_tls_options.c b/src/testcurl/https/test_tls_options.c
|
||||
|
||||
--- a/src/testcurl/https/test_tls_options.c
|
||||
+++ b/src/testcurl/https/test_tls_options.c
|
||||
@@ -119,11 +119,6 @@ main (int argc, char *const *argv)
|
||||
fprintf (stderr, "Curl does not support SSL. Cannot run the test.\n");
|
||||
return 77;
|
||||
}
|
||||
- if (0 != strncmp (ssl_version, "GnuTLS", 6))
|
||||
- {
|
||||
- fprintf (stderr, "This test can be run only with libcurl-gnutls.\n");
|
||||
- return 77;
|
||||
- }
|
||||
|
||||
if (! testsuite_curl_global_init ())
|
||||
return 99;
|
||||
@@ -152,10 +147,10 @@ main (int argc, char *const *argv)
|
||||
fprintf (stderr,
|
||||
"The following handshake should fail (and print an error message)...\n");
|
||||
if (0 !=
|
||||
- test_wrap ("TLS1.0 vs SSL3",
|
||||
+ test_wrap ("TLS1.1 vs TLS1.0",
|
||||
&test_unmatching_ssl_version, NULL, port, daemon_flags,
|
||||
aes256_sha,
|
||||
- CURL_SSLVERSION_SSLv3,
|
||||
+ CURL_SSLVERSION_TLSv1_1,
|
||||
MHD_OPTION_HTTPS_MEM_KEY, srv_key_pem,
|
||||
MHD_OPTION_HTTPS_MEM_CERT, srv_self_signed_cert_pem,
|
||||
MHD_OPTION_HTTPS_PRIORITIES,
|
||||
|
||||
@@ -11,6 +11,8 @@ DESCRIPTION="Small C library to run an HTTP server as part of another applicatio
|
||||
HOMEPAGE="https://www.gnu.org/software/libmicrohttpd/"
|
||||
SRC_URI="mirror://gnu/${PN}/${MY_P}.tar.gz"
|
||||
|
||||
PATCHES=( "${FILESDIR}"/${PN}-0.9.73-test-ssl3.patch )
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0/12"
|
||||
KEYWORDS="amd64 x86"
|
||||
|
||||
@@ -24,6 +24,8 @@ DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
PATCHES=( "${FILESDIR}"/${PN}-0.9.73-test-ssl3.patch )
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
DOCS="AUTHORS NEWS README ChangeLog"
|
||||
|
||||
@@ -12,6 +12,8 @@ HOMEPAGE="https://www.gnu.org/software/libmicrohttpd/"
|
||||
SRC_URI="mirror://gnu/${PN}/${MY_P}.tar.gz"
|
||||
S="${WORKDIR}"/${MY_P}
|
||||
|
||||
PATCHES=( "${FILESDIR}"/${PN}-0.9.73-test-ssl3.patch )
|
||||
|
||||
LICENSE="LGPL-2.1+"
|
||||
SLOT="0/12"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
||||
|
||||
Reference in New Issue
Block a user