use oid variable

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25233 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2009-05-28 01:17:31 +00:00
parent 0e6b5c5c22
commit a63aa6e262

View File

@@ -39,7 +39,7 @@
static int verbose_flag = 0;
struct testcase {
const heim_oid *(*oid)(void);
const heim_oid *oid;
krb5_data Z;
const char *client;
const char *server;
@@ -52,7 +52,7 @@ struct testcase {
} tests[] = {
/* 0 */
{
oid_id_pkinit_kdf_ah_sha1, /* AlgorithmIdentifier */
&asn1_oid_id_pkinit_kdf_ah_sha1, /* AlgorithmIdentifier */
{ /* Z */
256,
"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
@@ -139,7 +139,7 @@ test_dh2key(krb5_context context, int i, struct testcase *c)
memset(&ticket, 0, sizeof(&ticket));
ai.algorithm = *(*c->oid)();
ai.algorithm = *c->oid;
ai.parameters = NULL;
ret = decode_Ticket(c->ticket.data, c->ticket.length, &ticket, &size);