diff options
-rw-r--r-- | doc/luaossl.pdf | bin | 286521 -> 287875 bytes | |||
-rw-r--r-- | doc/luaossl.tex | 32 |
2 files changed, 32 insertions, 0 deletions
diff --git a/doc/luaossl.pdf b/doc/luaossl.pdf index a253cff..a9d03ad 100644 --- a/doc/luaossl.pdf +++ b/doc/luaossl.pdf | |||
Binary files differ | |||
diff --git a/doc/luaossl.tex b/doc/luaossl.tex index 96a966c..80e7a78 100644 --- a/doc/luaossl.tex +++ b/doc/luaossl.tex | |||
@@ -217,6 +217,38 @@ Install Lua 5.3 module. | |||
217 | 217 | ||
218 | \section{Modules} | 218 | \section{Modules} |
219 | 219 | ||
220 | \begin{Module}{openssl} | ||
221 | |||
222 | Binds various global interfaces, including version and build information. | ||
223 | |||
224 | \subsubsection[\fn{openssl[]}]{\fn{openssl[]}} | ||
225 | |||
226 | Table of various compile-time constant values. See also \fn{openssl.version}. | ||
227 | |||
228 | \begin{ctabular}{ c | p{12cm} } | ||
229 | name & description \\\hline | ||
230 | \small{\texttt{SSLEAY\_VERSION\_NUMBER}} & OpenSSL version as an integer. \\ | ||
231 | \small{\texttt{LIBRESSL\_VERSION\_NUMBER}} & LibreSSL version as an integer. \\ | ||
232 | \small{\texttt{NO\_[feature]}} & If defined, signals that this installation of OpenSSL was compiled without [feature]. \\ | ||
233 | \end{ctabular} | ||
234 | |||
235 | |||
236 | \subsubsection[\fn{openssl.version}]{\fn{openssl.version($info$)}} | ||
237 | |||
238 | Returns information about the run-time version of OpenSSL, as opposed to the compile-time version used to build the Lua module. If $info$ is not specified, returns the version number as an integer. Otherwise, $info$ may be one of the following constants. | ||
239 | |||
240 | \begin{ctabular}{ c | p{12cm} } | ||
241 | name & description \\\hline | ||
242 | \small{\texttt{SSLEAY\_VERSION}} & OpenSSL version description as a string. \\ | ||
243 | \small{\texttt{SSLEAY\_CFLAGS}} & Description of compiler flags used to build OpenSSL as a string. \\ | ||
244 | \small{\texttt{SSLEAY\_BUILT\_ON}} & Compilation date description as a string. \\ | ||
245 | \small{\texttt{SSLEAY\_PLATFORM}} & Platform description as a string. \\ | ||
246 | \small{\texttt{SSLEAY\_DIR}} & OpenSSL installation directory description as a string. \\ | ||
247 | \end{ctabular} | ||
248 | |||
249 | \end{Module} | ||
250 | |||
251 | |||
220 | \begin{Module}{openssl.bignum} | 252 | \begin{Module}{openssl.bignum} |
221 | 253 | ||
222 | \module{openssl.bignum} binds OpenSSL's libcrypto bignum library. It supports all the standard arithmetic operations. Regular number operands in a mixed arithmetic expression are upgraded as-if \method{bignum.new} was used explicitly. The \fn{\_\_tostring} metamethod generates a decimal encoded represention. | 254 | \module{openssl.bignum} binds OpenSSL's libcrypto bignum library. It supports all the standard arithmetic operations. Regular number operands in a mixed arithmetic expression are upgraded as-if \method{bignum.new} was used explicitly. The \fn{\_\_tostring} metamethod generates a decimal encoded represention. |