From 505bc85ec31ad8cfa66be0dc99d19599cd1a9497 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Fri, 6 Jul 2012 11:15:15 -0400 Subject: 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. --- util/ipa_krb5.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'util/ipa_krb5.h') diff --git a/util/ipa_krb5.h b/util/ipa_krb5.h index 97ffc47b5..7fb035572 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, -- cgit