aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorLibravatarLibravatar william <william+macosx@25thandclement.com> 2015-06-04 18:32:56 -0700
committerLibravatarLibravatar william <william+macosx@25thandclement.com> 2015-06-04 18:32:56 -0700
commit0d7b80596ca242ec7476a27c0c3f1bc045f3e016 (patch)
treee7af7216caa8cd0bc558fb0d996bd666c154982f /doc
parent5fa11721a7b3dddf5a7e41a164428749a60b7c44 (diff)
downloadluaossl-0d7b80596ca242ec7476a27c0c3f1bc045f3e016.tar.gz
luaossl-0d7b80596ca242ec7476a27c0c3f1bc045f3e016.tar.bz2
luaossl-0d7b80596ca242ec7476a27c0c3f1bc045f3e016.zip
document new modes to x509:getExtension and crl:getExtension, and new x509:getExtensionCount and crl:getExtensionCount methods
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$)}}