]> git.proxmox.com Git - proxmox-acme.git/blobdiff - src/PVE/ACME/DNSChallenge.pm
plugins: unify extract_challenge
[proxmox-acme.git] / src / PVE / ACME / DNSChallenge.pm
index 041bc791b5cd13434784e56b3b0ac8eedbb229c9..7f7f1256639d1864301c4d3798d4b84358994b0e 100644 (file)
@@ -11,7 +11,7 @@ use base qw(PVE::ACME::Challenge);
 my $ACME_PATH = '/usr/share/proxmox-acme/proxmox-acme';
 
 sub supported_challenge_types {
-    return { 'dns-01' => 1 };
+    return ["dns-01"];
 }
 
 sub type {
@@ -143,12 +143,6 @@ sub options {
     };
 }
 
-sub extract_challenge {
-    my ($self, $challenge) = @_;
-
-    return PVE::ACME::Challenge->extract_challenge($challenge, 'dns-01');
-}
-    
 sub get_subplugins {
     return $api_name_list;
 }