Changeset 199acff in mod_gnutls for test/data


Ignore:
Timestamp:
Apr 13, 2020, 3:50:57 PM (6 months ago)
Author:
Fiona Klute <fiona.klute@…>
Branches:
master, proxy-ticket
Children:
ebbfb2b
Parents:
de81c0f
Message:

ocsp.py: Log OCPS requests to stderr

With this the requests will appear in the server log via mod_cgi,
where tests can read and evaluate them.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/data/ocsp.py

    rde81c0f r199acff  
    3636
    3737from http import HTTPStatus
     38import base64
    3839import os
    3940import shutil
     
    7980    try:
    8081        req = sys.stdin.buffer.read(int(content_length))
     82        print(f'Received OCSP request: \'{base64.b64encode(req).decode()}\'',
     83              file=sys.stderr, flush=True)
    8184        openssl = os.getenv('OPENSSL') or shutil.which('openssl')
    8285        openssl_run = subprocess.run([openssl, 'ocsp',
Note: See TracChangeset for help on using the changeset viewer.