aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorLibravatarLibravatar William Ahern <william+freebsd@25thandClement.com> 2015-12-18 09:48:04 +0000
committerLibravatarLibravatar William Ahern <william+freebsd@25thandClement.com> 2015-12-18 09:48:04 +0000
commitd33874793b2ed9d92640f80e8503376779e0c332 (patch)
tree62318ae858717e3435b3a0d59ad95afa839c6391 /examples
parent111d688271d05845a9a8411927d543a110f6f4c4 (diff)
downloadluaossl-d33874793b2ed9d92640f80e8503376779e0c332.tar.gz
luaossl-d33874793b2ed9d92640f80e8503376779e0c332.tar.bz2
luaossl-d33874793b2ed9d92640f80e8503376779e0c332.zip
add script to test getParameters
Diffstat (limited to 'examples')
-rw-r--r--examples/pkey.info8
1 files changed, 8 insertions, 0 deletions
diff --git a/examples/pkey.info b/examples/pkey.info
new file mode 100644
index 0000000..7369d2d
--- /dev/null
+++ b/examples/pkey.info
@@ -0,0 +1,8 @@
+local pkey = require"openssl.pkey"
+
+local rsa = pkey.new{ type = "RSA", bits = 512 }
+
+for k, v in pairs(rsa:getParameters()) do
+ print(k, v)
+end
+