From 0d7b80596ca242ec7476a27c0c3f1bc045f3e016 Mon Sep 17 00:00:00 2001
From: william <william+macosx@25thandclement.com>
Date: Thu, 4 Jun 2015 18:32:56 -0700
Subject: document new modes to x509:getExtension and crl:getExtension, and new
 x509:getExtensionCount and crl:getExtensionCount methods

---
 doc/luaossl.tex | 16 ++++++++++++----
 1 file changed, 12 insertions(+), 4 deletions(-)

(limited to 'doc/luaossl.tex')

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$)}}
 
-- 
cgit v1.2.3-55-g6feb

