diff options
author | Greg Hudson <ghudson@mit.edu> | 2013-04-01 13:25:33 -0400 |
---|---|---|
committer | Greg Hudson <ghudson@mit.edu> | 2013-04-01 13:25:33 -0400 |
commit | f9c5d2277c23e40b2e929cef6e4654113b66da68 (patch) | |
tree | 00d2e3882db74ca5cb11b4e9a31b5a8408eac9a2 /src/include/krb5/krb5.hin | |
parent | f43dfa88148724fb8a9543015c69fa1b2b24bb66 (diff) | |
download | krb5-f9c5d2277c23e40b2e929cef6e4654113b66da68.tar.gz krb5-f9c5d2277c23e40b2e929cef6e4654113b66da68.tar.xz krb5-f9c5d2277c23e40b2e929cef6e4654113b66da68.zip |
Add krb5_kt_dup API and use it in two places
Add an API to duplicate keytab handles, mirroring krb5_cc_dup. Use it
to simplify the krb5 GSS acquire_cred code.
ticket: 7599 (new)
Diffstat (limited to 'src/include/krb5/krb5.hin')
-rw-r--r-- | src/include/krb5/krb5.hin | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/include/krb5/krb5.hin b/src/include/krb5/krb5.hin index e0c6f12396..97810b5c8f 100644 --- a/src/include/krb5/krb5.hin +++ b/src/include/krb5/krb5.hin @@ -4188,6 +4188,21 @@ krb5_error_code KRB5_CALLCONV krb5_kt_resolve(krb5_context context, const char *name, krb5_keytab *ktid); /** + * Duplicate keytab handle. + * + * @param [in] context Library context + * @param [in] in Key table handle to be duplicated + * @param [out] out Key table handle + * + * Create a new handle referring to the same key table as @a in. The new + * handle and @a in can be closed independently. + * + * @version New in 1.12 + */ +krb5_error_code KRB5_CALLCONV +krb5_kt_dup(krb5_context context, krb5_keytab in, krb5_keytab *out); + +/** * Get the default key table name. * * @param [in] context Library context |