Changeset 9db4dcd in mod_gnutls for test/tests/35_client_reauth/test.yml


Ignore:
Timestamp:
Jan 21, 2020, 3:24:32 PM (11 months ago)
Author:
Fiona Klute <fiona.klute@…>
Branches:
asyncio, master, proxy-ticket
Children:
fcad37b
Parents:
4a22ee6
Message:

Handle GNUTLS_E_GOT_APPLICATION_DATA on gnutls_reauth()

Pending application data is cached in the connection input buffer, so
repeated attempts won't cause more memory allocations. If the buffer
is too small HTTP_REQUEST_ENTITY_TOO_LARGE is sent to the client.

The reauthentication test now contains a POST request so this code
path may (!) be taken during the test suite run.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/tests/35_client_reauth/test.yml

    r4a22ee6 r9db4dcd  
    1717          test
    1818  - !request
    19     method: GET
    20     path: /secret/test.txt
     19    method: POST
     20    path: /secret/mirror.cgi
     21    body: |
     22      GNUTLS_E_GOT_APPLICATION_DATA can (randomly, depending on
     23      timing) happen with a request containing a body. According to
     24      https://tools.ietf.org/html/rfc8446#appendix-E.1.2
     25      post-handshake authentication proves that the authenticated
     26      party is the one that did the handshake, so caching the data
     27      is appropriate.
    2128    expect:
    2229      status: 200
    2330      body:
    2431        exactly: |
    25           top secret
     32          GNUTLS_E_GOT_APPLICATION_DATA can (randomly, depending on
     33          timing) happen with a request containing a body. According to
     34          https://tools.ietf.org/html/rfc8446#appendix-E.1.2
     35          post-handshake authentication proves that the authenticated
     36          party is the one that did the handshake, so caching the data
     37          is appropriate.
    2638  - !request
    2739    method: GET
Note: See TracChangeset for help on using the changeset viewer.