diff options
author | daurnimator <quae@daurnimator.com> | 2017-04-03 19:40:37 +1000 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2017-04-03 19:40:37 +1000 |
commit | c22a04c2d24665d5ee7615c1888ef41fdf44440f (patch) | |
tree | f5f10df1d38ea40394f7bae447b75b6ba24d9603 /doc | |
parent | e9feb9dd6c8e87544d2f891e4a1e7b9d7f0264ad (diff) | |
download | luaossl-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.pdf | bin | 272910 -> 274644 bytes | |||
-rw-r--r-- | doc/luaossl.tex | 23 |
2 files changed, 23 insertions, 0 deletions
diff --git a/doc/luaossl.pdf b/doc/luaossl.pdf Binary files differindex 28e9984..85c165e 100644 --- a/doc/luaossl.pdf +++ b/doc/luaossl.pdf 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. |