]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
gnutls_x509_crt_get_extension_oid: Doc fix.
authorSimon Josefsson <simon@josefsson.org>
Sun, 8 Jun 2008 20:12:56 +0000 (22:12 +0200)
committerSimon Josefsson <simon@josefsson.org>
Sun, 8 Jun 2008 20:12:56 +0000 (22:12 +0200)
Reported by Sam Varshavchik <mrsam@courier-mta.com>.

NEWS
lib/x509/x509.c

diff --git a/NEWS b/NEWS
index d426060963661be4aa96ac1a695b3c24ae67e8b1..973345f311747c2dd5b558f851d294c347fef9a4 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -11,6 +11,9 @@ Earlier it may have failed with an unresolved reference to strlen.
 ** Changed OpenPGP verification behaviour. An OpenPGP certificate
 is now only considered verified if all the user IDs are verified.
 
+** Doc fix for gnutls_x509_crt_get_extension_oid.
+Reported by Sam Varshavchik <mrsam@courier-mta.com>.
+
 ** API and ABI modifications:
 No changes since last version.
 
index dc131d40f707d17ac9d01557b07162c277e66da9..21287b80606a8b17a23e3493c6ccca1271e5db3f 100644 (file)
@@ -1574,7 +1574,8 @@ gnutls_x509_crt_get_extension_oid (gnutls_x509_crt_t cert, int indx,
  * @cert: should contain a #gnutls_x509_crt_t structure
  * @indx: Specifies which extension OID to send. Use zero to get the first one.
  * @oid: a pointer to a structure to hold the OID
- * @sizeof_oid: initially holds the size of @oid
+ * @sizeof_oid: initially holds the maximum size of @oid, on return
+ *   holds actual size of @oid.
  * @critical: output variable with critical flag, may be NULL.
  *
  * This function will return the requested extension OID in the
@@ -1582,6 +1583,10 @@ gnutls_x509_crt_get_extension_oid (gnutls_x509_crt_t cert, int indx,
  * be stored as a string in the provided buffer.  Use
  * gnutls_x509_crt_get_extension_data() to extract the data.
  *
+ * If the buffer provided is not long enough to hold the output, then
+ * *@sizeof_oid is updated and %GNUTLS_E_SHORT_MEMORY_BUFFER will be
+ * returned.
+
  * Return 0 on success.  A negative value may be returned in case of
  * parsing error.  If you have reached the last extension available
  * GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE will be returned.