1
0
mirror of https://github.com/laurivosandi/certidude synced 2024-12-22 16:25:17 +00:00

api: ocsp: Fix logger

This commit is contained in:
Priit Laes 2018-02-03 13:19:50 +02:00
parent f6c0e1ae85
commit 8626d78b5c

View File

@ -1,6 +1,7 @@
import click import click
import falcon import falcon
import hashlib import hashlib
import logging
import os import os
from asn1crypto.util import timezone from asn1crypto.util import timezone
from asn1crypto import cms, algos, x509, ocsp from asn1crypto import cms, algos, x509, ocsp
@ -13,6 +14,8 @@ from oscrypto import keys, asymmetric, symmetric
from oscrypto.errors import SignatureError from oscrypto.errors import SignatureError
from .utils import AuthorityHandler from .utils import AuthorityHandler
logger = logging.getLogger(__name__)
class OCSPResource(AuthorityHandler): class OCSPResource(AuthorityHandler):
@whitelist_subnets(config.OCSP_SUBNETS) @whitelist_subnets(config.OCSP_SUBNETS)
def __call__(self, req, resp): def __call__(self, req, resp):