summaryrefslogtreecommitdiffstats
path: root/openssl-status-html.lsp
diff options
context:
space:
mode:
Diffstat (limited to 'openssl-status-html.lsp')
-rw-r--r--openssl-status-html.lsp12
1 files changed, 7 insertions, 5 deletions
diff --git a/openssl-status-html.lsp b/openssl-status-html.lsp
index e980114..1cd35c6 100644
--- a/openssl-status-html.lsp
+++ b/openssl-status-html.lsp
@@ -25,7 +25,7 @@ htmlviewfunctions.displayitem(view.value.cakey)
if not view.value.version.errtxt and not view.value.conffile.errtxt then
if view.value.environment.errtxt then
if viewlibrary and viewlibrary.dispatch_component and viewlibrary.check_permission("checkenvironment") then
- viewlibrary.dispatch_component("checkenvironment")
+ viewlibrary.dispatch_component("checkenvironment", {basedir=view.value.basedir.value})
end
elseif not view.value.cacert.errtxt and not view.value.cakey.errtxt then
htmlviewfunctions.displaysectionstart(view.value.cacertcontents, page_info, header_level)
@@ -33,10 +33,10 @@ if not view.value.version.errtxt and not view.value.conffile.errtxt then
htmlviewfunctions.displaysectionend(header_level)
elseif viewlibrary and viewlibrary.dispatch_component then
if viewlibrary.check_permission("putcacert") then
- viewlibrary.dispatch_component("putcacert")
+ viewlibrary.dispatch_component("putcacert", {basedir=view.value.basedir.value})
end
if viewlibrary.check_permission("generatecacert") then
- viewlibrary.dispatch_component("generatecacert")
+ viewlibrary.dispatch_component("generatecacert", {basedir=view.value.basedir.value})
end
end
end
@@ -44,9 +44,11 @@ end
<%
if not view.value.cacert.errtxt and viewlibrary.check_permission("downloadcacert") then
+ local viewtype = cfe({type="hidden", value="stream"})
+ local basedir = cfe({type="hidden", value=view.value.basedir.value})
htmlviewfunctions.displaysectionstart(cfe({label="Download CA Cert"}), page_info, header_level)
- htmlviewfunctions.displayitem(cfe({type="link", value={certtype=cfe({type="hidden", value="PEM"}), viewtype=cfe({type="hidden", value="stream"})}, label="", option="Download PEM", action="downloadcacert"}), page_info, -1)
- htmlviewfunctions.displayitem(cfe({type="link", value={certtype=cfe({type="hidden", value="DER"}), viewtype=cfe({type="hidden", value="stream"})}, label="", option="Download DER", action="downloadcacert"}), page_info, -1)
+ htmlviewfunctions.displayitem(cfe({type="link", value={certtype=cfe({type="hidden", value="PEM"}), viewtype=viewtype, basedir=basedir}, label="", option="Download PEM", action="downloadcacert"}), page_info, -1)
+ htmlviewfunctions.displayitem(cfe({type="link", value={certtype=cfe({type="hidden", value="DER"}), viewtype=viewtype, basedir=basedir}, label="", option="Download DER", action="downloadcacert"}), page_info, -1)
htmlviewfunctions.displaysectionend(header_level)
end
%>