aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/luaossl.pdfbin287875 -> 288460 bytes
-rw-r--r--doc/luaossl.tex16
2 files changed, 12 insertions, 4 deletions
diff --git a/doc/luaossl.pdf b/doc/luaossl.pdf
index a9d03ad..0823b81 100644
--- a/doc/luaossl.pdf
+++ b/doc/luaossl.pdf
Binary files differ
diff --git a/doc/luaossl.tex b/doc/luaossl.tex
index 80e7a78..de461ba 100644
--- a/doc/luaossl.tex
+++ b/doc/luaossl.tex
@@ -530,9 +530,13 @@ Sets the basic constraints critical flag.
Adds a copy of the \module{x509.extension} object to the certificate.
-\subsubsection[\fn{x509:getExtension}]{\fn{x509:getExtension($name$)}}
+\subsubsection[\fn{x509:getExtension}]{\fn{x509:getExtension($key$)}}
-Returns a copy of the \module{x509.extension} object identified by $name$, where $name$ is a plain text string of the OID, long name, or short name. Returns $nil$ if no such extension was found.
+Returns a copy of the \module{x509.extension} object identified by $key$ where $key$ is the plain text string of the OID, long name, or short name; or the integer index (1-based) of the extension. Returns nothing if no such extension was found by that name or at that index.
+
+\subsubsection[\fn{x509:getExtensionCount}]{\fn{x509:getExtensionCount()}}
+
+Returns the integer count of the number of extensions.
\subsubsection[\fn{x509:isIssuedBy}]{\fn{x509:isIssuedBy($issuer$)}}
@@ -664,9 +668,13 @@ Add the certificate identified by $serial$ to the revocation list. $serial$ shou
Adds a copy of the \module{x509.extension} object to the revocation list.
-\subsubsection[\fn{crl:getExtension}]{\fn{crl:getExtension($name$)}}
+\subsubsection[\fn{crl:getExtension}]{\fn{crl:getExtension($key$)}}
+
+Returns a copy of the \module{x509.extension} object identified by $key$ where $key$ is the plain text string of the OID, long name, or short name; or the integer index (1-based) of the extension. Returns nothing if no such extension was found by that name or at that index.
+
+\subsubsection[\fn{crl:getExtensionCount}]{\fn{crl:getExtensionCount()}}
-Returns a copy of the \module{x509.extension} object identified by $name$, where $name$ is a plain text string of the OID, long name, or short name. Returns $nil$ if no such extension was found.
+Returns the integer count of the number of extensions.
\subsubsection[\fn{crl:sign}]{\fn{crl:sign($key$)}}