diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2010-11-03 16:54:44 +0100 |
---|---|---|
committer | Simo Sorce <ssorce@redhat.com> | 2010-11-22 16:01:35 -0500 |
commit | 7086c9e8635a47966a7222e8efa30e873f0c1d95 (patch) | |
tree | 3595ec278b93bd0c93ad428cf43f9ff427bf885a /daemons/ipa-slapi-plugins/ipa-pwd-extop/ipapwd_encoding.c | |
parent | 110397f05900e81321a18617c6292df7f742eafb (diff) | |
download | freeipa-7086c9e8635a47966a7222e8efa30e873f0c1d95.tar.gz freeipa-7086c9e8635a47966a7222e8efa30e873f0c1d95.tar.xz freeipa-7086c9e8635a47966a7222e8efa30e873f0c1d95.zip |
Silence compilation warnings in SLAPI plugins
Signed-off-by: Simo Sorce <ssorce@redhat.com>
Diffstat (limited to 'daemons/ipa-slapi-plugins/ipa-pwd-extop/ipapwd_encoding.c')
-rw-r--r-- | daemons/ipa-slapi-plugins/ipa-pwd-extop/ipapwd_encoding.c | 14 |
1 files changed, 14 insertions, 0 deletions
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 bba636773..6746d63b6 100644 --- a/daemons/ipa-slapi-plugins/ipa-pwd-extop/ipapwd_encoding.c +++ b/daemons/ipa-slapi-plugins/ipa-pwd-extop/ipapwd_encoding.c @@ -112,6 +112,20 @@ void krb5int_c_free_keyblock_contents(krb5_context context, */ +/* ascii hex output of bytes in "in" + * out len is 32 (preallocated) + * in len is 16 */ +static const char hexchars[] = "0123456789ABCDEF"; +static void hexbuf(char *out, const uint8_t *in) +{ + int i; + + for (i = 0; i < 16; i++) { + out[i*2] = hexchars[in[i] >> 4]; + out[i*2+1] = hexchars[in[i] & 0x0f]; + } +} + struct berval *encode_keys(struct ipapwd_keyset *kset) { BerElement *be = NULL; |