summaryrefslogtreecommitdiffstats
path: root/daemons/ipa-slapi-plugins
diff options
context:
space:
mode:
authorSimo Sorce <ssorce@redhat.com>2010-10-07 11:15:23 -0400
committerSimo Sorce <ssorce@redhat.com>2010-10-07 11:16:19 -0400
commitec33e38e9a44afcce8bb40043ccf1615f4f3b3fa (patch)
tree6b4a8411ee104fcba94e150931ce16ad0289ee80 /daemons/ipa-slapi-plugins
parent3e98d8ddadcdede663d38853f68fd605e2457b96 (diff)
downloadfreeipa-ec33e38e9a44afcce8bb40043ccf1615f4f3b3fa.tar.gz
freeipa-ec33e38e9a44afcce8bb40043ccf1615f4f3b3fa.tar.xz
freeipa-ec33e38e9a44afcce8bb40043ccf1615f4f3b3fa.zip
pwd-plugin: Fix unresolve symbol
This fixes a har crash when someone tries to fetch a keytab
Diffstat (limited to 'daemons/ipa-slapi-plugins')
-rw-r--r--daemons/ipa-slapi-plugins/ipa-pwd-extop/ipapwd.h1
-rw-r--r--daemons/ipa-slapi-plugins/ipa-pwd-extop/ipapwd_encoding.c3
2 files changed, 2 insertions, 2 deletions
diff --git a/daemons/ipa-slapi-plugins/ipa-pwd-extop/ipapwd.h b/daemons/ipa-slapi-plugins/ipa-pwd-extop/ipapwd.h
index 16e0efbe..0388f5d4 100644
--- a/daemons/ipa-slapi-plugins/ipa-pwd-extop/ipapwd.h
+++ b/daemons/ipa-slapi-plugins/ipa-pwd-extop/ipapwd.h
@@ -150,6 +150,7 @@ struct ipapwd_keyset {
int num_keys;
};
+void encode_int16(unsigned int val, unsigned char *p);
struct berval *encode_keys(struct ipapwd_keyset *kset);
void ipapwd_keyset_free(struct ipapwd_keyset **pkset);
diff --git a/daemons/ipa-slapi-plugins/ipa-pwd-extop/ipapwd_encoding.c b/daemons/ipa-slapi-plugins/ipa-pwd-extop/ipapwd_encoding.c
index f11efa3b..9c047b71 100644
--- a/daemons/ipa-slapi-plugins/ipa-pwd-extop/ipapwd_encoding.c
+++ b/daemons/ipa-slapi-plugins/ipa-pwd-extop/ipapwd_encoding.c
@@ -234,8 +234,7 @@ void ipapwd_keyset_free(struct ipapwd_keyset **pkset)
}
-
-static inline void encode_int16(unsigned int val, unsigned char *p)
+void encode_int16(unsigned int val, unsigned char *p)
{
p[1] = (val >> 8) & 0xff;
p[0] = (val ) & 0xff;