Signed-off-by: Pavel Filipenský <pfilipensky@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
}
#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);
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.
krb5_get_prompt_types
krb5_mk_req_extended krb5_kt_compare
krb5_free_enctypes
+ krb5_free_string
''',
lib='krb5 k5crypto',
headers='krb5.h')