summaryrefslogtreecommitdiffstats
path: root/daemons/ipa-kdb/ipa_kdb.h
diff options
context:
space:
mode:
authorMartin Babinsky <mbabinsk@redhat.com>2015-05-22 17:23:00 +0200
committerPetr Vobornik <pvoborni@redhat.com>2015-06-29 17:15:00 +0200
commit4d7b630992da3d0c646b27268a85e6e8c30eebfe (patch)
tree320a27df3f29f4227397dcf41ccec31b4f932a5f /daemons/ipa-kdb/ipa_kdb.h
parent7f923f922a28aa34eb6ee3b0e94c1cba223d285c (diff)
downloadfreeipa-4d7b630992da3d0c646b27268a85e6e8c30eebfe.tar.gz
freeipa-4d7b630992da3d0c646b27268a85e6e8c30eebfe.tar.xz
freeipa-4d7b630992da3d0c646b27268a85e6e8c30eebfe.zip
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 <mbasti@redhat.com>
Diffstat (limited to 'daemons/ipa-kdb/ipa_kdb.h')
-rw-r--r--daemons/ipa-kdb/ipa_kdb.h3
1 files changed, 3 insertions, 0 deletions
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);