Commit c27fed70 authored by Robin Obůrka's avatar Robin Obůrka

Use relative imports in whole application

parent 5d050968
......@@ -8,7 +8,7 @@ from flask import jsonify
from flask import g
from flask import current_app
from certapi.authentication import process_request
from .authentication import process_request
apiv1 = Blueprint("apiv1", __name__)
......
......@@ -4,7 +4,7 @@ from flask import current_app
from certapi.crypto import create_random_sid, create_random_nonce, key_match
from certapi.exceptions import InvalidAuthStateError, InvalidSessionError, InvalidParamError
from certapi import validators
from . import validators
DELAY_GET_SESSION_EXISTS = 10
DELAY_AUTH = 10
......
......@@ -4,7 +4,7 @@ from cryptography.hazmat.backends import default_backend
from cryptography.hazmat.primitives import hashes
from cryptography import x509
from certapi.exceptions import InvalidParamError
from .exceptions import InvalidParamError
AVAIL_HASHES = {
"sha224",
......
from certapi.crypto import AVAIL_HASHES, get_common_names, csr_from_str
from certapi.exceptions import InvalidParamError, InvalidAuthStateError, InvalidSessionError
from .crypto import AVAIL_HASHES, get_common_names, csr_from_str
from .exceptions import InvalidParamError, InvalidAuthStateError, InvalidSessionError
AVAIL_REQUEST_TYPES = {"get_cert", "auth"}
AVAIL_FLAGS = {"renew"}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment