]> git.proxmox.com Git - proxmox-acme.git/blobdiff - src/PVE/ACME/Challenge.pm
plugins: refactor setup/teardown signatures
[proxmox-acme.git] / src / PVE / ACME / Challenge.pm
index 3fb8ab9cde5186232634ec67e2faaa38044cfb12..0137cf22274fe85dc98b7a8592dbfbe8437a9e70 100644 (file)
@@ -70,14 +70,23 @@ sub get_subplugins {
     return [];
 }
 
+# acme => PVE::ACME instance
+# auth => authorization object returned by ACME server
+# $data => {
+#   plugin => plugin config data
+#   alias => optional domain alias
+# }
+# needs to set $data->{url} to URL of the challenge which has been set up
+# can set other $data keys needed by teardown sub
 sub setup {
-    my ($class, $acme, $authorization) = @_;
+    my ($self, $acme, $auth, $data) = @_;
 
     die "implement me\n";
 }
 
+# see setup
 sub teardown {
-    my ($self) = @_;
+    my ($self, $acme, $auth, $data) = @_;
 
     die "implement me\n";
 }