mirror of
				https://github.com/laurivosandi/certidude
				synced 2025-10-31 17:39:12 +00:00 
			
		
		
		
	api: scep: Drop unused imports
This commit is contained in:
		| @@ -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 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user