summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2008-05-22 19:07:53 +0000
committerTed Trask <ttrask01@yahoo.com>2008-05-22 19:07:53 +0000
commit87754578a25a01132705f1728f470a4e3c4d9cca (patch)
treed1fd8c7fa20ccf984a9394c7a9a19fb9e28c525c
parent6974a4052073c6aaadc6af8c30cf3d236b16b88f (diff)
downloadacf-openssl-87754578a25a01132705f1728f470a4e3c4d9cca.tar.bz2
acf-openssl-87754578a25a01132705f1728f470a4e3c4d9cca.tar.xz
openssl is now pretty much done except for revoking certificates.
git-svn-id: svn://svn.alpinelinux.org/acf/openssl/trunk@1177 ab2d0c66-481e-0410-8bed-d214d4d58bed
-rw-r--r--openssl-editconfigfile-html.lsp29
-rw-r--r--openssl-putcacert-html.lsp15
-rw-r--r--openssl-status-html.lsp13
3 files changed, 57 insertions, 0 deletions
diff --git a/openssl-editconfigfile-html.lsp b/openssl-editconfigfile-html.lsp
new file mode 100644
index 0000000..be6dae0
--- /dev/null
+++ b/openssl-editconfigfile-html.lsp
@@ -0,0 +1,29 @@
+<? local form, viewlibrary = ... ?>
+<? require("viewfunctions") ?>
+
+<? --[[ DEBUG INFORMATION
+io.write(html.cfe_unpack(form))
+--]] ?>
+
+<H1>Configuration</H1>
+<H2>File Details</H2>
+<DL>
+<?
+displayitem(form.value.filename)
+displayitem(form.value.filesize)
+displayitem(form.value.mtime)
+?>
+</DL>
+
+<H2>File Content</H1>
+<? if form.descr then ?><P CLASS='descr'><?= string.gsub(form.descr, "\n", "<BR>") ?></P><? end ?>
+<? if form.errtxt then ?><P CLASS='error'><?= string.gsub(form.errtxt, "\n", "<BR>") ?></P><? end ?>
+<form action="" method="POST">
+<textarea name="filecontent">
+<?= form.value.filecontent.value ?>
+</textarea>
+
+<DL><DT>Save/Apply above settings</DT><DD><input class="submit" type="submit" name="<?= form.option ?>" value="Save"></DD></DL>
+</form>
+
+
diff --git a/openssl-putcacert-html.lsp b/openssl-putcacert-html.lsp
new file mode 100644
index 0000000..2707c09
--- /dev/null
+++ b/openssl-putcacert-html.lsp
@@ -0,0 +1,15 @@
+<? local form = ... ?>
+<? require("viewfunctions") ?>
+
+<? --[[ DEBUG INFORMATION
+io.write(html.cfe_unpack(form))
+--]] ?>
+
+<H1><?= form.label ?></H1>
+<?
+ form.action = '" enctype="multipart/form-data'
+ form.value.ca.type="file"
+ form.value.password.type="password"
+ local order = {"ca", "password"}
+ displayform(form, order)
+?>
diff --git a/openssl-status-html.lsp b/openssl-status-html.lsp
new file mode 100644
index 0000000..8603bf4
--- /dev/null
+++ b/openssl-status-html.lsp
@@ -0,0 +1,13 @@
+<? local view, viewlibrary = ... ?>
+<? require("viewfunctions") ?>
+
+<? --[[ DEBUG INFORMATION
+io.write(html.cfe_unpack(view))
+--]] ?>
+
+<H1>SYSTEM INFO</H1>
+<DL>
+<? displayitem(view.value.version) ?>
+<? displayitem(view.value.conffile) ?>
+<? displayitem(view.value.cacert) ?>
+</DL>