Skip to content

Commit

Permalink
Merge branch 'main' into feature/add-json-schema-for-copied-boefjes
Browse files Browse the repository at this point in the history
  • Loading branch information
Donnype authored Aug 20, 2024
2 parents 1dc7127 + 917f33d commit cafdfa4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions boefjes/boefjes/plugins/kat_ssl_certificates/normalize.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from cryptography.hazmat.primitives.asymmetric import ec, rsa
from dateutil.parser import parse

from boefjes.job_models import NormalizerOutput
from boefjes.job_models import NormalizerAffirmation, NormalizerOutput
from octopoes.models import Reference
from octopoes.models.ooi.certificate import (
AlgorithmType,
Expand Down Expand Up @@ -73,7 +73,7 @@ def run(input_ooi: dict, raw: bytes) -> Iterable[NormalizerOutput]:
)

# update website
yield website
yield NormalizerAffirmation(ooi=website)

# chain certificates together
last_certificate = None
Expand Down
2 changes: 1 addition & 1 deletion boefjes/tests/test_sslcertificate_normalizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@
def test_ssl_certificates_normalizer():
output = list(run(input_ooi, get_dummy_data("ssl-certificates.txt")))

assert len([ooi for ooi in output if ooi.object_type == "X509Certificate"]) == 3
assert len([ooi for ooi in output if hasattr(ooi, "object_type") and ooi.object_type == "X509Certificate"]) == 3

0 comments on commit cafdfa4

Please sign in to comment.