From 4d7b630992da3d0c646b27268a85e6e8c30eebfe Mon Sep 17 00:00:00 2001 From: Martin Babinsky Date: Fri, 22 May 2015 17:23:00 +0200 Subject: ipa-kdb: common function to get key encodings/salt types This patch moves duplicate code in `ipadb_get_connection` to get default and supported key encodings/salt types from Kerberos container to a common function handling this task. It is actually a small cosmetic enhancement of the fix of https://fedorahosted.org/freeipa/ticket/4914 Reviewed-By: Martin Basti --- daemons/ipa-kdb/ipa_kdb.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'daemons/ipa-kdb/ipa_kdb.h') diff --git a/daemons/ipa-kdb/ipa_kdb.h b/daemons/ipa-kdb/ipa_kdb.h index 3c6138599..4abb7335d 100644 --- a/daemons/ipa-kdb/ipa_kdb.h +++ b/daemons/ipa-kdb/ipa_kdb.h @@ -295,3 +295,6 @@ void ipadb_parse_user_auth(LDAP *lcontext, LDAPMessage *le, enum ipadb_user_auth *user_auth); const struct ipadb_global_config * ipadb_get_global_config(struct ipadb_context *ipactx); +int ipadb_get_enc_salt_types(struct ipadb_context *ipactx, LDAPMessage *entry, + char *attr, krb5_key_salt_tuple **enc_salt_types, + int *n_enc_salt_types); -- cgit