diff options
Diffstat (limited to 'doc/luaossl.tex')
| -rw-r--r-- | doc/luaossl.tex | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/doc/luaossl.tex b/doc/luaossl.tex index b52026d..b7b8c15 100644 --- a/doc/luaossl.tex +++ b/doc/luaossl.tex | |||
| @@ -487,6 +487,10 @@ Returns the public key component as an \module{openssl.pkey} object. | |||
| 487 | 487 | ||
| 488 | Sets the public key component referenced by the \module{openssl.pkey} object $key$. | 488 | Sets the public key component referenced by the \module{openssl.pkey} object $key$. |
| 489 | 489 | ||
| 490 | \subsubsection[\fn{x509:getPublicKeyDigest}]{\fn{x509:getPublicKeyDigest([$type$])}} | ||
| 491 | |||
| 492 | Returns the digest of the public key as a binary string. $type$ is an optional string describing the digest type, and defaults to ``sha1''. | ||
| 493 | |||
| 490 | \subsubsection[\fn{x509:sign}]{\fn{x509:sign($key$ [, $type$])}} | 494 | \subsubsection[\fn{x509:sign}]{\fn{x509:sign($key$ [, $type$])}} |
| 491 | 495 | ||
| 492 | Signs and updates the instance certificate using the \module{openssl.pkey} $key$. $type$ is an optional string describing the digest type. See \module{pkey:sign}, regarding which types of digests are valid. If $type$ is omitted than a default type is used---``sha1'' for RSA keys, ``dss1'' for DSA keys, and ``ecdsa-with-SHA1'' for EC keys. | 496 | Signs and updates the instance certificate using the \module{openssl.pkey} $key$. $type$ is an optional string describing the digest type. See \module{pkey:sign}, regarding which types of digests are valid. If $type$ is omitted than a default type is used---``sha1'' for RSA keys, ``dss1'' for DSA keys, and ``ecdsa-with-SHA1'' for EC keys. |
| @@ -694,22 +698,25 @@ Returns a new context object. $protocol$ is an optional string identifier select | |||
| 694 | \begin{ctabular}{ c | p{14cm} } | 698 | \begin{ctabular}{ c | p{14cm} } |
| 695 | \multicolumn{2}{c}{$protocol$ identifiers}\\\hline\hline | 699 | \multicolumn{2}{c}{$protocol$ identifiers}\\\hline\hline |
| 696 | name & \href{https://www.openssl.org/docs/ssl/SSL_CTX_new.html}{description} \\\hline | 700 | 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 | 701 | TLS & Supports TLS 1.0 \emph{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}.\\ | 702 | SSLv3 using \texttt{SSL\_OP\_NO\_SSLv2} and \texttt{SSL\_OP\_NO\_SSLv3}.\\ |
| 699 | 703 | ||
| 700 | SSL & Supports SSL 3.0 and above. Internally uses \fn{SSLv23\_method} and disables SSLv2 using \texttt{SSL\_OP\_NO\_SSLv2}.\\ | 704 | SSL & Supports SSL 3.0 \emph{and above}. Internally uses \fn{SSLv23\_method} and disables SSLv2 using \texttt{SSL\_OP\_NO\_SSLv2}.\\ |
| 701 | 705 | ||
| 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}.\\ | 706 | 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 | 707 | ||
| 704 | TLSv1\_2 & Supports \emph{only} TLS 1.2; \emph{not} anything lower \emph{or} higher. Internally uses \fn{TLSv1\_2\_method}.\\ | 708 | TLSv1\_2 & Supports \emph{only} TLS 1.2. Internally uses \fn{TLSv1\_2\_method}.\\ |
| 705 | 709 | ||
| 706 | TLSv1\_1 & Supports \emph{only} TLS 1.1; \emph{not} anything lower \emph{or} higher. Internally uses \fn{TLSv1\_1\_method}.\\ | 710 | TLSv1\_1 & Supports \emph{only} TLS 1.1. Internally uses \fn{TLSv1\_1\_method}.\\ |
| 707 | 711 | ||
| 708 | TLSv1 & Supports \emph{only} TLS 1.0; \emph{not} anything lower \emph{or} higher. Internally uses \fn{TLSv1\_method}.\\ | 712 | TLSv1 & Supports \emph{only} TLS 1.0. Internally uses \fn{TLSv1\_method}.\\ |
| 709 | 713 | ||
| 710 | SSLv3 & Supports \emph{only} SSL 3.0; \emph{not} anything lower \emph{or} higher. Internally uses \fn{SSLv3\_method}.\\ | 714 | SSLv3 & Supports \emph{only} SSL 3.0. Internally uses \fn{SSLv3\_method}.\\ |
| 711 | 715 | ||
| 712 | SSLv2 & Supports \emph{only} SSL 2.0; \emph{not} anything lower \emph{or} higher. Internally uses \fn{SSLv2\_method}. | 716 | SSLv2 & Supports \emph{only} SSL 2.0. Internally uses \fn{SSLv2\_method}. \\ |
| 717 | DTLS & Supports DTLS 1.0 \emph{and above}. Internally uses \fn{DTLS\_method}. \\ | ||
| 718 | DTLSv1 & Supports \emph{only} DTLS 1.0. Internally uses \fn{DTLSv1\_method}. \\ | ||
| 719 | DTLSv1\_2 & Supports \emph{only} DTLS 1.2. Internally uses \fn{DTLSv1\_2\_method}. | ||
| 713 | \end{ctabular} | 720 | \end{ctabular} |
| 714 | 721 | ||
| 715 | 722 | ||
