]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
gnutls_pkcs11_obj_get_exts: updated documentation
authorNikos Mavrogiannopoulos <nmav@redhat.com>
Mon, 2 May 2016 13:36:37 +0000 (15:36 +0200)
committerNikos Mavrogiannopoulos <nmav@redhat.com>
Mon, 2 May 2016 13:39:58 +0000 (15:39 +0200)
lib/pkcs11x.c

index ddffa8ee23156fbb6c401bc56774b4cb5ba77414..19c202067fff974e1d48a761243121a8dbdf9132 100644 (file)
@@ -229,16 +229,19 @@ find_ext_cb(struct ck_function_list *module, struct pkcs11_session_info *sinfo,
 }
 
 /**
- * gnutls_pkcs11_obj_get_ext:
+ * gnutls_pkcs11_obj_get_exts:
  * @obj: should contain a #gnutls_pkcs11_obj_t type
- * @exts: an allocated list of pointers to %gnutls_x509_ext_st
- * @exts_size: the number of @exts
+ * @exts: a pointer to a %gnutls_x509_ext_st pointer
+ * @exts_size: will be updated with the number of @exts
  * @flags: Or sequence of %GNUTLS_PKCS11_OBJ_* flags 
  *
  * This function will return information about attached extensions
  * that associate to the provided object (which should be a certificate).
  * The extensions are the attached p11-kit trust module extensions.
  *
+ * Each element of @exts must be deinitialized using gnutls_x509_ext_deinit()
+ * while @exts should be deallocated using gnutls_free().
+ *
  * Returns: %GNUTLS_E_SUCCESS (0) on success or a negative error code on error.
  *
  * Since: 3.3.8