diff options
| -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 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. | |||
| 886 | 886 | ||
| 887 | Clears the option flags of the context instance. | 887 | Clears the option flags of the context instance. |
| 888 | 888 | ||
| 889 | \subsubsection[\fn{context:setStore}]{\fn{context:setStore($store$)}} | ||
| 890 | |||
| 891 | Associate the \module{openssl.x509.store} object $store$ with $context$. Replaces any existing store. | ||
| 892 | |||
| 893 | \subsubsection[\fn{context:getStore}]{\fn{context:getStore()}} | ||
| 894 | |||
| 895 | Returns the \module{openssl.x509.store} object associated with $context$. | ||
| 896 | |||
| 897 | \subsubsection[\fn{context:setParam}]{\fn{context:setParam($params$)}} | ||
| 898 | |||
| 899 | Causes $context$ to inherit the parameters from the \module{openssl.x509.verify\_param} object $params$. | ||
| 900 | Only parameters set in $params$ will take effect (others will stay unchanged). | ||
| 901 | |||
| 902 | \subsubsection[\fn{context:getParam}]{\fn{context:getParam()}} | ||
| 903 | |||
| 904 | Returns an \module{openssl.x509.verify\_param} object containing a copy of $context$'s parameters. | ||
| 905 | |||
| 889 | \subsubsection[\fn{context:setVerify}]{\fn{context:setVerify([$mode$][, $depth$])}} | 906 | \subsubsection[\fn{context:setVerify}]{\fn{context:setVerify([$mode$][, $depth$])}} |
| 890 | 907 | ||
| 891 | Sets the verification mode flags and maximum validation chain depth. | 908 | 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 | |||
| 930 | 947 | ||
| 931 | \emph{Only supported since OpenSSL 1.0.2.} | 948 | \emph{Only supported since OpenSSL 1.0.2.} |
| 932 | 949 | ||
| 950 | \subsubsection[\fn{context:setAlpnSelect}]{\fn{context:setAlpnSelect($cb$)}} | ||
| 951 | |||
| 952 | 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. | ||
| 953 | |||
| 954 | \emph{Only supported since OpenSSL 1.0.2.} | ||
| 955 | |||
| 933 | \subsubsection[\fn{context:setTLSextStatusType}]{\fn{context:setTLSextStatusType($type$)}} | 956 | \subsubsection[\fn{context:setTLSextStatusType}]{\fn{context:setTLSextStatusType($type$)}} |
| 934 | 957 | ||
| 935 | Sets the default TLS extension status for SSL objects derived from this context. | 958 | Sets the default TLS extension status for SSL objects derived from this context. |
