From 2eb93e669840147ecd466e36744536badd42f02a Mon Sep 17 00:00:00 2001 From: Priit Laes Date: Sat, 3 Feb 2018 13:25:34 +0200 Subject: [PATCH] api: scep: Drop unused imports --- certidude/api/scep.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/certidude/api/scep.py b/certidude/api/scep.py index 8fc972f..2c0f59c 100644 --- a/certidude/api/scep.py +++ b/certidude/api/scep.py @@ -1,11 +1,9 @@ -import click import hashlib import os -from asn1crypto import cms, algos, x509 -from asn1crypto.core import ObjectIdentifier, SetOf, PrintableString -from base64 import b64decode, b64encode -from certbuilder import pem_armor_certificate -from certidude import push, config +from asn1crypto import cms, algos +from asn1crypto.core import SetOf, PrintableString +from base64 import b64decode +from certidude import config from certidude.firewall import whitelist_subnets from oscrypto import keys, asymmetric, symmetric from oscrypto.errors import SignatureError @@ -31,7 +29,7 @@ cms.CMSAttribute._oid_specs['recipient_nonce'] = cms.SetOfOctetString cms.CMSAttribute._oid_specs['trans_id'] = SetOfPrintableString class SCEPError(Exception): code = 25 # system failure -class SCEPBadAlg(SCEPError): code = 0 +class SCEPBadAlgo(SCEPError): code = 0 class SCEPBadMessageCheck(SCEPError): code = 1 class SCEPBadRequest(SCEPError): code = 2 class SCEPBadTime(SCEPError): code = 3