mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
krb5_wrap: add krb5_free_string()
Signed-off-by: Pavel Filipenský <pfilipensky@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
parent
75139445c2
commit
c5778a0fbd
@ -120,6 +120,12 @@ void krb5_free_enctypes(krb5_context context, krb5_enctype *val) {
|
||||
}
|
||||
#endif
|
||||
|
||||
#if !defined(HAVE_KRB5_FREE_STRING)
|
||||
void krb5_free_string(krb5_context context, char *val) {
|
||||
SAFE_FREE(val);
|
||||
}
|
||||
#endif
|
||||
|
||||
#if defined(HAVE_KRB5_PRINCIPAL_GET_COMP_STRING) && !defined(HAVE_KRB5_PRINC_COMPONENT)
|
||||
const krb5_data *krb5_princ_component(krb5_context context,
|
||||
krb5_principal principal, int i);
|
||||
|
@ -174,6 +174,10 @@ void krb5_free_unparsed_name(krb5_context ctx, char *val);
|
||||
void krb5_free_enctypes(krb5_context context, krb5_enctype *val);
|
||||
#endif
|
||||
|
||||
#if !defined(HAVE_KRB5_FREE_STRING)
|
||||
void krb5_free_string(krb5_context context, char *val);
|
||||
#endif
|
||||
|
||||
/* Stub out initialize_krb5_error_table since it is not present in all
|
||||
* Kerberos implementations. If it's not present, it's not necessary to
|
||||
* call it.
|
||||
|
@ -171,6 +171,7 @@ conf.CHECK_FUNCS('''
|
||||
krb5_get_prompt_types
|
||||
krb5_mk_req_extended krb5_kt_compare
|
||||
krb5_free_enctypes
|
||||
krb5_free_string
|
||||
''',
|
||||
lib='krb5 k5crypto',
|
||||
headers='krb5.h')
|
||||
|
Loading…
Reference in New Issue
Block a user