diff options
| author | william <william@25tandclement.com> | 2014-10-28 21:32:33 -0700 |
|---|---|---|
| committer | william <william@25tandclement.com> | 2014-10-28 21:32:33 -0700 |
| commit | 4231605183ac19c84fe6eb412c88915fa0ba12f3 (patch) | |
| tree | 6c8d2553f73b65828005ef1b41f8e0e62461998e | |
| parent | 1190066b6b3069f20878cf14985b1ffe55610dbe (diff) | |
| download | luaossl-deb-20141028-0.tar.gz luaossl-deb-20141028-0.tar.bz2 luaossl-deb-20141028-0.zip | |
update documentation for context.newdeb-20141028-0
| -rw-r--r-- | doc/luaossl.pdf | bin | 280561 -> 280959 bytes | |||
| -rw-r--r-- | doc/luaossl.tex | 24 |
2 files changed, 23 insertions, 1 deletions
diff --git a/doc/luaossl.pdf b/doc/luaossl.pdf index 1f9512a..e71002e 100644 --- a/doc/luaossl.pdf +++ b/doc/luaossl.pdf | |||
| Binary files differ | |||
diff --git a/doc/luaossl.tex b/doc/luaossl.tex index 16dffb3..d0bad06 100644 --- a/doc/luaossl.tex +++ b/doc/luaossl.tex | |||
| @@ -689,7 +689,29 @@ A table mapping OpenSSL named constants. The available constants are documented | |||
| 689 | 689 | ||
| 690 | \subsubsection[\fn{context.new}]{\fn{context.new([$protocol$][, $server$])}} | 690 | \subsubsection[\fn{context.new}]{\fn{context.new([$protocol$][, $server$])}} |
| 691 | 691 | ||
| 692 | Returns a new context object. $protocol$ is an optional string identifier selecting the SSL mode---``TLSv1'' (default), ``SSLv3'', ``SSLv23'', or ``SSLv2''. If $server$ is true, then SSL connections instantiated using this context will be placed into server mode, otherwise they behave as clients. | 692 | Returns a new context object. $protocol$ is an optional string identifier selecting the OpenSSL constructor, defaulting to ``TLS''. If $server$ is true, then SSL connections instantiated using this context will be placed into server mode, otherwise they behave as clients. |
| 693 | |||
| 694 | \begin{ctabular}{ c | p{14cm} } | ||
| 695 | \multicolumn{2}{c}{$protocol$ identifiers}\\\hline\hline | ||
| 696 | name & \href{https://www.openssl.org/docs/ssl/SSL_CTX_new.html}{description} \\\hline | ||
| 697 | TLS & Supports TLS 1.0 and above. Internally uses \fn{SSLv23\_method} and disables SSLv2 and | ||
| 698 | SSLv3 using \texttt{SSL\_OP\_NO\_SSLv2} and \texttt{SSL\_OP\_NO\_SSLv3}.\\ | ||
| 699 | |||
| 700 | SSL & Supports SSL 3.0 and above. Internally uses \fn{SSLv23\_method} and disables SSLv2 using \texttt{SSL\_OP\_NO\_SSLv2}.\\ | ||
| 701 | |||
| 702 | SSLv23 & A catchall for all versions of SSL/TLS supported by OpenSSL. Individual versions can be disabled using \method{context:setOptions}. Internally uses \fn{SSLv23\_method}.\\ | ||
| 703 | |||
| 704 | TLSv1\_2 & Supports \emph{only} TLS 1.2; \emph{not} anything lower \emph{or} higher. Internally uses \fn{TLSv1\_2\_method}.\\ | ||
| 705 | |||
| 706 | TLSv1\_1 & Supports \emph{only} TLS 1.1; \emph{not} anything lower \emph{or} higher. Internally uses \fn{TLSv1\_1\_method}.\\ | ||
| 707 | |||
| 708 | TLSv1 & Supports \emph{only} TLS 1.0; \emph{not} anything lower \emph{or} higher. Internally uses \fn{TLSv1\_method}.\\ | ||
| 709 | |||
| 710 | SSLv3 & Supports \emph{only} SSL 3.0; \emph{not} anything lower \emph{or} higher. Internally uses \fn{SSLv3\_method}.\\ | ||
| 711 | |||
| 712 | SSLv2 & Supports \emph{only} SSL 2.0; \emph{not} anything lower \emph{or} higher. Internally uses \fn{SSLv2\_method}. | ||
| 713 | \end{ctabular} | ||
| 714 | |||
| 693 | 715 | ||
| 694 | \subsubsection[\fn{context.interpose}]{\fn{context.interpose($name$, $function$)}} | 716 | \subsubsection[\fn{context.interpose}]{\fn{context.interpose($name$, $function$)}} |
| 695 | 717 | ||
