even more bits, not done yet
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15863 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -38,12 +38,24 @@ RCSID("$Id$");
|
|||||||
|
|
||||||
static void
|
static void
|
||||||
test_dh2key(krb5_context context,
|
test_dh2key(krb5_context context,
|
||||||
const heim_octet_string *K,
|
const heim_octet_string *dh,
|
||||||
const heim_octet_string *c_n,
|
const heim_octet_string *c_n,
|
||||||
const heim_octet_string *k_n,
|
const heim_octet_string *k_n,
|
||||||
krb5_enctype etype)
|
krb5_enctype etype)
|
||||||
{
|
{
|
||||||
return;
|
krb5_error_code ret;
|
||||||
|
krb5_keyblock key;
|
||||||
|
|
||||||
|
|
||||||
|
ret = _krb5_pk_octetstring2key(context,
|
||||||
|
etype,
|
||||||
|
dh->data, dh->length,
|
||||||
|
c_n,
|
||||||
|
k_n,
|
||||||
|
&key);
|
||||||
|
if (ret != 0)
|
||||||
|
krb5_err(context, 1, ret, "_krb5_pk_octetstring2key");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -101,7 +113,8 @@ main(int argc, char **argv)
|
|||||||
errx (1, "krb5_init_context failed: %d", ret);
|
errx (1, "krb5_init_context failed: %d", ret);
|
||||||
|
|
||||||
for (i = 0; i < sizeof(enctypes)/sizeof(enctypes[0]); i++) {
|
for (i = 0; i < sizeof(enctypes)/sizeof(enctypes[0]); i++) {
|
||||||
test_dh2key(context, NULL, NULL, NULL, enctypes[i]);
|
krb5_data d = { 0, NULL };
|
||||||
|
test_dh2key(context, &d, NULL, NULL, enctypes[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
krb5_free_context(context);
|
krb5_free_context(context);
|
||||||
|
Reference in New Issue
Block a user