Changeset 20c3f7b in mod_gnutls


Ignore:
Timestamp:
Oct 24, 2018, 1:15:58 PM (11 months ago)
Author:
Fiona Klute <fiona.klute@…>
Branches:
debian/master, master
Children:
a14cf5c
Parents:
de3fad3
git-author:
Fiona Klute <fiona.klute@…> (10/24/18 13:14:59)
git-committer:
Fiona Klute <fiona.klute@…> (10/24/18 13:15:58)
Message:

Expect test for vhost check to pass

Location:
test
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • test/Makefile.am

    rde3fad3 r20c3f7b  
    3737TESTS = $(dist_check_SCRIPTS)
    3838
    39 # Check is not yet implemented
    40 XFAIL_TESTS = test-29_force_handshake_vhost.bash
    41 
    4239check_PROGRAMS = pgpcrc
    4340pgpcrc_SOURCES = pgpcrc.c
  • test/tests/29_force_handshake_vhost/apache.conf

    rde3fad3 r20c3f7b  
    33
    44GnuTLSCache ${DEFAULT_CACHE}
    5 
    6 <VirtualHost _default_:${TEST_PORT}>
    7         ServerName      ${TEST_HOST}
    8         GnuTLSEnable    On
    9         GnuTLSCertificateFile   server/x509.pem
    10         GnuTLSKeyFile           server/secret.key
    11 </VirtualHost>
    125
    136<VirtualHost _default_:${TEST_PORT}>
     
    2114        </Directory>
    2215</VirtualHost>
     16
     17<VirtualHost _default_:${TEST_PORT}>
     18        ServerName      ${TEST_HOST}
     19        GnuTLSEnable    On
     20        GnuTLSCertificateFile   server/x509.pem
     21        GnuTLSKeyFile           server/secret.key
     22</VirtualHost>
  • test/tests/29_force_handshake_vhost/output

    rde3fad3 r20c3f7b  
    1 HTTP/1.1 403 Forbidden
    2 Content-Length: 217
     1HTTP/1.1 421 Misdirected Request
     2Content-Length: 322
    33Connection: close
    44Content-Type: text/html; charset=iso-8859-1
     
    66<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
    77<html><head>
    8 <title>403 Forbidden</title>
     8<title>421 Misdirected Request</title>
    99</head><body>
    10 <h1>Forbidden</h1>
    11 <p>You don't have permission to access /dump.cgi
    12 on this server.<br />
    13 </p>
     10<h1>Misdirected Request</h1>
     11<p>The client needs a new connection for this
     12request as the requested host name does not match
     13the Server Name Indication (SNI) in use for this
     14connection.</p>
    1415</body></html>
    1516- Peer has closed the GnuTLS connection
Note: See TracChangeset for help on using the changeset viewer.