diff options
author | Simo Sorce <ssorce@redhat.com> | 2012-07-06 11:15:15 -0400 |
---|---|---|
committer | Simo Sorce <ssorce@redhat.com> | 2012-07-30 10:31:47 -0400 |
commit | 505bc85ec31ad8cfa66be0dc99d19599cd1a9497 (patch) | |
tree | 9a3fef5fbf3af690b156b5d8cca82489bfc0c993 /util/ipa_krb5.h | |
parent | 03837bfd6dbf7fd1eaa437da22807d7061b99af7 (diff) | |
download | freeipa-505bc85ec31ad8cfa66be0dc99d19599cd1a9497.tar.gz freeipa-505bc85ec31ad8cfa66be0dc99d19599cd1a9497.tar.xz freeipa-505bc85ec31ad8cfa66be0dc99d19599cd1a9497.zip |
Move code into common krb5 utils
This moves the decoding function that reads the keys from the ber format
into a structure in the common krb5 util code right below the function
that encodes the same data structure into a ber format.
This way the 2 functions are in the same place and can be both used by
all ia components.
Diffstat (limited to 'util/ipa_krb5.h')
-rw-r--r-- | util/ipa_krb5.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/util/ipa_krb5.h b/util/ipa_krb5.h index 97ffc47b..7fb03557 100644 --- a/util/ipa_krb5.h +++ b/util/ipa_krb5.h @@ -49,6 +49,8 @@ void ipa_krb5_free_key_data(krb5_key_data *keys, int num_keys); int ber_encode_krb5_key_data(krb5_key_data *data, int numk, int mkvno, struct berval **encoded); +int ber_decode_krb5_key_data(struct berval *encoded, int *m_kvno, + int *numk, krb5_key_data **data); krb5_error_code parse_bval_key_salt_tuples(krb5_context kcontext, const char * const *vals, |