aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorLibravatarLibravatar daurnimator <quae@daurnimator.com> 2017-04-04 15:15:46 +1000
committerLibravatarLibravatar daurnimator <quae@daurnimator.com> 2017-04-04 15:17:29 +1000
commita5ba3b4fbadb8369d9f6602f86f33703f3d043de (patch)
tree68be32621392fbf0ab9fd1a6f7c475fc63152224 /doc
parent5d6b15859e25da8271a3820662bb9d1f8a935107 (diff)
downloadluaossl-a5ba3b4fbadb8369d9f6602f86f33703f3d043de.tar.gz
luaossl-a5ba3b4fbadb8369d9f6602f86f33703f3d043de.tar.bz2
luaossl-a5ba3b4fbadb8369d9f6602f86f33703f3d043de.zip
Add methods ssl:setVerify(), ssl:getVerify(), ssl:getCertificate() and ssl:setPrivateKey()
Similar to same methods that already exist on ssl.context object
Diffstat (limited to 'doc')
-rw-r--r--doc/luaossl.pdfbin274840 -> 275845 bytes
-rw-r--r--doc/luaossl.tex20
2 files changed, 20 insertions, 0 deletions
diff --git a/doc/luaossl.pdf b/doc/luaossl.pdf
index 106b4ea..b8fb40a 100644
--- a/doc/luaossl.pdf
+++ b/doc/luaossl.pdf
Binary files differ
diff --git a/doc/luaossl.tex b/doc/luaossl.tex
index e75a678..3567978 100644
--- a/doc/luaossl.tex
+++ b/doc/luaossl.tex
@@ -997,6 +997,26 @@ Returns the option flags of the SSL connection instance. See \fn{openssl.ssl.con
Clears the option flags of the SSL connection instance. See \fn{openssl.ssl.context:clearOptions}.
+\subsubsection[\fn{ssl:setVerify}]{\fn{ssl:setVerify([$mode$][, $depth$])}}
+
+Sets the verification mode flags and maximum validation chain depth.
+See \fn{openssl.ssl.context:setVerify}.
+
+\subsubsection[\fn{ssl:getVerify}]{\fn{ssl:getVerify()}}
+
+Returns two values: the bitwise verification mode flags, and the maximum validation depth.
+See \fn{openssl.ssl.context:getVerify}.
+
+\subsubsection[\fn{ssl:setCertificate}]{\fn{ssl:setCertificate($crt$)}}
+
+Sets the X.509 certificate \module{openssl.x509} object $crt$ to send during SSL connection instance handshakes.
+See \fn{openssl.ssl.context:setCertificate}.
+
+\subsubsection[\fn{ssl:setPrivateKey}]{\fn{ssl:setPrivateKey($key$)}}
+
+Sets the private key \module{openssl.pkey} object $key$ for use during SSL connection instance handshakes.
+See \fn{openssl.ssl.context:setPrivateKey}.
+
\subsubsection[\fn{ssl:getPeerCertificate}]{\fn{ssl:getPeerCertificate()}}
Returns the X.509 peer certificate as an \module{openssl.x509} object. If no peer certificate is available, returns $nil$.