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

api: scep: Drop unused imports

This commit is contained in:
Priit Laes 2018-02-03 13:25:34 +02:00
parent 5439d5560a
commit 2eb93e6698

View File

@ -1,11 +1,9 @@
import click
import hashlib import hashlib
import os import os
from asn1crypto import cms, algos, x509 from asn1crypto import cms, algos
from asn1crypto.core import ObjectIdentifier, SetOf, PrintableString from asn1crypto.core import SetOf, PrintableString
from base64 import b64decode, b64encode from base64 import b64decode
from certbuilder import pem_armor_certificate from certidude import config
from certidude import push, config
from certidude.firewall import whitelist_subnets from certidude.firewall import whitelist_subnets
from oscrypto import keys, asymmetric, symmetric from oscrypto import keys, asymmetric, symmetric
from oscrypto.errors import SignatureError from oscrypto.errors import SignatureError
@ -31,7 +29,7 @@ cms.CMSAttribute._oid_specs['recipient_nonce'] = cms.SetOfOctetString
cms.CMSAttribute._oid_specs['trans_id'] = SetOfPrintableString cms.CMSAttribute._oid_specs['trans_id'] = SetOfPrintableString
class SCEPError(Exception): code = 25 # system failure class SCEPError(Exception): code = 25 # system failure
class SCEPBadAlg(SCEPError): code = 0 class SCEPBadAlgo(SCEPError): code = 0
class SCEPBadMessageCheck(SCEPError): code = 1 class SCEPBadMessageCheck(SCEPError): code = 1
class SCEPBadRequest(SCEPError): code = 2 class SCEPBadRequest(SCEPError): code = 2
class SCEPBadTime(SCEPError): code = 3 class SCEPBadTime(SCEPError): code = 3