mirror of
https://github.com/certbot/certbot.git
synced 2026-08-01 19:02:52 +02:00
Whatsa DV challenge
This commit is contained in:
@@ -35,10 +35,6 @@ class Challenge(jose.TypedJSONObjectWithFields):
|
|||||||
return UnrecognizedChallenge.from_json(jobj)
|
return UnrecognizedChallenge.from_json(jobj)
|
||||||
|
|
||||||
|
|
||||||
class DVChallenge(Challenge): # pylint: disable=abstract-method
|
|
||||||
"""Domain validation challenges."""
|
|
||||||
|
|
||||||
|
|
||||||
class ChallengeResponse(jose.TypedJSONObjectWithFields):
|
class ChallengeResponse(jose.TypedJSONObjectWithFields):
|
||||||
# _fields_to_partial_json | pylint: disable=abstract-method
|
# _fields_to_partial_json | pylint: disable=abstract-method
|
||||||
"""ACME challenge response."""
|
"""ACME challenge response."""
|
||||||
@@ -73,8 +69,8 @@ class UnrecognizedChallenge(Challenge):
|
|||||||
return cls(jobj)
|
return cls(jobj)
|
||||||
|
|
||||||
|
|
||||||
class _TokenDVChallenge(DVChallenge):
|
class _TokenChallenge(Challenge):
|
||||||
"""DV Challenge with token.
|
"""Challenge with token.
|
||||||
|
|
||||||
:ivar bytes token:
|
:ivar bytes token:
|
||||||
|
|
||||||
@@ -144,7 +140,7 @@ class KeyAuthorizationChallengeResponse(ChallengeResponse):
|
|||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
||||||
class KeyAuthorizationChallenge(_TokenDVChallenge):
|
class KeyAuthorizationChallenge(_TokenChallenge):
|
||||||
# pylint: disable=abstract-class-little-used,too-many-ancestors
|
# pylint: disable=abstract-class-little-used,too-many-ancestors
|
||||||
"""Challenge based on Key Authorization.
|
"""Challenge based on Key Authorization.
|
||||||
|
|
||||||
@@ -456,7 +452,7 @@ class TLSSNI01(KeyAuthorizationChallenge):
|
|||||||
|
|
||||||
|
|
||||||
@Challenge.register # pylint: disable=too-many-ancestors
|
@Challenge.register # pylint: disable=too-many-ancestors
|
||||||
class DNS(_TokenDVChallenge):
|
class DNS(_TokenChallenge):
|
||||||
"""ACME "dns" challenge."""
|
"""ACME "dns" challenge."""
|
||||||
typ = "dns"
|
typ = "dns"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user