]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Clarify krb5_kt_resolve() API documentation 554/head
authorGreg Hudson <ghudson@mit.edu>
Fri, 7 Oct 2016 15:23:02 +0000 (11:23 -0400)
committerGreg Hudson <ghudson@mit.edu>
Tue, 25 Oct 2016 15:28:22 +0000 (11:28 -0400)
Explicitly say to use krb5_kt_close() like we do for most other
allocating API calls.  Note the default type.  Instead of saying "The
key table is not opened," say that the keytab file for FILE keytabs is
not opened by this call.

ticket: 8508 (new)
target_version: 1.14-next
target_version: 1.15-next
tags: pullup

src/include/krb5/krb5.hin

index 64b0d0fb74fc84ef9036363ba8da46dc478a65c7..4ed4d3587b346759e7c86870025d40a0a55d3c6f 100644 (file)
@@ -4213,13 +4213,14 @@ krb5_524_convert_creds(krb5_context context, krb5_creds *v5creds,
  * @param [out] ktid            Key table handle
  *
  * Resolve the key table name @a name and set @a ktid to a handle identifying
- * the key table.  The key table is not opened.
+ * the key table.  Use krb5_kt_close() to free @a ktid when it is no longer
+ * needed.
  *
- * @note @a name must be of the form @c type:residual, where @a type must be a
- * type known to the library and @a residual portion should be specific to the
- * particular keytab type.
+ * @a name must be of the form @c type:residual, where @a type must be a type
+ * known to the library and @a residual portion should be specific to the
+ * particular keytab type.  If no @a type is given, the default is @c FILE.
  *
- * @sa krb5_kt_close()
+ * If @a name is of type @c FILE, the keytab file is not opened by this call.
  *
  * @code
  *  Example: krb5_kt_resolve(context, "FILE:/tmp/filename", &ktid);