]> git.proxmox.com Git - proxmox-acme.git/blobdiff - src/PVE/ACME/StandAlone.pm
plugins: unify extract_challenge
[proxmox-acme.git] / src / PVE / ACME / StandAlone.pm
index b47a927a082201708e206edb68352440a6e784b5..6a6f05abaede87203671606daa869398a2b255dc 100644 (file)
@@ -9,7 +9,7 @@ use HTTP::Response;
 use base qw(PVE::ACME::Challenge);
 
 sub supported_challenge_types {
-    return { 'http-01' => 1 };
+    return ['http-01'];
 }
 
 sub type {
@@ -27,12 +27,6 @@ sub options {
     };
 }
 
-sub extract_challenge {
-    my ($self, $challenge) = @_;
-
-    return PVE::ACME::Challenge->extract_challenge($challenge, 'http-01');
-}
-
 sub get_subplugins {
     return [];
 }