aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorLibravatarLibravatar daurnimator <quae@daurnimator.com> 2018-07-08 21:24:21 +1000
committerLibravatarLibravatar daurnimator <quae@daurnimator.com> 2018-07-08 21:24:21 +1000
commite5db5b07ebfd7b3d0b5e009027ea79b255794061 (patch)
tree06058c085cbfd5f8314bfea06dff01fe70e22ae8 /doc
parent6b0ddff8b33d533c077a16007d17899203743501 (diff)
downloadluaossl-e5db5b07ebfd7b3d0b5e009027ea79b255794061.tar.gz
luaossl-e5db5b07ebfd7b3d0b5e009027ea79b255794061.tar.bz2
luaossl-e5db5b07ebfd7b3d0b5e009027ea79b255794061.zip
doc/: Update ssl.context module docs; regenerate pdf
Diffstat (limited to 'doc')
-rw-r--r--doc/luaossl.pdfbin299869 -> 302518 bytes
-rw-r--r--doc/luaossl.tex38
2 files changed, 37 insertions, 1 deletions
diff --git a/doc/luaossl.pdf b/doc/luaossl.pdf
index c799a93..9c99718 100644
--- a/doc/luaossl.pdf
+++ b/doc/luaossl.pdf
Binary files differ
diff --git a/doc/luaossl.tex b/doc/luaossl.tex
index cebdf52..60af781 100644
--- a/doc/luaossl.tex
+++ b/doc/luaossl.tex
@@ -86,7 +86,11 @@ morestring=[b]"
}
\date{\today}
-\author{William Ahern}
+\author{
+ William Ahern
+ \and
+ Daurnimator
+}
%\setlength{\droptitle}{85pt}
\maketitle
\thispagestyle{empty}
@@ -927,6 +931,12 @@ Returns two values: the bitwise verification mode flags, and the maximum validat
Sets the X.509 certificate \module{openssl.x509} object $crt$ to send during SSL connection instance handshakes.
+\subsubsection[\fn{context:getCertificate}]{\fn{context:getCertificate()}}
+
+Returns the X.509 certificate \module{openssl.x509} object to be sent during SSL connection instance handshakes.
+
+\emph{Only supported since OpenSSL 1.0.2.}
+
\subsubsection[\fn{context:setPrivateKey}]{\fn{context:setPrivateKey($key$)}}
Sets the private key \module{openssl.pkey} object $key$ for use during SSL connection instance handshakes.
@@ -961,6 +971,12 @@ Sets the callback used to select an ALPN protocol. $cb$ should be a function tha
\emph{Only supported since OpenSSL 1.0.2.}
+\subsubsection[\fn{context:setHostNameCallback}]{\fn{context:setHostNameCallback($cb$)}}
+
+Sets the callback used to process the SNI in a ClientHello. $cb$ should be a function that one argument: a \module{openssl.ssl} object; it should return $true$ to indicate success, $false$ if no acknowledgement should be send to the client, or $nil$ and an integer to send an error to the peer.
+
+\emph{Only supported since OpenSSL 1.0.0.}
+
\subsubsection[\fn{context:setTLSextStatusType}]{\fn{context:setTLSextStatusType($type$)}}
Sets the default TLS extension status for SSL objects derived from this context.
@@ -975,6 +991,26 @@ See \fn{ssl:getTLSextStatusType}
\emph{Only supported since OpenSSL 1.1.0.}
+\subsubsection[\fn{context:getTicketKeysLength}]{\fn{context:getTicketKeysLength()}}
+
+Returns the expected length of ticket keys data.
+See \fn{context:setTicketKeys}
+
+\emph{Only supported since OpenSSL 1.0.0.}
+
+\subsubsection[\fn{context:setTicketKeys}]{\fn{context:setTicketKeys($keys$)}}
+
+Sets the current random data used to generate tickets. $keys$ should be a string of the length returned by \fn{context:getTicketKeysLength}.
+
+\emph{Only supported since OpenSSL 1.0.0.}
+
+\subsubsection[\fn{context:getTicketKeys}]{\fn{context:getTicketKeys()}}
+
+Returns the current random data used to generate tickets.
+See \fn{context:setTicketKeys}
+
+\emph{Only supported since OpenSSL 1.0.0.}
+
\end{Module}