summaryrefslogtreecommitdiffstats
path: root/daemons/ipa-slapi-plugins/ipa-pwd-extop/ipapwd_common.c
diff options
context:
space:
mode:
authorSimo Sorce <ssorce@redhat.com>2011-06-20 09:23:37 -0400
committerSimo Sorce <ssorce@redhat.com>2011-08-26 08:24:49 -0400
commitb4aab3d98d68bfa79323b216320b1d3dcc1941c9 (patch)
treec70d1cd61befcc8ea15df869abc86f7d5c7ea99b /daemons/ipa-slapi-plugins/ipa-pwd-extop/ipapwd_common.c
parent672035cbbac649b74cbe2d8396466d18e3e81130 (diff)
downloadfreeipa.git-b4aab3d98d68bfa79323b216320b1d3dcc1941c9.tar.gz
freeipa.git-b4aab3d98d68bfa79323b216320b1d3dcc1941c9.tar.xz
freeipa.git-b4aab3d98d68bfa79323b216320b1d3dcc1941c9.zip
ipa-pwd-extop: Use common krb5 structs from kdb.h
This removes custom structures and allows easier sharing of code with ipa-kdb
Diffstat (limited to 'daemons/ipa-slapi-plugins/ipa-pwd-extop/ipapwd_common.c')
-rw-r--r--daemons/ipa-slapi-plugins/ipa-pwd-extop/ipapwd_common.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/daemons/ipa-slapi-plugins/ipa-pwd-extop/ipapwd_common.c b/daemons/ipa-slapi-plugins/ipa-pwd-extop/ipapwd_common.c
index a4b4eb6a..93461e68 100644
--- a/daemons/ipa-slapi-plugins/ipa-pwd-extop/ipapwd_common.c
+++ b/daemons/ipa-slapi-plugins/ipa-pwd-extop/ipapwd_common.c
@@ -69,15 +69,15 @@ static const char *ipapwd_def_encsalts[] = {
static int new_ipapwd_encsalt(krb5_context krbctx,
const char * const *encsalts,
- struct ipapwd_encsalt **es_types,
+ krb5_key_salt_tuple **es_types,
int *num_es_types)
{
- struct ipapwd_encsalt *es;
+ krb5_key_salt_tuple *es;
int nes, i;
int rc;
for (i = 0; encsalts[i]; i++) /* count */ ;
- es = calloc(i + 1, sizeof(struct ipapwd_encsalt));
+ es = calloc(i + 1, sizeof(krb5_key_salt_tuple));
if (!es) {
LOG_OOM();
rc = LDAP_OPERATIONS_ERROR;
@@ -116,16 +116,16 @@ static int new_ipapwd_encsalt(krb5_context krbctx,
krberr = krb5_string_to_salttype(salt, &tmpsalt);
for (j = 0; j < nes; j++) {
- krb5_c_enctype_compare(krbctx, es[j].enc_type, tmpenc, &similar);
- if (similar && (es[j].salt_type == tmpsalt)) {
+ krb5_c_enctype_compare(krbctx, es[j].ks_enctype, tmpenc, &similar);
+ if (similar && (es[j].ks_salttype == tmpsalt)) {
break;
}
}
if (j == nes) {
/* not found */
- es[j].enc_type = tmpenc;
- es[j].salt_type = tmpsalt;
+ es[j].ks_enctype = tmpenc;
+ es[j].ks_salttype = tmpsalt;
nes++;
}