lib/krb5_wrap: use krb5_const_principal in smb_krb5_create_key_from_string.
[kai/samba-autobuild/.git] / lib / krb5_wrap / krb5_samba.h
index 51fd4cfd6442a432b31c315667a6920c609a1c7c..9eae8f056568725db4299e148ab2fd079476e03f 100644 (file)
@@ -161,7 +161,6 @@ bool smb_krb5_principal_compare_any_realm(krb5_context context,
                                          krb5_const_principal princ1,
                                          krb5_const_principal princ2);
 krb5_error_code smb_krb5_renew_ticket(const char *ccache_string, const char *client_string, const char *service_string, time_t *expire_time);
-krb5_error_code kpasswd_err_to_krb5_err(krb5_error_code res_code);
 krb5_error_code smb_krb5_gen_netbios_krb5_address(smb_krb5_addresses **kerb_addr,
                                                  const char *netbios_name);
 krb5_error_code smb_krb5_free_addresses(krb5_context context, smb_krb5_addresses *addr);
@@ -314,7 +313,7 @@ int smb_krb5_get_pw_salt(krb5_context context,
                         krb5_data *psalt);
 
 int smb_krb5_create_key_from_string(krb5_context context,
-                                   krb5_principal *host_princ,
+                                   krb5_const_principal host_princ,
                                    krb5_data *salt,
                                    krb5_data *password,
                                    krb5_enctype enctype,
@@ -342,6 +341,10 @@ krb5_error_code krb5_copy_data_contents(krb5_data *p,
 int smb_krb5_principal_get_type(krb5_context context,
                                krb5_const_principal principal);
 
+#if !defined(HAVE_KRB5_WARNX)
+krb5_error_code krb5_warnx(krb5_context context, const char *fmt, ...);
+#endif
+
 #endif /* HAVE_KRB5 */
 
 int cli_krb5_get_ticket(TALLOC_CTX *mem_ctx,