aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorLibravatarLibravatar daurnimator <quae@daurnimator.com> 2017-04-03 19:40:37 +1000
committerLibravatarLibravatar daurnimator <quae@daurnimator.com> 2017-04-03 19:40:37 +1000
commitc22a04c2d24665d5ee7615c1888ef41fdf44440f (patch)
treef5f10df1d38ea40394f7bae447b75b6ba24d9603 /doc
parente9feb9dd6c8e87544d2f891e4a1e7b9d7f0264ad (diff)
downloadluaossl-c22a04c2d24665d5ee7615c1888ef41fdf44440f.tar.gz
luaossl-c22a04c2d24665d5ee7615c1888ef41fdf44440f.tar.bz2
luaossl-c22a04c2d24665d5ee7615c1888ef41fdf44440f.zip
Document missing context methods
Closes #66
Diffstat (limited to 'doc')
-rw-r--r--doc/luaossl.pdfbin272910 -> 274644 bytes
-rw-r--r--doc/luaossl.tex23
2 files changed, 23 insertions, 0 deletions
diff --git a/doc/luaossl.pdf b/doc/luaossl.pdf
index 28e9984..85c165e 100644
--- a/doc/luaossl.pdf
+++ b/doc/luaossl.pdf
Binary files differ
diff --git a/doc/luaossl.tex b/doc/luaossl.tex
index d733ccf..bbdf055 100644
--- a/doc/luaossl.tex
+++ b/doc/luaossl.tex
@@ -886,6 +886,23 @@ Returns the option flags of the context instance as an integer.
Clears the option flags of the context instance.
+\subsubsection[\fn{context:setStore}]{\fn{context:setStore($store$)}}
+
+Associate the \module{openssl.x509.store} object $store$ with $context$. Replaces any existing store.
+
+\subsubsection[\fn{context:getStore}]{\fn{context:getStore()}}
+
+Returns the \module{openssl.x509.store} object associated with $context$.
+
+\subsubsection[\fn{context:setParam}]{\fn{context:setParam($params$)}}
+
+Causes $context$ to inherit the parameters from the \module{openssl.x509.verify\_param} object $params$.
+Only parameters set in $params$ will take effect (others will stay unchanged).
+
+\subsubsection[\fn{context:getParam}]{\fn{context:getParam()}}
+
+Returns an \module{openssl.x509.verify\_param} object containing a copy of $context$'s parameters.
+
\subsubsection[\fn{context:setVerify}]{\fn{context:setVerify([$mode$][, $depth$])}}
Sets the verification mode flags and maximum validation chain depth.
@@ -930,6 +947,12 @@ Sets the advertised ALPN protocols. $table$ is an array of protocol string ident
\emph{Only supported since OpenSSL 1.0.2.}
+\subsubsection[\fn{context:setAlpnSelect}]{\fn{context:setAlpnSelect($cb$)}}
+
+Sets the callback used to select an ALPN protocol. $cb$ should be a function that takes two arguments: an \module{openssl.ssl} object and a table containing a sequence of ALPN protocol strings; it should return the ALPN protocol string it selected or $nil$ to select none of them.
+
+\emph{Only supported since OpenSSL 1.0.2.}
+
\subsubsection[\fn{context:setTLSextStatusType}]{\fn{context:setTLSextStatusType($type$)}}
Sets the default TLS extension status for SSL objects derived from this context.