diff options
| author | daurnimator <quae@daurnimator.com> | 2017-04-04 15:15:46 +1000 |
|---|---|---|
| committer | daurnimator <quae@daurnimator.com> | 2017-04-04 15:17:29 +1000 |
| commit | a5ba3b4fbadb8369d9f6602f86f33703f3d043de (patch) | |
| tree | 68be32621392fbf0ab9fd1a6f7c475fc63152224 /doc | |
| parent | 5d6b15859e25da8271a3820662bb9d1f8a935107 (diff) | |
| download | luaossl-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.pdf | bin | 274840 -> 275845 bytes | |||
| -rw-r--r-- | doc/luaossl.tex | 20 |
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 | |||
| 997 | 997 | ||
| 998 | Clears the option flags of the SSL connection instance. See \fn{openssl.ssl.context:clearOptions}. | 998 | Clears the option flags of the SSL connection instance. See \fn{openssl.ssl.context:clearOptions}. |
| 999 | 999 | ||
| 1000 | \subsubsection[\fn{ssl:setVerify}]{\fn{ssl:setVerify([$mode$][, $depth$])}} | ||
| 1001 | |||
| 1002 | Sets the verification mode flags and maximum validation chain depth. | ||
| 1003 | See \fn{openssl.ssl.context:setVerify}. | ||
| 1004 | |||
| 1005 | \subsubsection[\fn{ssl:getVerify}]{\fn{ssl:getVerify()}} | ||
| 1006 | |||
| 1007 | Returns two values: the bitwise verification mode flags, and the maximum validation depth. | ||
| 1008 | See \fn{openssl.ssl.context:getVerify}. | ||
| 1009 | |||
| 1010 | \subsubsection[\fn{ssl:setCertificate}]{\fn{ssl:setCertificate($crt$)}} | ||
| 1011 | |||
| 1012 | Sets the X.509 certificate \module{openssl.x509} object $crt$ to send during SSL connection instance handshakes. | ||
| 1013 | See \fn{openssl.ssl.context:setCertificate}. | ||
| 1014 | |||
| 1015 | \subsubsection[\fn{ssl:setPrivateKey}]{\fn{ssl:setPrivateKey($key$)}} | ||
| 1016 | |||
| 1017 | Sets the private key \module{openssl.pkey} object $key$ for use during SSL connection instance handshakes. | ||
| 1018 | See \fn{openssl.ssl.context:setPrivateKey}. | ||
| 1019 | |||
| 1000 | \subsubsection[\fn{ssl:getPeerCertificate}]{\fn{ssl:getPeerCertificate()}} | 1020 | \subsubsection[\fn{ssl:getPeerCertificate}]{\fn{ssl:getPeerCertificate()}} |
| 1001 | 1021 | ||
| 1002 | Returns the X.509 peer certificate as an \module{openssl.x509} object. If no peer certificate is available, returns $nil$. | 1022 | Returns the X.509 peer certificate as an \module{openssl.x509} object. If no peer certificate is available, returns $nil$. |
