Changeset 0e069b6 in mod_gnutls
- Timestamp:
- Dec 7, 2019, 11:22:36 AM (3 years ago)
- Branches:
- asyncio, main, master, proxy-ticket
- Children:
- eb84747
- Parents:
- 7054040
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
configure.ac
r7054040 r0e069b6 217 217 fi 218 218 219 AC_PATH_PROGS([HTTP_CLI], [curl wget], [no])219 AC_PATH_PROGS([HTTP_CLI], [curl], [no]) 220 220 221 221 MODULE_CFLAGS="${LIBGNUTLS_CFLAGS} ${GNUTLS_FEAT_CFLAGS} ${MSVA_CFLAGS} ${APXS_CFLAGS} ${AP_INCLUDES} ${APR_INCLUDES} ${APU_INCLUDES} ${STRICT_CFLAGS}" -
test/mgstest/tests.py
r7054040 r0e069b6 27 27 import yaml 28 28 29 from enum import Enum, auto 30 from http.client import HTTPConnection 29 31 from string import Template 30 32 31 33 from . import TestExpectationFailed 32 34 from .http import HTTPSubprocessConnection 35 36 class Transports(Enum): 37 GNUTLS = auto() 38 PLAIN = auto() 39 40 def __repr__(self): 41 return f'{self.__class__.__name__!s}.{self.name}' 33 42 34 43 class TestConnection(yaml.YAMLObject): … … 50 59 self.gnutls_params = gnutls_params 51 60 self.actions = actions 52 self.transport = transport61 self.transport = Transports[transport.upper()] 53 62 if host: 54 63 self.host = subst_env(host) … … 73 82 command = command + ['-p', str(self.port), self.host] 74 83 75 conn = HTTPSubprocessConnection(command, self.host, self.port, 76 output_filter=filter_cert_log, 77 timeout=timeout) 84 if self.transport == Transports.GNUTLS: 85 conn = HTTPSubprocessConnection(command, self.host, self.port, 86 output_filter=filter_cert_log, 87 timeout=timeout) 88 elif self.transport == Transports.PLAIN: 89 conn = HTTPConnection(self.host, port=self.port, 90 timeout=timeout) 78 91 79 92 try: -
test/test-26_redirect_HTTP_to_HTTPS.bash
r7054040 r0e069b6 4 4 # with "%{HTTPS}". 5 5 6 set -e7 : ${srcdir:="."}8 . ${srcdir}/common.bash9 netns_reexec ${@}10 11 testdir="${srcdir}/tests/26_redirect_HTTP_to_HTTPS"12 TEST_NAME="$(basename ${testdir})"13 . $(dirname ${0})/apache_service.bash14 15 6 : ${TEST_HTTP_PORT:="9935"} 16 7 export TEST_HTTP_PORT 17 8 18 function stop_server 19 { 20 apache_service "${testdir}" "apache.conf" stop 21 } 22 apache_service "${testdir}" "apache.conf" start "${TEST_LOCK}" 23 trap stop_server EXIT 24 25 output="outputs/${TEST_NAME}.output" 26 rm -f "$output" 27 28 # Send status request over HTTP. This should get redirected to HTTPS. 29 URL="http://${TEST_HOST}:${TEST_HTTP_PORT}/status?auto" 30 if [ "$(basename ${HTTP_CLI})" = "curl" ]; then 31 ${HTTP_CLI} --location --verbose --cacert authority/x509.pem "${URL}" \ 32 >"${output}" 33 elif [ "$(basename ${HTTP_CLI})" = "wget" ]; then 34 ${HTTP_CLI} --ca-certificate=authority/x509.pem -O "${output}" "${URL}" 35 else 36 echo "No HTTP client (curl or wget) found, skipping." 2>&1 37 exit 77 38 fi 39 40 # If the request was redirected correctly, the status report lists the 41 # used ciphersuite. 42 grep "Current TLS session: (TLS" "${output}" 43 44 stop_server 45 trap - EXIT 9 ${srcdir}/runtests t-26 -
test/tests/Makefile.am
r7054040 r0e069b6 26 26 24_pkcs11_cert/apache.conf 24_pkcs11_cert/test.yml \ 27 27 25_Disable_TLS_1.0/apache.conf 25_Disable_TLS_1.0/test.yml \ 28 26_redirect_HTTP_to_HTTPS/apache.conf \28 26_redirect_HTTP_to_HTTPS/apache.conf 26_redirect_HTTP_to_HTTPS/test.yml \ 29 29 27_OCSP_server/apache.conf 27_OCSP_server/ocsp.conf 27_OCSP_server/test.yml \ 30 30 28_HTTP2_support/apache.conf \
Note: See TracChangeset
for help on using the changeset viewer.