Skip to content

Commit

Permalink
Make krb5_get_default_config_files() public
Browse files Browse the repository at this point in the history
Add krb5_get_default_config_files() to the public API; it was already
in the library escort list and the DLL export list.  Also add
krb5_free_config_files().

ticket: 9130
  • Loading branch information
greghudson committed Jul 8, 2024
1 parent e688903 commit 73ff07a
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 4 deletions.
2 changes: 2 additions & 0 deletions doc/appdev/refs/api/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ Frequently used public interfaces
krb5_change_password.rst
krb5_chpw_message.rst
krb5_expand_hostname.rst
krb5_free_config_files.rst
krb5_free_context.rst
krb5_free_error_message.rst
krb5_free_principal.rst
Expand All @@ -33,6 +34,7 @@ Frequently used public interfaces
krb5_get_error_message.rst
krb5_get_host_realm.rst
krb5_get_credentials.rst
krb5_get_default_config_files.rst
krb5_get_fallback_host_realm.rst
krb5_get_init_creds_keytab.rst
krb5_get_init_creds_opt_alloc.rst
Expand Down
4 changes: 0 additions & 4 deletions src/include/k5-int.h
Original file line number Diff line number Diff line change
Expand Up @@ -2143,10 +2143,6 @@ void KRB5_CALLCONV krb5_free_tkt_authent(krb5_context, krb5_tkt_authent *);
void KRB5_CALLCONV krb5_free_enc_data(krb5_context, krb5_enc_data *);
krb5_error_code krb5_set_config_files(krb5_context, const char **);

krb5_error_code KRB5_CALLCONV krb5_get_default_config_files(char ***filenames);

void KRB5_CALLCONV krb5_free_config_files(char **filenames);

krb5_error_code krb5_rd_req_decoded(krb5_context, krb5_auth_context *,
const krb5_ap_req *, krb5_const_principal,
krb5_keytab, krb5_flags *, krb5_ticket **);
Expand Down
27 changes: 27 additions & 0 deletions src/include/krb5/krb5.hin
Original file line number Diff line number Diff line change
Expand Up @@ -2935,6 +2935,33 @@ krb5_free_context(krb5_context context);
krb5_error_code KRB5_CALLCONV
krb5_copy_context(krb5_context ctx, krb5_context *nctx_out);

/**
* Return a list of default configuration filenames
*
* @param [out] filenames Configuration filename list
*
* Fill in @a filenames with a null-terminated list of configuration files
* which will be read by krb5_init_context() in the current process
* environment.
*
* Use krb5_free_config_files() to free @a filenames when it is no longer
* needed.
*
* @version New in 1.22
*/
krb5_error_code KRB5_CALLCONV
krb5_get_default_config_files(char ***filenames);

/**
* Free a list allocated by krb5_get_default_config_files()
*
* @param [in] filenames Configuration filename list
*
* @version New in 1.22
*/
void KRB5_CALLCONV
krb5_free_config_files(char **filenames);

/**
* Set default TGS encryption types in a krb5_context structure.
*
Expand Down

0 comments on commit 73ff07a

Please sign in to comment.