Fix signature of hdb_generate_key_set_password()

The change to the signature of hdb_generate_key_set_password() in
Heimdal 7.1 broke API/ABI compatibility with previous releases.  We
fix this by renaming it hdb_generate_key_set_password_with_ks_tuple()
and creating a new hdb_generate_key_set_password() which calls our
new function with zeroes for the added arguments.

Issue #246      https://github.com/heimdal/heimdal/issues/246
This commit is contained in:
Roland C. Dowdeswell
2017-01-25 20:50:24 -05:00
committed by Viktor Dukhovni
parent ae432b0264
commit 4303174a49
4 changed files with 26 additions and 11 deletions

View File

@@ -772,11 +772,12 @@ hdb_generate_key_set(krb5_context context, krb5_principal principal,
krb5_error_code
hdb_generate_key_set_password(krb5_context context,
krb5_principal principal,
const char *password,
krb5_key_salt_tuple *ks_tuple, int n_ks_tuple,
Key **keys, size_t *num_keys)
hdb_generate_key_set_password_with_ks_tuple(krb5_context context,
krb5_principal principal,
const char *password,
krb5_key_salt_tuple *ks_tuple,
int n_ks_tuple,
Key **keys, size_t *num_keys)
{
krb5_error_code ret;
size_t i;
@@ -809,3 +810,16 @@ hdb_generate_key_set_password(krb5_context context,
}
return ret;
}
krb5_error_code
hdb_generate_key_set_password(krb5_context context,
krb5_principal principal,
const char *password,
Key **keys, size_t *num_keys)
{
return hdb_generate_key_set_password_with_ks_tuple(context, principal,
password, NULL, 0,
keys, num_keys);
}