From c22a04c2d24665d5ee7615c1888ef41fdf44440f Mon Sep 17 00:00:00 2001 From: daurnimator Date: Mon, 3 Apr 2017 19:40:37 +1000 Subject: Document missing context methods Closes #66 --- doc/luaossl.pdf | Bin 272910 -> 274644 bytes doc/luaossl.tex | 23 +++++++++++++++++++++++ 2 files changed, 23 insertions(+) diff --git a/doc/luaossl.pdf b/doc/luaossl.pdf index 28e9984..85c165e 100644 Binary files a/doc/luaossl.pdf and b/doc/luaossl.pdf 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. -- cgit v1.2.3-59-g8ed1b